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

Your email address will not be published. Required fields are marked *

Contact Deptive

Location
Level 13 (Regus)
92 Albert St
Auckland
We also have a virtual office in Wellington.

Contact Details

0800 000 141

Postal Address
PO Box 34797,
Birkenhead, Auckland 0746