Created
November 9, 2015 16:03
-
-
Save Grimthorr/44727ea8cf5d3df11cf7 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
If u need to read from a software like Zabbix or just load in some api or application you can use this
https://github.com/guillerg86/zabbix/blob/main/scripts/windows/powershell/wu-get-mandatory-updates.ps1