The script must check several settings in order to determine if the current boot file is allowed:
- if Secure Boot is disabled, then any boot file is allowed
- if Secure Boot is enabled, the boot file must be signed by a cert that appears in the DB and not banned in the DBX
- if Secure Boot is enabled and the SVN has been invoked, a file hash comparison is done of the Windows reference copy of the boot file and the EFI version of the same file
What happens if you don't have Secure Boot enabled? Then any boot file is allowed, and we really don't have to worry about CA 2011 revocation. But some users might want to update their UEFI, just in case they need Secure Boot later on.
When you use the script without
-Audit, it runs the checks based on the current Secure Boot setting. With Secure Boot disabled, you can be out of compliance with CA 2023 and CA 2011 updates. That is permitted.
When you use the script with
-Audit, it checks as if Secure Boot is currently enabled (ignoring if the UEFI really has it turned off). This allows the script to show you what steps are needed to be done.
There is a subtle hint for those familiar with English idioms. "Windows Boot Manager is BANNED." or "Windows Boot Manager will be BANNED."
- "is BANNED" means the current settings do not allow this file.
- "will be BANNED" means if you enabled Secure Boot, then the system will not boot. -Audit is explaining the future danger of turning on Secure Boot without updating the UEFI or boot files.
To see if there isn't a problem, I need to see the full output of "Check_UEFI-CA2023.ps1 -verbose -audit".
I'm trying to track down why the update script thinks some PC's are in Setup Mode, but they are not (which leads to 0xC0000022 errors). It means we're not allowed to change the UEFI's data.
Thanks again
@garlin
Here the "Check UEFI-CA.ps1 -Verbose:
Windows 11 25H2 (26200.7462)
Secure Boot: ON
Virtualization Based Security: ON
BitLocker on (C:) OFF
BIOS Firmware
-------------
Dell Inc. XPS 13 9360
Version: 2.21.0
Date: 2022-06-02
Factory Default UEFI PK Cert
----------------------------
Dell Inc. Platform Key
UEFI PK Cert
------------
Dell Inc. UEFI Platform Key
Manual update of [KEK CA 2023] is REQUIRED.
Factory Default UEFI KEK Certs
------------------------------
Microsoft Corporation KEK CA 2011
Dell Inc. Key Exchange Key
UEFI KEK Certs
--------------
Microsoft Corporation KEK CA 2011
Factory Default UEFI DB Certs
-----------------------------
Microsoft Corporation UEFI CA 2011
Microsoft Windows Production PCA 2011
Dell Inc. UEFI DB
UEFI DB Certs
-------------
Microsoft Corporation UEFI CA 2011
Microsoft Windows Production PCA 2011
Microsoft Option ROM UEFI CA 2023
Microsoft UEFI CA 2023
Windows UEFI CA 2023
Factory Default UEFI DBX Certs
------------------------------
Microsoft Windows PCA 2010
EFI_CERT_SHA256_GUID Signatures: 77
UEFI DBX Certs
--------------
Microsoft Windows PCA 2010
Windows BootMgr SVN 7.0
EFI_CERT_SHA256_GUID Signatures: 486
EFI Files
---------
Disk 0: Windows Boot Manager [Windows UEFI CA 2023] is BANNED.
bootmgfw.efi File version: 26100.30227
Registry: WindowsUEFICA2023Capable = 2
[Windows UEFI CA 2023] in UEFI DB, and Windows starting from CA 2023 Boot Manager.
Disk 0: SkuSiPolicy.p7b (for VBS) is NOT PRESENT.
REQUIRED ACTION
===============
Run the command:
Update_UEFI-CA2023.ps1 -Revoke
Finish the UEFI steps to manually add the [KEK CA 2023] cert, if the script provided instructions.
PS C:\WINDOWS\system32>
And Audit:
Secure Boot: ON
Virtualization Based Security: ON
BitLocker on (C:) OFF
UEFI KEK Certs
--------------
Microsoft Corporation KEK CA 2011
UEFI DB Certs
-------------
Microsoft Corporation UEFI CA 2011
Microsoft Windows Production PCA 2011
Microsoft Option ROM UEFI CA 2023
Microsoft UEFI CA 2023
Windows UEFI CA 2023
UEFI DBX Certs
--------------
Microsoft Windows PCA 2010
Windows BootMgr SVN 7.0
EFI Files
---------
Disk 0: Windows Boot Manager [Windows UEFI CA 2023] is BANNED.
Registry: WindowsUEFICA2023Capable = 2
[Windows UEFI CA 2023] in UEFI DB, and Windows starting from CA 2023 Boot Manager.
Disk 0: SkuSiPolicy.p7b (for VBS) is NOT PRESENT.
AUDIT REPORT
============
1. Secure Boot is DISABLED
2. [Microsoft Corporation KEK 2K CA 2023] is missing from UEFI KEK
3. [Production PCA 2011] is missing from UEFI DBX
4. SkuSiPolicy.p7b (for VBS) is missing
REQUIRED ACTION
===============
Run the command:
Update_UEFI-CA2023.ps1 -Revoke
Finish the UEFI steps to manually add the [KEK CA 2023] cert, if the script provided instructions.
PS C:\WINDOWS\system32>
Thanks again for patience
