Better handling of Office removal
This commit is contained in:
parent
1cae067f4e
commit
07863a17e5
1 changed files with 1 additions and 1 deletions
|
|
@ -109,7 +109,7 @@ Function Stop-OfficeProcess {
|
||||||
}
|
}
|
||||||
|
|
||||||
Function Invoke-SaRA {
|
Function Invoke-SaRA {
|
||||||
$SaRAProcess = Start-Process -FilePath "$SaRA_EXE" -ArgumentList "-S OfficeScrubScenario -AcceptEula" -Wait -PassThru -NoNewWindow
|
$SaRAProcess = Start-Process -FilePath "$SaRA_EXE" -ArgumentList "-S OfficeScrubScenario -AcceptEula -CloseOffice -OfficeVersion All" -Wait -PassThru -NoNewWindow
|
||||||
switch ($SaRAProcess.ExitCode) {
|
switch ($SaRAProcess.ExitCode) {
|
||||||
0 {
|
0 {
|
||||||
Write-Host "Uninstall successful!"
|
Write-Host "Uninstall successful!"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue