PowerShell: Get installed updates

Hi

I'm looking for a way to get a list of all product updates on a server, which corresponds to the "View installed updates" list in Control Panel. I know how to find Windows Updates, but Get-Hotfix and WMI-class Win32_Product don't seem to give me these results.

July 13th, 2015 4:25am

Have you seen Jeff Wouters function 'Get-InstalledUpdates'? Just tried myself after putting out the remoting 'stuff', seems to do what you are looking for.

https://gallery.technet.microsoft.com/scriptcenter/Get-InstalledUpdatesList-e41e45a7

florian

Free Windows Admin Tool Kit Click here and download it now
July 13th, 2015 5:11am

This script uses the Microsoft.Update.Session object, and lists a bunch of KBs. This does not correspond to the View Installed Updates list in Control Panel.
July 13th, 2015 7:35am

What happens when you use ReliablityRecords Class

 

Get-WmiObject -class win32_ReliabilityRecords |

Select ProductName , SourceName , User , Message

Free Windows Admin Tool Kit Click here and download it now
July 13th, 2015 8:40am

With this code I'm pretty close. Thanks!

$results = Get-WmiObject -class win32_ReliabilityRecords | Select InsertionStrings -Unique | Sort-Object InsertionStrings
foreach ($result in $results ) {
    Write-Host $result.InsertionStrings
}

July 13th, 2015 4:23pm

Glad it helped !
Free Windows Admin Tool Kit Click here and download it now
July 14th, 2015 2:31am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics