From 5f34204189f997e9321ee65871d7db27ffef7a7a Mon Sep 17 00:00:00 2001 From: Yorick Date: Thu, 21 Jan 2016 14:57:07 +0100 Subject: [PATCH] Remove /log parameter from wusa.exe than prevent some uninstallation --- remove-kb.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/remove-kb.ps1 b/remove-kb.ps1 index e3529e0..52d58ec 100755 --- a/remove-kb.ps1 +++ b/remove-kb.ps1 @@ -49,7 +49,7 @@ Foreach($kbID in $kbIDs){ if (Get-HotFix -Id $kbID -ErrorAction SilentlyContinue){ Write-Host -NoNewline -ForegroundColor DarkGreen "found! " Write-Host -Nonewline -ForegroundColor white "removing ... " - wusa.exe /uninstall /KB:$kbNum /norestart /quiet /log:wsua.log + wusa.exe /uninstall /KB:$kbNum /norestart /quiet Do { Start-Sleep -Seconds 3