Problem: you want to display all the updates installed on a Windows machine using PowerShell
Solution:
run the following PowerShell script:
Get-WmiObject -query ‘select * from win32_quickfixengineering’ | foreach {$_.hotfixid
Problem: you want to know if a specific update is installed on a Windows machine
Solution:
run the following PowerShell script:
Get-WmiObject -query ‘select * from win32_quickfixengineering’ | where {$_.hotfixid -eq “KBxxxxxx”} | foreach {$_.hotfixid}
Note: replace xxxx with the KB number
