Kill GWX process doesn't ask for confirmation anymore
This commit is contained in:
parent
5f34204189
commit
7c828e85e8
1 changed files with 3 additions and 3 deletions
|
@ -39,8 +39,8 @@ function hide_update() {
|
||||||
if (!$found){ Write-Host -ForegroundColor Red "Not found"}
|
if (!$found){ Write-Host -ForegroundColor Red "Not found"}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (stop-process -name GWX -ErrorAction SilentlyContinue) {
|
if (stop-process -name GWX -Force -ErrorAction SilentlyContinue) {
|
||||||
Write-Output "Killed GWX ..."
|
Write-Host "GWX process stopped ..."
|
||||||
}
|
}
|
||||||
|
|
||||||
Foreach($kbID in $kbIDs){
|
Foreach($kbID in $kbIDs){
|
||||||
|
|
Reference in a new issue