Remove /log parameter from wusa.exe than prevent some uninstallation
This commit is contained in:
parent
e989a65f12
commit
5f34204189
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ Foreach($kbID in $kbIDs){
|
||||||
if (Get-HotFix -Id $kbID -ErrorAction SilentlyContinue){
|
if (Get-HotFix -Id $kbID -ErrorAction SilentlyContinue){
|
||||||
Write-Host -NoNewline -ForegroundColor DarkGreen "found! "
|
Write-Host -NoNewline -ForegroundColor DarkGreen "found! "
|
||||||
Write-Host -Nonewline -ForegroundColor white "removing ... "
|
Write-Host -Nonewline -ForegroundColor white "removing ... "
|
||||||
wusa.exe /uninstall /KB:$kbNum /norestart /quiet /log:wsua.log
|
wusa.exe /uninstall /KB:$kbNum /norestart /quiet
|
||||||
Do
|
Do
|
||||||
{
|
{
|
||||||
Start-Sleep -Seconds 3
|
Start-Sleep -Seconds 3
|
||||||
|
|
Reference in a new issue