From 7c828e85e8c042627a7e16a5ea1bd86056067516 Mon Sep 17 00:00:00 2001 From: Yorick Date: Thu, 21 Jan 2016 15:01:01 +0100 Subject: [PATCH] Kill GWX process doesn't ask for confirmation anymore --- remove-kb.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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","")