Using the Microsoft Update Session ComObject, it is easy to determine the updates that are not installed on a computer at a moment.
# initialize the com object $wsus = New-Object -ComObject "Microsoft.update.Session" # build an update searcher $wsussearch = $wsus.createupdatesearcher() # build a filter and get the result $res = $wsussearch.search("IsInstalled=0") # list title and severity of updates that are not yet installed $res.updates | Select-Object title, msrcseverity
COMMENTS