How i can check on all my servers if a specific KB is installed?

Well, read below!

I have to check if the KB2749655 is installed on all my Citrix servers.

With powershell you can do it very fast!get-hotfix


Here’s the script!

#On Error Resume Next
$ErrorActionPreference = "silentlycontinue"
$ServerList = read-host "Enter server list path"
$KB = read-host "Enter KB number (ex:KB2749655)"

$a = get-content $ServerList

$a | foreach { if (!(get-hotfix -id $KB -computername $_)) { write-host "KB missing on " $_ -foregroundcolor Yellow}}