是否可以创建“查看更新历史记录”的快捷方式?
或者,您是否有一个脚本(powershell,vbs,cmd,…)来列出待定更新?
试试这个Powershell脚本:
$update = new-object -com Microsoft.update.Session $searcher = $update.CreateUpdateSearcher() $pending = $searcher.Search("IsInstalled=0") foreach($entry in $pending.Updates) { Write-host "Title: " $entry.Title Write-host "Downloaded? " $entry.IsDownloaded Write-host "Description: " $entry.Description foreach($category in $entry.Categories) { Write-host "Category: " $category.Name } Write-host " " }
您可能感兴趣的其他对象成员可以使用以下方式查看:
$pending.Updates | member | more