Added readme, fixed typo

This commit is contained in:
Aaron Viehl 2022-02-05 11:46:27 +01:00
parent 83743197e9
commit 69cb01b0a1
2 changed files with 26 additions and 3 deletions

View File

@ -9,7 +9,7 @@
By choosing -InstallOffice365 it tries to install Office 365 as well. By choosing -InstallOffice365 it tries to install Office 365 as well.
.PARAMETER InstallOffice365 .PARAMETER InstallOffice365
Will install Office365 after removal. Will install Office365 after removal.
.PARAMETER SupressReboot .PARAMETER SuppressReboot
Will supress the reboot after finishing the script. Will supress the reboot after finishing the script.
.PARAMETER UseSetupRemoval .PARAMETER UseSetupRemoval
Will use the setup methode to remove current Office installations instead of SaRA. Will use the setup methode to remove current Office installations instead of SaRA.
@ -31,7 +31,7 @@
#---------------------------------------------------------[Initialisations]-------------------------------------------------------- #---------------------------------------------------------[Initialisations]--------------------------------------------------------
Param ( Param (
[switch]$InstallOffice365 = $False, [switch]$InstallOffice365 = $False,
[switch]$SupressReboot = $False, [switch]$SuppressReboot = $False,
[switch]$UseSetupRemoval = $False, [switch]$UseSetupRemoval = $False,
[Switch]$Force = $False [Switch]$Force = $False
) )
@ -150,7 +150,7 @@ Function Invoke-SetupOffice365($Office365ConfigFile) {
} }
Function Invoke-Reboot { Function Invoke-Reboot {
if (-not $SupressReboot) { if (-not $SuppressReboot) {
Start-Process -FilePath "$env:SystemRoot\system32\shutdown.exe" -ArgumentList "/r /c `"Reboot needed. System will reboot in 60 seconds.`" /t 60 /f /d p:4:1" Start-Process -FilePath "$env:SystemRoot\system32\shutdown.exe" -ArgumentList "/r /c `"Reboot needed. System will reboot in 60 seconds.`" /t 60 /f /d p:4:1"
} }
} }

23
readme.md Normal file
View File

@ -0,0 +1,23 @@
# Microsoft Office Removal Tool
## Synopsis
This script downloads the current Office uninstaller from Microsoft and tries to remove all Office installations on this computer. If you wish it tries to install the newest Office365 build as well.
## Parameter
| Parameter | Usage |
|---|---|
| -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|
|-Force | Non-interactive - No user interaction required|
### Notes
Version: 1.0
Author: aaron.viehl@frankfurt.einsnulleins.de
Creation Date: 2022-02-04
### Example
``.\msoffice-removal-tool.ps1 -InstallOffice365 -SuppressReboot -Force``