Shorcut列出Microsoft Windows中的挂起更新

前端之家收集整理的这篇文章主要介绍了Shorcut列出Microsoft Windows中的挂起更新前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
是否可以创建“查看更新历史记录”的快捷方式?

或者,您是否有一个脚本(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

猜你在找的Windows相关文章