Finding Installed Updates (Part 2)

by Jun 17, 2019

The Windows Update Client maintains its own log of installed updates. Rather than querying the generic system event log, or actively searching for updates which can take some time, here is example code to query and read the installation history from your Windows Update Client:

$Session = New-Object -ComObject Microsoft.Update.Session
  $Searcher = $Session.CreateUpdateSearcher()
  $HistoryCount = $Searcher.GetTotalHistoryCount()
  $Searcher.QueryHistory(1,$HistoryCount) | 
  Select-Object Date, Title, Description, SupportUrl

Twitter This Tip! ReTweet this Tip!