-
-
Save df-a/ae1bec1c1f4f17f32f02327da50a7b26 to your computer and use it in GitHub Desktop.
PowerShell script to list the pending/missing Windows updates.
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
$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