Created
June 12, 2013 14:39
-
-
Save talatham/5765869 to your computer and use it in GitHub Desktop.
List all Windows Updates on the current machine.
This file contains hidden or 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
$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