PowerShell: List all installed hotfixes & list all installed applications

Two quick PowerShell one liners.

This PowerShell one line script will output a list of installed hotfixes:

gwmi -Query "Select * from Win32_QuickFixEngineering" -ComputerName <ComputerName>| `
Sort-Object -Property  HotFixID| `
Format-List HotFixID, Description, Caption | `
Out-File c:\<ComputerName>.InstalledHotFixes.txt

This PowerShell one line script will output a difinitive list installed via Windows Installer (MSI):

gwmi win32_product -computername <ComputerName> | `
Sort-Object -Property InstallDate | `
Format-Table Name,Version | `
Out-File c:\<ComputerName>.InstalledProducts.txt

Enjoy!

Advertisements

Comments are closed.

%d bloggers like this: