Syntax corrections
This commit is contained in:
parent
2a1afae918
commit
f7350c42ae
1 changed files with 4 additions and 8 deletions
|
@ -55,11 +55,7 @@ function remove_tasks () {
|
||||||
Write-Host -Nonewline -ForegroundColor white " Error "
|
Write-Host -Nonewline -ForegroundColor white " Error "
|
||||||
}
|
}
|
||||||
Write-Host -ForegroundColor green "Done"
|
Write-Host -ForegroundColor green "Done"
|
||||||
|
else { Write-Host -ForegroundColor Yellow " Already removed" }
|
||||||
}
|
|
||||||
Write-Host -ForegroundColor Green " Done"
|
|
||||||
}
|
|
||||||
else { Write-Host -ForegroundColor Yellow " Already removed"}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -86,12 +82,12 @@ function hide_update() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!$found){ Write-Host -ForegroundColor Red "Not found"}
|
if (!$found){ Write-Host -ForegroundColor Red "Not found" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Write-Host -Nonewline -ForegroundColor white "Searching for GWX process ... "
|
Write-Host -Nonewline -ForegroundColor white "Searching for GWX process ... "
|
||||||
if (Get-Process -name GWX -ErrorAction SilentlyContinue}) {
|
if (Get-Process -name GWX -ErrorAction SilentlyContinue) {
|
||||||
Write-Host -ForegroundColor DarkGreen -NoNewLine "Running "
|
Write-Host -ForegroundColor DarkGreen -NoNewLine "Running "
|
||||||
Write-Host -Nonewline -ForegroundColor white "removing ... "
|
Write-Host -Nonewline -ForegroundColor white "removing ... "
|
||||||
Try {Stop-Process -name GWX -Force -ErrorAction SilentlyContinue}
|
Try {Stop-Process -name GWX -Force -ErrorAction SilentlyContinue}
|
||||||
|
|
Reference in a new issue