【问题标题】:Powershell How to determine what Windows Updates have not been superseded?Powershell 如何确定哪些 Windows 更新未被取代?
【发布时间】:2016-04-01 19:32:58
【问题描述】:

我正在构建一个 Powershell 脚本来下载 Windows 更新,以便使用 DISM 将它们整合到离线 Windows 映像中。例如,我的 Windows 10 搜索列表如下所示。

d          Id       KB      Title                                                                                       Rating   
-          --       --      -----                                                                                       ------   
3/8/2016   MS16-036 3144756 Security Update for Adobe Flash Player                                                      Critical 
3/8/2016   MS16-035 3141780 Security Update for .NET Framework to Address Security Feature Bypass                       Important
3/8/2016   MS16-034 3143145 Security Update for Windows Kernel-Mode Drivers to Address Elevation of Privilege           Important
3/8/2016   MS16-033 3143142 Security Update for Windows USB Mass Storage Class Driver to Address Elevation of Privilege Important
3/8/2016   MS16-032 3143141 Security Update for Secondary Logon to Address Elevation of Privile                         Important
3/8/2016   MS16-030 3143136 Security Update for Windows OLE to Address Remote Code Execution                            Important
3/8/2016   MS16-028 3143081 Security Update for Microsoft Windows PDF Library to Address Remote Code Execution          Critical 
3/8/2016   MS16-027 3143146 Security Update for Windows Media to Address Remote Code Execution                          Critical 
3/8/2016   MS16-026 3143148 Security Update for Graphic Fonts to Address Remote Code Execution                          Critical 
3/8/2016   MS16-024 3142019 Cumulative Security Update for Microsoft Edge                                               Critical 
3/8/2016   MS16-023 3142015 Cumulative Security Update for Internet Explorer                                            Critical 

如何确定哪些更新尚未被取代?

【问题讨论】:

标签: c# windows powershell


【解决方案1】:

根据您的情况和需要,运行a WSUS server 可能是一种选择。您实际上不需要使用它来分发更新,但您可以使用there's an API 来查询 WSUS 服务器数据库。您还可以使用 API 来“批准”您想要的更新,从而让 WSUS 下载它们。

我最好的猜测是,这对您的场景来说是多余的,而您在自我回答中建议的方法会更好。但对于某些未来的读者来说,WSUS 可能是一个更明智的选择,如果您遇到麻烦,可以考虑另一种选择。

还应注意,Microsoft 通过 WSUS 提供的更新集与通过 Windows Update 提供的更新集略有不同,并且/或者更新可能会在不同时间发布到这两个渠道。 (安全更新通常同时或几乎同时发布到两个渠道。)

【讨论】:

    【解决方案2】:

    很抱歉,我的问题和答案都不是程序化的。编程中的答案会满足我的需求,所以我觉得它属于这一类。

    事实证明,为了最好地确定离线映像所需的更新,请使用https://technet.microsoft.com/security/bulletin/ 上的Download Microsoft Security Bulletin Data 链接。最好的办法是使用程序查询 Excel 文件,然后确定哪些更新取代了其他更新。从那里,关于从 DISM 下载可用的实际 MSU 文件,我不确定。然而,这很好地回答了我的问题,我将不得不做一些互联网调查来找出如何批量下载 MSU 文件列表。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-11-12
      • 1970-01-01
      • 2019-12-08
      • 2017-06-07
      • 2020-08-14
      相关资源
      最近更新 更多