Applies To
Win 10 Ent LTSB 2016 Win 10 Ent LTSC 2019 Windows 10 IoT Enterprise LTSC 2021 Windows 10, version 22H2, all editions Windows 11 Home and Pro, version 22H2 Windows 11 Enterprise Multi-Session, version 22H2 Windows 11 Enterprise and Education, version 22H2 Windows 11 IoT Enterprise, version 22H2 Windows 11 SE, version 23H2 Windows 11 Home and Pro, version 23H2 Windows 11 Enterprise and Education, version 23H2 Windows 11 Enterprise Multi-Session, version 23H2 Windows 11 version 24H2, all editions Windows 11 version 25H2, all editions Windows 11 version 26H1, all editions Windows Server 2012 ESU Windows Server 2012 R2 ESU Windows Server 2016 Windows Server 2019 Windows Server 2022 Windows Server 2025

原始出版日期: 2026年4月28日KB ID:5093574

簡介

Get-SecureBootUEFI PowerShell 指令檔可取得 UEFI 安全開機變數,如 PK、KEK、DB 和 DBX。 這些變數通常回傳原始二進位資料,這類資料可能難以直接解讀。

新的 -Decoded 參數提供了更易取得的資訊視圖。

-Decoded 參數是做什麼的?

當你使用 -Decoded 參數時,cmdlet 會以人類可讀的形式顯示 Secure Boot 資料庫的內容。 它不是原始位元組,而是解碼並呈現底層資料,包括憑證、雜湊值及相關的元資料,這些資料儲存在 UEFI 認證變數中。

使用 -Decoded 參數時,輸出包含可讀的憑證資訊,例如:

  • 例如,Microsoft Windows Production PCA 2011) (

  • 演算法與版本

  • 序號

  • 有效期

這讓以下事情變得更容易:

  • 檢查安全開機項目,如憑證、雜湊值和公開金鑰

  • 查看證書屬性,如主題、發行人及有效日期

  • 更容易理解 PK、KEK 和資料庫中哪些被信任,哪些在 DBX 中被撤銷,無需額外解析

範例

PowerShell 中的指令使用:

​​​​​​​Get-SecureBootUEFI -Name db -Decoded

指揮權回歸:

SignatureOwner : 77fa9abd-0359-4d32-bd60-28f4e78f784b

Subject        : CN=Microsoft Windows Production PCA 2011, O=Microsoft Corporation, L=Redmond, S=Washington, C=US

Version        : 3

Algorithm      : sha256RSA

SerialNumber   : 61077656000000000008

ValidFrom      : 2011-10-19 11:41:42Z

ValidTo        : 2026-10-19 11:51:42Z

SignatureOwner : 77fa9abd-0359-4d32-bd60-28f4e78f784b

Subject        : CN=Windows UEFI CA 2023, O=Microsoft Corporation, C=US

Version        : 3

Algorithm      : sha256RSA

SerialNumber   : 330000001A888B9800562284C100000000001A

ValidFrom      : 2023-06-13 11:58:29Z

ValidTo        : 2035-06-13 12:08:29Z

何時使用它

當你需要分析或驗證 Secure Boot 設定時,請使用 -Decoded 參數,而不是直接取得原始值。

深入了解

完整 cmdlet 細節、參數及額外範例,請參閱 Get-SecureBootUEFI 文件。

附註: 參考文件尚未包含 -Decoded 參數。 文件將在未來版本中更新。

Need more help?

Want more options?

探索訂閱權益、瀏覽訓練課程、瞭解如何保護您的裝置等等。