{"id":13600850,"url":"https://github.com/Admonstrator/msoffice-removal-tool","last_synced_at":"2025-04-11T01:30:30.687Z","repository":{"id":154121172,"uuid":"455696450","full_name":"Admonstrator/msoffice-removal-tool","owner":"Admonstrator","description":"This script tries to uninstall the current version of Microsoft Office and installs a new and fresh copy of Office365","archived":false,"fork":false,"pushed_at":"2024-06-07T08:00:38.000Z","size":10781,"stargazers_count":45,"open_issues_count":0,"forks_count":8,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-06T05:54:15.128Z","etag":null,"topics":["microsoft-office","office365","powershell-script","windows"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Admonstrator.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2022-02-04T21:05:29.000Z","updated_at":"2025-04-05T12:19:32.000Z","dependencies_parsed_at":"2024-01-16T23:26:27.188Z","dependency_job_id":"69ca1f55-f7dc-47d5-8b65-c7844400b0b1","html_url":"https://github.com/Admonstrator/msoffice-removal-tool","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Admonstrator%2Fmsoffice-removal-tool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Admonstrator%2Fmsoffice-removal-tool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Admonstrator%2Fmsoffice-removal-tool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Admonstrator%2Fmsoffice-removal-tool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Admonstrator","download_url":"https://codeload.github.com/Admonstrator/msoffice-removal-tool/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248324961,"owners_count":21084838,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["microsoft-office","office365","powershell-script","windows"],"created_at":"2024-08-01T18:00:49.791Z","updated_at":"2025-04-11T01:30:29.332Z","avatar_url":"https://github.com/Admonstrator.png","language":"PowerShell","funding_links":[],"categories":["PowerShell"],"sub_categories":[],"readme":"# Microsoft Office Removal Tool\n\n```plain\n __ _             _      _                  ___          _                   \n/ _(_)_ __   __ _| | ___| |_ ___  _ __     / __\\_ _  ___| |_ ___  _ __ _   _ \n\\ \\| | '_ \\ / _` | |/ _ \\ __/ _ \\| '_ \\   / _\\/ _` |/ __| __/ _ \\| '__| | | |\n_\\ \\ | | | | (_| | |  __/ || (_) | | | | / / | (_| | (__| || (_) | |  | |_| |\n\\__/_|_| |_|\\__, |_|\\___|\\__\\___/|_| |_| \\/   \\__,_|\\___|\\__\\___/|_|   \\__, |\n            |___/                                                      |___/ \n\nMicrosoft Office Removal Tool\nby Aaron Viehl (Singleton Factory GmbH)\nsingleton-factory.de\n```\n\n## Synopsis\n\nThis script downloads the current Office uninstaller from Microsoft and tries to remove all Office installations on this computer.\n\nIf you wish it tries to install the newest Office365 build as well.\n\nYou can choose between 2 methods of uninstalling:\\\nDefault method will use the [Microsoft Support and Recovery Assistant (SaRA)](https://docs.microsoft.com/en-us/office365/troubleshoot/administration/sara-command-line-version) for uninstalling.\\\nBy using `-UseSetupRemoval` the Office365 setup method will be used.\n\n## Parameter\n\n| Parameter              | Usage                                                                   |\n|------------------------|-------------------------------------------------------------------------|\n| -InstallOffice365      | The script will try to install the newest Office365 build after removal |\n| -SuppressReboot        | No reboot will be executed after script is done                         |\n| -UseSetupRemoval       | Will use the official Office365 setup instead of SaRA                   |\n| -RunAgain              | Will skip the stage mechanism - whole script will run again             |\n| -Force                 | Non-interactive - No user interaction required                          |\n| -SecondsToReboot [int] | Seconds until the computer will reboot                                  |\n\n## Example\n\n  ``.\\msoffice-removal-tool.ps1 -InstallOffice365 -SuppressReboot -Force``\n\n## Stage mechanism\n\nTo make sure that the program will only do the necessary parts a _stage mechanism_ is builtin. After every stage a registry value will be written to ``HKLM:\\Software\\OEM\\Singleton-Factory-GmbH\\M365\\Install\\CurrentStage``\n\nTo overwrite all stages and restart the whole script use ``-RunAgain``.\n\n## Usage\n\nYou may use this script without explicit download:\n\n```powershell\niwr https://raw.githubusercontent.com/Admonstrator/msoffice-removal-tool/main/msoffice-removal-tool.ps1 -OutFile msoffice-removal-tool.ps1; powershell -ExecutionPolicy Bypass .\\msoffice-removal-tool.ps1\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAdmonstrator%2Fmsoffice-removal-tool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FAdmonstrator%2Fmsoffice-removal-tool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAdmonstrator%2Fmsoffice-removal-tool/lists"}