簡體   English   中英

Powershell 如何確定哪些 Windows 更新未被取代?

[英]Powershell How to determine what Windows Updates have not been superseded?

我正在構建一個 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 

我可以做些什么來確定哪些更新未被取代?

根據您的情況和需求,運行WSUS 服務器可能是一種選擇。 您實際上並不需要使用它來分發更新,但是您可以使用一個 API來查詢 WSUS 服務器數據庫。 您還可以使用 API 來“批准”所需的更新,從而使 WSUS 下載它們。

我最好的猜測是,這對您的場景來說太過分了,您在自我回答中建議的方法會更好。 但是對於一些未來的讀者來說,WSUS 可能是一個更明智的選擇,並且如果您遇到麻煩,有一個替代方案來考慮對您來說不會有什么壞處。

還應注意的是,Microsoft 通過 WSUS 提供的更新集與通過 Windows Update 提供的更新集略有不同,並且/或者更新可能會在不同時間發布到兩個渠道。 (安全更新通常同時或幾乎同時發布到兩個渠道。)

很抱歉我的問題和我的回答都不是程序化的。 編程中的答案可以滿足我的需求,所以我覺得它屬於這一類。

事實證明,為了最好地確定脫機映像需要的更新,請使用https://technet.microsoft.com/security/bulletin/上的下載 Microsoft 安全公告數據鏈接。 最好的辦法是使用程序查詢 Excel 文件,然后確定哪些更新會取代其他更新。 從那里開始,關於下載可從 DISM 使用的實際 MSU 文件,我不確定。 然而,這足以很好地回答我的問題,我將不得不做一些互聯網調查,以找出如何批量下載 MSU 文件列表。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM