Hey friends

!
After months of anguish over being unable to install Kek CA 2k 2023 in secure boot, today I decided to venture into the BIOS of my Dell XPS 13 9360 (2016 with the last BIOS update in 2022).
First, with Secure Boot enabled, and in custom mode, I deleted all the certificates.
After making sure I was in custom mode using the respective script, I ran the update sript and apparently everything was fine, with the certificates listed in the check script.
However, like other users, when I turned secure boot back on, the PC wouldn't boot.
I tried several times and succeeded in a somewhat strange way:
I discovered that if I left custom mode enabled (instead of turning it back to standard mode) when finish, the pc booted
without problems with secure boot enabled, and the registry editor says the update is complete, with the necessary certificates, as you can see in the screenshot.I don't know if there's any problem with leaving custom mode enabled... but I'm tempted to leave it that way.
Thanks for any opinions on this matter.
@garlin, thank you very much for all your efforts.
View attachment 166512
OMG! You're my Hero! It worked for me too! Here is the whole story...
Dell Precision M4800 laptop
Enter Bios
Enable Secure Boot
Under Expert Key Management check the box Enable Custom Mode
Delete (not reset) all Keys.
Save and exit and the PC should boot to windows.
....................................
Run Check_UEFI-CA2023.ps1
Secure Boot: ON
Virtualization Based Security: OFF
BitLocker on (C:) OFF
UEFI is in Setup Mode (NO CERTS)
EFI Files
---------
Disk 1: Windows Boot Manager [Windows UEFI CA 2023] is ALLOWED.
Registry: WindowsUEFICA2023Capable = 0
[Windows UEFI CA 2023] not in UEFI DB.
REQUIRED ACTION
===============
OPTION 1: To install [UEFI CA 2023] certs WITHOUT REVOKING the [PCA 2011] cert, run the command:
Update_UEFI-CA2023.ps1
OPTION 2: To install [UEFI CA 2023] certs and REVOKE the [PCA 2011] cert, run the command:
Update_UEFI-CA2023.ps1 -Revoke
......................................
PS C:\Users\LeeElectrode\Desktop\SecureBoot-CA-2023-Updates>
Run Update_UEFI-CA2023.ps1 -verbose
VERBOSE: Perform operation 'Enumerate CimInstances' with following parameters, ''namespaceName' = root\Microsoft\Windows\DeviceGuard,'className' = Win32_DeviceGuard'.
VERBOSE: Operation 'Enumerate CimInstances' complete.
Downloading "edk2-x64-secureboot-binaries.zip" from GitHub.
VERBOSE: Requested HTTP/1.1 GET with 0-byte payload
VERBOSE: Received HTTP/1.1 357605-byte response of content type application/octet-stream
VERBOSE: File Name: edk2-secureboot-binaries.zip
Successfully wrote "Default3PDb.bin" to UEFI db.
Successfully wrote "DefaultDbx.bin" to UEFI dbx.
Successfully wrote "DefaultKek.bin" to UEFI KEK.
Successfully wrote "DefaultPk.bin" to UEFI PK.
Downloading "WindowsOEMDevicesPK.der" from GitHub.
VERBOSE: Requested HTTP/1.1 GET with 0-byte payload
VERBOSE: Received HTTP/1.1 1531-byte response of content type application/octet-stream
VERBOSE: File Name: WindowsOEMDevicesPK.der
Copying "WindowsOEMDevicesPK.der" to EFI.
REQUIRED ACTION
---------------
Please follow the README_UEFI.TXT instructions, for installing the PK cert from BIOS.
Restart Windows, for UEFI updates to take effect.
PS C:\Users\LeeElectrode\Desktop\SecureBoot-CA-2023-Updates>
.............................................................
Restart Windows
Run Check_UEFI-CA2023.ps1
Secure Boot: ON
Virtualization Based Security: OFF
BitLocker on (C:) OFF
UEFI KEK Certs
--------------
Microsoft Corporation KEK CA 2011
Microsoft Corporation KEK 2K CA 2023
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
--------------
(NONE)
EFI Files
---------
Disk 1: Windows Boot Manager [Windows UEFI CA 2023] is ALLOWED.
Registry: WindowsUEFICA2023Capable = 2
[Windows UEFI CA 2023] in UEFI DB, and Windows starting from CA 2023 Boot Manager.
REQUIRED ACTION
===============
To revoke the [PCA 2011] cert, run the commands, run the commands:
reg add HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Secureboot /v AvailableUpdates /t REG_DWORD /d 0x280 /f
powershell Start-ScheduledTask -TaskName "\Microsoft\Windows\PI\Secure-Boot-Update"
.....................................
PS C:\Users\LeeElectrode\Desktop\SecureBoot-CA-2023-Updates> Add the above key.
PS C:\Users\LeeElectrode\Desktop\SecureBoot-CA-2023-Updates> reg add HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Secureboot /v AvailableUpdates /t REG_DWORD /d 0x280 /f
>> powershell Start-ScheduledTask -TaskName "\Microsoft\Windows\PI\Secure-Boot-Update"
The operation completed successfully.
.....................................
PS C:\Users\LeeElectrode\Desktop\SecureBoot-CA-2023-Updates>
Run Check_UEFI-CA2023.ps1 -verbose
Windows 11 25H2 (26200.8037)
Secure Boot: ON
Virtualization Based Security: OFF
BitLocker on (C:) OFF
BIOS Firmware
-------------
Dell Inc. Precision M4800
Version: A26
Date: 2019-06-12
Factory Default UEFI PK Cert
----------------------------
(NONE)
UEFI PK Cert
------------
Windows OEM Devices PK
Factory Default UEFI KEK Certs
------------------------------
(NONE)
UEFI KEK Certs
--------------
Microsoft Corporation KEK CA 2011
Microsoft Corporation KEK 2K CA 2023
Factory Default UEFI DB Certs
-----------------------------
(NONE)
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
------------------------------
(NONE)
Get-SecureBootUEFI: C:\Users\LeeElectrode\Desktop\SecureBoot-CA-2023-Updates\Check_UEFI-CA2023.ps1:1115
Line |
1115 | … gnatures: {1}' -f $Tab4, (Get-SecureBootUEFI -Name dbxDefault | Get-U …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Variable is currently undefined: 0xC0000100
UEFI DBX Certs
--------------
Microsoft Windows Production PCA 2011
Windows BootMgr SVN 7.0
EFI_CERT_SHA256_GUID Signatures: 437
EFI Files
---------
Disk 1: Windows Boot Manager [Windows UEFI CA 2023] is ALLOWED.
bootmgfw.efi File version: 26100.30227
Registry: WindowsUEFICA2023Capable = 2
[Windows UEFI CA 2023] in UEFI DB, and Windows starting from CA 2023 Boot Manager.
STATUS REPORT
-------------
Registry: UEFICA2023Status = Updated
SUCCESS: NO UPDATES ARE REQUIRED.
PS Enable Custom Mode is still in effect.