From 8898441184cb7267ece051d52741e25b1e5be56c Mon Sep 17 00:00:00 2001 From: Yorick Date: Wed, 20 Jan 2016 14:35:16 +0100 Subject: [PATCH] Improve output text formatting --- remove-kb.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/remove-kb.ps1 b/remove-kb.ps1 index 9332799..a39542a 100755 --- a/remove-kb.ps1 +++ b/remove-kb.ps1 @@ -44,7 +44,7 @@ Foreach($kbID in $kbIDs){ $kbNum = $kbID.Replace("KB","") Write-Host -NoNewline -ForegroundColor white "Uninstalling $kbID : " if (Get-HotFix -Id $kbID -ErrorAction SilentlyContinue)){ - Write-Host -NoNewline -ForegroundColor DarkGreen "found!" + Write-Host -NoNewline -ForegroundColor DarkGreen "found! " Write-Host -Nonewline -ForegroundColor white "removing ... " wusa.exe /uninstall /KB:$kbNum /norestart /quiet /log:wsua.log Do @@ -52,10 +52,10 @@ Foreach($kbID in $kbIDs){ Start-Sleep -Seconds 3 }while(Invoke-Command -ScriptBlock {Get-Process | Where-Object {$_.name -eq "wusa"}}) if(Get-HotFix -Id $kbID -ErrorAction SilentlyContinue){ - Write-Host -NoNewline -ForegroundColor Red "Failed" + Write-Host -ForegroundColor Red "Failed" } else{ - Write-Host -NoNewline -ForegroundColor Green "Done" + Write-Host -ForegroundColor Green "Done" } } else {