Created
March 27, 2017 21:25
-
-
Save tom-henderson/bb64172ce66677204bc79c6c2bda8521 to your computer and use it in GitHub Desktop.
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
$WUSession = New-Object -ComObject Microsoft.Update.Session | |
$WUSearcher = $WUSession.CreateUpdateSearcher() | |
$UpdateCollection = $WUSearcher.Search("IsInstalled=0 and Type='Software' and IsHidden=0") | |
$UpdateCollection.Updates | ft Title -AutoSize |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment