Easily find installed hotfixes with PowerShell

I {heart} PowerShell.

Need to find out if a particular hotfix is installed? Just run this command, substituting the KBxxxxx number for the hotfix you want to search for:
get-hotfix | select HotfixID | where {$_.HotfixID -eq “KB2444558“}

27/05 UPDATE: Wow, talk about doing things the hard way! The concise code is this:
get-hotfix -id KB2444558

Notice that the hotfix is NOT within quotes.

Leave a Reply

Contact Deptive

Location
Deptive - Commercial Bay
11-19 Customs Street West St
Commercial Bay Tower, Level 17, Room 1715
Auckland 1010
We also have a virtual office in Wellington.

Contact Details

0800 000 141

Postal Address
PO Box 34797,
Birkenhead, Auckland 0746