-
-
Save xoner/11e03259f5da92b41ff47d3b6bc804e2 to your computer and use it in GitHub Desktop.
PowerShell script to list the pending/missing Windows updates.
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
$UpdateSession = New-Object -ComObject Microsoft.Update.Session | |
$UpdateSearcher = $UpdateSession.CreateupdateSearcher() | |
$Updates = @($UpdateSearcher.Search("IsHidden=0 and IsInstalled=0").Updates) | |
$Updates | Select-Object Title |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment