Get Quick Fix Engineering (QFE) Information

Recently I have been tracking down all the updates that I have applied to various Windows machines (servers and clients) in my pod and figured I’d share the simple PowerShell script to capture the details into a txt file. There are a number of different properties that can be selected from the Get-WmiObject call so that is something you can customize for your own needs, in my case I just wanted the type of hotfix, provided in the description, the hotfix id that maps to KB articles and when the hotfix was installed.

$qfeFile = "C:\users\barkz\desktop\$env:COMPUTERNAME.txt"
Get-WmiObject -Class Win32_QuickFixEngineering `
    | Select-Object -Property Description, HotFixID, InstalledOn `
    | Format-Table -Wrap `
    > $qfeFile; Invoke-Item $qfeFile