Tip of the Day: Using PowerShell to Obtain Update Information

Today's tip...

Here's a quick way to obtain update information.

To search for all updates:

$Session = New-Object -ComObject Microsoft.Update.Session

$Searcher = $Session.CreateUpdateSearcher()

$Searcher.Search("IsInstalled=1").Updates | ft -a title

Example Output:

To search for a specific update:

$Searcher.Search("IsInstalled=1").Updates | Where {$_.Title -like "*KB4016509*"} | ft title

Example Output:

Comments (1)
  1. David B says:

    I’m getting 0 results returned when I run the code. Get-hotfix is historically unreliable but it at least returns 5 updates that are installed.

Comments are closed.

Skip to main content