Skip to content

Instantly share code, notes, and snippets.

@talatham
Created June 12, 2013 14:39
Show Gist options
  • Save talatham/5765869 to your computer and use it in GitHub Desktop.
Save talatham/5765869 to your computer and use it in GitHub Desktop.
List all Windows Updates on the current machine.
$Session = New-Object -ComObject Microsoft.Update.Session
$Searcher = $Session.CreateUpdateSearcher()
$HistoryCount = $Searcher.GetTotalHistoryCount()
$Searcher.QueryHistory(1,$HistoryCount) |
Select-Object Date, Title, Description
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment