Created
May 26, 2023 00:23
-
-
Save Timthreetwelve/838c624fe1f4bdedfea56667778c8e97 to your computer and use it in GitHub Desktop.
PowerShell to display Windows Update History
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment