diff --git a/remove-kb.ps1 b/remove-kb.ps1 index 52d58ec..4816ea1 100755 --- a/remove-kb.ps1 +++ b/remove-kb.ps1 @@ -39,9 +39,9 @@ function hide_update() { if (!$found){ Write-Host -ForegroundColor Red "Not found"} } } -if (stop-process -name GWX -ErrorAction SilentlyContinue) { - Write-Output "Killed GWX ..." -} +if (stop-process -name GWX -Force -ErrorAction SilentlyContinue) { + Write-Host "GWX process stopped ..." +} Foreach($kbID in $kbIDs){ $kbNum = $kbID.Replace("KB","")