This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a bare bones PowerShell script that will display Windows Update History | |
$session = New-Object -ComObject Microsoft.Update.Session | |
$searcher = $session.CreateUpdateSearcher() | |
$historyCount = $searcher.GetTotalHistoryCount() | |
Write-Output "Found $historyCount updates" | |
$Searcher.QueryHistory(0, $historyCount) | Select-Object Date, Title |