Remove Office installations with ease!
If you find this tool helpful, consider supporting its development:
This script downloads the current Office uninstaller from Microsoft and automatically removes all Office installations on your computer.
The script features two removal methods and can optionally install the newest Office 365 build after removal.
Created by Aaron Viehl for the community.
β οΈ Disclaimer β This is an independent project, not officially affiliated with Microsoft
- π Automatic Removal β Removes all Office installations from your computer
- π Flexible Methods β Choose between SaRA or Office365 setup removal
- π¦ Optional Installation β Install Office365 after removal if desired
- π‘οΈ Safe Processing β Built-in stage mechanism to track progress
- β‘ Flexible Options β Multiple parameters for customized removal
- π Automatic Reboot β Optional automatic reboot after completion
| Requirement | Details |
|---|---|
| OS | Windows (Windows 10 or later recommended) |
| PowerShell | PowerShell 5.0 or later |
| Permissions | Administrator privileges required |
| Internet | Required for downloading Office uninstaller |
Run the script without cloning the repository:
iwr https://get.admon.me/remove-msoffice -OutFile msoffice-removal-tool.ps1; powershell -ExecutionPolicy Bypass .\msoffice-removal-tool.ps1The msoffice-removal-tool.ps1 script supports the following parameters:
| Parameter | Description |
|---|---|
-InstallOffice365 |
The script will try to install the newest Office365 build after removal |
-SuppressReboot |
No reboot will be executed after script is done |
-UseSetupRemoval |
Will use the official Office365 setup instead of SaRA for uninstalling |
-RunAgain |
Will skip the stage mechanism - whole script will run again |
-Force |
Non-interactive mode - No user interaction required |
-SecondsToReboot [int] |
Seconds until the computer will reboot (default: 120) |
Remove Office with the default SaRA method:
.\msoffice-removal-tool.ps1Remove Office and install the latest Office365 build:
.\msoffice-removal-tool.ps1 -InstallOffice365Skip all prompts and prevent automatic reboot:
.\msoffice-removal-tool.ps1 -Force -SuppressRebootUse the Office365 setup method instead of SaRA:
.\msoffice-removal-tool.ps1 -UseSetupRemoval -ForceFor fully unattended operation with reinstallation:
.\msoffice-removal-tool.ps1 -InstallOffice365 -Force -SecondsToReboot 60To skip the stage mechanism and run the entire script again:
.\msoffice-removal-tool.ps1 -RunAgain -ForceThe script uses a built-in stage mechanism to ensure it only performs necessary steps and doesn't repeat work unnecessarily.
After every stage, a registry value is written to:
HKLM:\Software\OEM\Singleton-Factory-GmbH\M365\Install\CurrentStage
The mechanism is:
- β Applied automatically
- β Persistent across script restarts
- β
Can be overridden with
-RunAgainparameter
Default Method (SaRA):
- Uses the Microsoft Support and Recovery Assistant
- Recommended for most users
- Less intrusive than setup method
Setup Method:
- Uses the official Office365 setup
- More thorough removal
- Enabled with
-UseSetupRemovalparameter
When using -InstallOffice365, the script will:
- β Automatically download the latest Office365 build
- β Install Office365 after removal completes
- β
Configure the XML installation files from the
office365-installer/directory
Need assistance or have questions?
- π Report issues on GitHub β Bug reports and feature requests
- π§ Contact via GitHub β For private inquiries
This script is provided as-is without any warranty. Use it at your own risk.
It may potentially:
- π₯ Remove important files or configurations
- π₯ Cause system instability
- π₯ Require manual recovery steps
You have been warned!
Always read the documentation carefully and understand what a script does before running it. Create a system restore point before executing this script.
This project is licensed under the MIT License β see the LICENSE file for details.
Made with β€οΈ by Admonstrator
β If you find this useful, please star the repository!
Last updated: 2025-12-21