Solved garlin's PowerShell scripts for updating Secure Boot CA 2023


I gave your new scripts a shot, unfortunately I ran into the same issue where I couldn't enable secure boot and had to restore the factory keys in order to tun it back on. Thank you for trying as I Imagine it's a lot of unpaid work and time, which nevertheless is greatly appreciated. I've no doubt your latest update will help others, that in itself is quite an achievement, so kudos to you!Screenshot 2026-01-04 120902.webpScreenshot 2026-01-04 121100.webpScreenshot 2026-01-04 121415.webpScreenshot 2026-01-04 122415.webp
 

My Computer

System One

  • OS
    Windows 11
I gave your new scripts a shot, unfortunately I ran into the same issue where I couldn't enable secure boot and had to restore the factory keys in order to tun it back on. Thank you for trying as I Imagine it's a lot of unpaid work and time, which nevertheless is greatly appreciated. I've no doubt your latest update will help others, that in itself is quite an achievement, so kudos to you!
This Lenovo BIOS keeps tripping up the the PK check, so the script think it's allowed to replace the PK (and fails).

From reading a few online comments, can you try this:
1. Confirm if your BIOS has a Device Guard setting. If true, temporarily disable it.

2. Quoting someone else's advice on a Gentoo forum:
To install new keys you probably have to:
1) Set "Platform mode" to "Setup Mode", this tells the firmware to accept new keys
2) Create a new Platform Key if you don't already have one, use the PK to sign the list of KEK keys (which should contain the Microsoft keys, and your own KEK). Use your own KEK to sign the DB key that you'll be signing your efi files with. (app-crypt/sbctl may be used to automate the process)
3) Install the new set of keys using, for example, app-crypt/sbctl (which has the --enroll option or something similarly named), or systemd-boot which can enroll keys it finds on the ESP automatically if the firmware is in Setup Mode (you'd have to check the manual to see what the file name of the key should be)
4) Set "Secure Boot Mode" to "Custom" and "Platform mode" to "User Mode" to instruct the firmware to use your custom set of keys instead of the built-in set of Microsoft keys (this may happen automatically after enrolling your keys).
 

My Computer

System One

  • OS
    Windows 7
This Lenovo BIOS keeps tripping up the the PK check, so the script think it's allowed to replace the PK (and fails).

From reading a few online comments, can you try this:
1. Confirm if your BIOS has a Device Guard setting. If true, temporarily disable it.

2. Quoting someone else's advice on a Gentoo forum:
Okay, I've turned off Device Guard in GPEdit and will use Setup Mode instead of Clear All Keys. I can sort of see what you're getting at, trying to append the new PK key while keeping the original Lenovo PK key. I'll be back shortly, I've had lots of practice..,
 

My Computer

System One

  • OS
    Windows 11
I finally got around to running the new scripts and at least for me I see no change. Not showing the PK info, and at the end still wants to suggest
running the -Revoke command.

ran the verbose - audit and the whatsmypk.ps1 all looks the same.


PS C:\WINDOWS\system32> powershell -nop -ep bypass -f C:\temp\check_uefi-ca2023.ps1
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
--------------
(NONE)

EFI Files
---------
Disk 0: Windows Boot Manager [Production PCA 2011] is ALLOWED.

Registry: WindowsUEFICA2023Capable = 1
[Windows UEFI CA 2023] in UEFI DB.

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.

Verbose-audit
PS C:\WINDOWS\system32> powershell -nop -ep bypass -f C:\temp\check_uefi-ca2023.ps1 -verbose -audit
Windows 11 25H2 (26200.7462)

Secure Boot: ON
Virtualization Based Security: ON
BitLocker on (C:) OFF

BIOS Firmware
-------------
HP HP Pavilion Desktop TP01-1xxx
Version: F.54
Date: 2025-08-03

Factory Default UEFI PK Cert
----------------------------
HP UEFI Secure Boot PK 2017

UEFI PK Cert
------------
HP UEFI Secure Boot PK 2017
[KEK CA 2023] Update is available from HP or Microsoft.

Factory Default UEFI KEK Certs
------------------------------
Microsoft Corporation KEK CA 2011
HP UEFI Secure Boot KEK 2017

UEFI KEK Certs
--------------
Microsoft Corporation KEK CA 2011
HP UEFI Secure Boot KEK 2017

Factory Default UEFI DB Certs
-----------------------------
Microsoft Corporation UEFI CA 2011
Microsoft Windows Production PCA 2011
HP UEFI Secure Boot DB 2017

UEFI DB Certs
-------------
Microsoft Corporation UEFI CA 2011
Microsoft Windows Production PCA 2011
HP UEFI Secure Boot DB 2017
Microsoft Option ROM UEFI CA 2023
Microsoft UEFI CA 2023
Windows UEFI CA 2023

Factory Default UEFI DBX Certs
------------------------------
(NONE)
EFI_CERT_SHA256_GUID Signatures: 77

UEFI DBX Certs
--------------
(NONE)
Windows BootMgr SVN is missing.
EFI_CERT_SHA256_GUID Signatures: 483

EFI Files
---------
Disk 0: Windows Boot Manager [Production PCA 2011] is ALLOWED.
bootmgfw.efi File version: 26100.30227

Registry: WindowsUEFICA2023Capable = 1
[Windows UEFI CA 2023] in UEFI DB.

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. Windows BootMgr SVN is missing from UEFI DBX
5. Windows Boot Manager [Production PCA 2011] is wrong version
6. 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.

WhatsmyPK
PS C:\WINDOWS\system32> powershell -nop -ep bypass -f C:\temp\WhatsMyPK.ps1


Subject : O=HP Inc., C=US, OU=CODE-SIGN, CN=HP UEFI Secure Boot PK 2017
Issuer : CN=HP Inc. PK 2016 CA, O=HP Inc., C=US
Thumbprint : D52AC7DB954C167A386E1AA955249A4D9BDADEDD
FriendlyName :
NotBefore : 1/19/2017 7:00:00 PM
NotAfter : 1/16/2033 6:59:59 PM
Extensions : {System.Security.Cryptography.Oid, System.Security.Cryptography.Oid, System.Security.Cryptography.Oid,
System.Security.Cryptography.Oid...}
 

My Computer

System One

  • OS
    Windows 11 Intel i5 10400 HD630 graphics chip
    Computer type
    PC/Desktop
    Manufacturer/Model
    HP
    CPU
    i5-10400
    Memory
    12 gb
    Graphics Card(s)
    HD630 chipset
    Monitor(s) Displays
    LG 24inch
    Hard Drives
    SSD, external usb drive 1tb for files/backups
    Keyboard
    wireless Logi
    Mouse
    ms 4000 wireless mouse
    Internet Speed
    10meg
    Browser
    Firefox
    Antivirus
    Defender
    Other Info
    Win11 Home 25h2 26200.8524 05/26/2026
This Lenovo BIOS keeps tripping up the PK check, so the script think it's allowed to replace the PK (and fails).

From reading a few online comments, can you try this:
1. Confirm if your BIOS has a Device Guard setting. If true, temporarily disable it.

2. Quoting someone else's advice on a Gentoo forum:

Dang Garlin, it is impressive to see how much you, (and @Ghot) put into these threads to help everyone out. You guys just keep hammering it out, day after day, to help everyone. You and Ghot need to be recognized somehow for all your expert advice and instructions. We all here are truly fortunate to have you two here to help us out. Good work and thank you much!
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 25H2 26200.8457
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Tower Plus EBT2250, DOB: 06/15/2025
    CPU
    Intel® Core™ Ultra 7 265 1.8GHz to 5.3GHz (Arrow Lake)
    Motherboard
    Dell Inc. 02D3NT A00 (U3E1)
    Memory
    SK Hynix 32GB DDR5 5600 Desktop RAM UDIMM Non-ECC PC5-5600B
    Graphics Card(s)
    Dell NVIDIA® GeForce RTX™ 4060 8GB GDDR6 & (iGPU) Integrated Intel® UHD Graphics
    Sound Card
    Chipset Realtek High-Definition Audio with Dolby Atmos
    Monitor(s) Displays
    Dell Ultra Sharp U2515H 25-Inch Screen LED-Lit
    Screen Resolution
    2560 X 1440
    Hard Drives
    Samsung (NVMe PM9C1a 1024GB) M.2 PCIe NVMe Solid State Drive (OS), with Samsung Piccolo (S4LY022) 6-Core 4 Channel Controller.

    Samsung T7 500GB SSD, USB-C External Drive
    PSU
    Dell 460W
    Case
    Dell Tower Plus EBT 2250
    Cooling
    Fan
    Keyboard
    Dell Wired Keyboard - KB216
    Mouse
    Logitech M510
    Internet Speed
    Intel Killer E3100G 2.5 Gigabit Ethernet Controller
    Browser
    Microsoft Edge
    Antivirus
    Microsoft Windows Security
    Other Info
    The Samsung NVMe PM9C1a 1024GB SSD does not use a Phison NAND controller. Instead, it uses Samsung's in-house developed Piccolo (S4LY022) 6-Core 4 Channel Controller. The PM9C1a utilizes a controller built using Samsung's 5-nanometer process and seventh-generation V-NAND technology. 🤔
  • Operating System
    Windows 11 Pro 25H2 26200.8457
    Computer type
    Laptop
    Manufacturer/Model
    Dell Inspiron 15 7000 (7591) 2-in-1, DOB: 11/30/2019
    CPU
    10th Generation Intel Core i7-10510U Processor (8MB Cache, up to 4.9 GHz) Comet Lake
    Motherboard
    Dell 0NNW5N
    Memory
    16GB DDR4 RAM
    Graphics card(s)
    NVIDIA® GeForce® MX250 with 2GB GDDR5 graphics memory
    Sound Card
    Chipset Realtek ALC3254 🤔🤣
    Monitor(s) Displays
    Dell 15.6-inch UHD Truelife Touch Narrow Border WVA Display with Active Pen support
    Screen Resolution
    3840 x 2160
    Hard Drives
    Intel NVME 512GB SSD with 32GB Intel Optane Memory, M.2 80mm PCIe 3.0 RAID

    SanDisk 256GB Extreme microSDXC UHS-I Memory Card
    PSU
    Dell 4-Cell Battery, 68 Whr (Integrated), 90 Watt AC Adapter
    Case
    Dell Inspiron 15 7000 2-in-1 (7591)
    Cooling
    Standard Dell Case Fan & Havit HV-F2056 USB Powered (3 Fans) Laptop Cooling Pad.
    Keyboard
    Dell
    Mouse
    Logitech Wireless Mouse M650L
    Internet Speed
    Wireless/Wired connectivity (WiFi 6 - 802.11 ax)
    Browser
    Microsoft Edge
    Antivirus
    Microsoft Windows Security
    Other Info
    From Dell: 512GB NVME Solid State Drive accelerated by 32GB Intel Optane Memory are the fastest as compared to NAND SSDs. Intel Optane H10 with SSD offers speedy storage and accelerates opening your programs.
You and Ghot need to be recognized somehow



Negatory good buddy. I just collect things the others (like @garlin and @XxXxX etc. ) have figured out, and put them all in one place.


All this stuff gives me brain damage too. I just use my OCD to organize it. :D
 

My Computers

System One System Two

  • OS
    Win 11 Home ♦♦♦26200.8457 ♦♦♦♦♦♦♦25H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Built by Ghot® [May 2020]
    CPU
    AMD Ryzen 7 3700X
    Motherboard
    Asus Pro WS X570-ACE (BIOS 5302)
    Memory
    G.Skill (F4-3200C14D-16GTZKW)
    Graphics Card(s)
    EVGA RTX 2070 (08G-P4-2171-KR)
    Sound Card
    Realtek ALC1220P / ALC S1220A
    Monitor(s) Displays
    Dell U3011 30"
    Screen Resolution
    2560 x 1600
    Hard Drives
    2x Samsung 860 EVO 500GB,
    WD 4TB Black FZBX - SATA III,
    WD 8TB Black FZBX - SATA III,
    DRW-24B1ST CD/DVD Burner
    PSU
    PC Power & Cooling 750W Quad EPS12V
    Case
    Cooler Master ATCS 840 Tower
    Cooling
    CM Hyper 212 EVO (push/pull)
    Keyboard
    Ducky DK9008 Shine II Blue LED
    Mouse
    Logitech Optical M-100
    Internet Speed
    300/300
    Browser
    Firefox (latest)
    Antivirus
    Bitdefender Total Security
    Other Info
    Speakers: Klipsch Pro Media 2.1
  • Operating System
    Windows XP Pro 32bit w/SP3
    Computer type
    PC/Desktop
    Manufacturer/Model
    Built by Ghot® (not in use)
    CPU
    AMD Athlon 64 X2 5000+ (OC'd @ 3.2Ghz)
    Motherboard
    ASUS M2N32-SLI Deluxe Wireless Edition
    Memory
    TWIN2X2048-6400C4DHX (2 x 1GB, DDR2 800)
    Graphics card(s)
    EVGA 256-P2-N758-TR GeForce 8600GT SSC
    Sound Card
    Onboard
    Monitor(s) Displays
    ViewSonic G90FB Black 19" Professional (CRT)
    Screen Resolution
    up to 2048 x 1536
    Hard Drives
    WD 36GB 10,000rpm Raptor SATA
    Seagate 80GB 7200rpm SATA
    Lite-On LTR-52246S CD/RW
    Lite-On LH-18A1P CD/DVD Burner
    PSU
    PC Power & Cooling Silencer 750 Quad EPS12V
    Case
    Generic Beige case, 80mm fans
    Cooling
    ZALMAN 9500A 92mm CPU Cooler
    Keyboard
    Logitech Classic Keybooard 200
    Mouse
    Logitech Optical M-BT96a
    Internet Speed
    300/300
    Browser
    Firefox 3.x ??
    Antivirus
    Symantec (Norton)
    Other Info
    Still assembled, still runs. Haven't turned it on for 15 years?
This Lenovo BIOS keeps tripping up the the PK check, so the script think it's allowed to replace the PK (and fails).

From reading a few online comments, can you try this:
1. Confirm if your BIOS has a Device Guard setting. If true, temporarily disable it.

2. Quoting someone else's advice on a Gentoo forum:

A slight difference when running the update script ( no red error ) , see below. No go sadly, thanks though. I admire your persistence.

Would it be worth trying the same thing again, but Clearing All Keys instead? It would be just like throwing a dart to see if it sticks.

Edit: I threw the dart and it didn't stick.
Screenshot 2026-01-04 133730.webpScreenshot 2026-01-04 134045.webpScreenshot 2026-01-04 134228.webp
 
Last edited:

My Computer

System One

  • OS
    Windows 11
UEFI KEK Certs
--------------
Microsoft Corporation KEK CA 2011
HP UEFI Secure Boot KEK 2017
This PC has the default MS KEK CA 2011, and HP added its own KEK 2017 (presumably to sign its own HP certs).
You don't have the KEK CA 2023 cert installed.

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.
The script is saying you have to enter the BIOS menu, search for a manual UEFI setting to add a cert from a file.

If your BIOS has this mode, then you select one of the listed disk(s), and look for an "\EFI\Certs" folder on the disk. Inside the folder, should be two KEK CA 2023 files. They're the same file, but each copy is named differently because some UEFI's will only accept a certain file extension. You can try either one.

Afterwards, restart Windows.
 

My Computer

System One

  • OS
    Windows 7
Negatory good buddy. I just collect things the others (like @garlin and @XxXxX etc. ) have figured out, and put them all in one place.


All this stuff gives me brain damage too. I just use my OCD to organize it. :D
Right and shame on me for leaving out @XxXxX! He also has done great support with all this.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 25H2 26200.8457
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Tower Plus EBT2250, DOB: 06/15/2025
    CPU
    Intel® Core™ Ultra 7 265 1.8GHz to 5.3GHz (Arrow Lake)
    Motherboard
    Dell Inc. 02D3NT A00 (U3E1)
    Memory
    SK Hynix 32GB DDR5 5600 Desktop RAM UDIMM Non-ECC PC5-5600B
    Graphics Card(s)
    Dell NVIDIA® GeForce RTX™ 4060 8GB GDDR6 & (iGPU) Integrated Intel® UHD Graphics
    Sound Card
    Chipset Realtek High-Definition Audio with Dolby Atmos
    Monitor(s) Displays
    Dell Ultra Sharp U2515H 25-Inch Screen LED-Lit
    Screen Resolution
    2560 X 1440
    Hard Drives
    Samsung (NVMe PM9C1a 1024GB) M.2 PCIe NVMe Solid State Drive (OS), with Samsung Piccolo (S4LY022) 6-Core 4 Channel Controller.

    Samsung T7 500GB SSD, USB-C External Drive
    PSU
    Dell 460W
    Case
    Dell Tower Plus EBT 2250
    Cooling
    Fan
    Keyboard
    Dell Wired Keyboard - KB216
    Mouse
    Logitech M510
    Internet Speed
    Intel Killer E3100G 2.5 Gigabit Ethernet Controller
    Browser
    Microsoft Edge
    Antivirus
    Microsoft Windows Security
    Other Info
    The Samsung NVMe PM9C1a 1024GB SSD does not use a Phison NAND controller. Instead, it uses Samsung's in-house developed Piccolo (S4LY022) 6-Core 4 Channel Controller. The PM9C1a utilizes a controller built using Samsung's 5-nanometer process and seventh-generation V-NAND technology. 🤔
  • Operating System
    Windows 11 Pro 25H2 26200.8457
    Computer type
    Laptop
    Manufacturer/Model
    Dell Inspiron 15 7000 (7591) 2-in-1, DOB: 11/30/2019
    CPU
    10th Generation Intel Core i7-10510U Processor (8MB Cache, up to 4.9 GHz) Comet Lake
    Motherboard
    Dell 0NNW5N
    Memory
    16GB DDR4 RAM
    Graphics card(s)
    NVIDIA® GeForce® MX250 with 2GB GDDR5 graphics memory
    Sound Card
    Chipset Realtek ALC3254 🤔🤣
    Monitor(s) Displays
    Dell 15.6-inch UHD Truelife Touch Narrow Border WVA Display with Active Pen support
    Screen Resolution
    3840 x 2160
    Hard Drives
    Intel NVME 512GB SSD with 32GB Intel Optane Memory, M.2 80mm PCIe 3.0 RAID

    SanDisk 256GB Extreme microSDXC UHS-I Memory Card
    PSU
    Dell 4-Cell Battery, 68 Whr (Integrated), 90 Watt AC Adapter
    Case
    Dell Inspiron 15 7000 2-in-1 (7591)
    Cooling
    Standard Dell Case Fan & Havit HV-F2056 USB Powered (3 Fans) Laptop Cooling Pad.
    Keyboard
    Dell
    Mouse
    Logitech Wireless Mouse M650L
    Internet Speed
    Wireless/Wired connectivity (WiFi 6 - 802.11 ax)
    Browser
    Microsoft Edge
    Antivirus
    Microsoft Windows Security
    Other Info
    From Dell: 512GB NVME Solid State Drive accelerated by 32GB Intel Optane Memory are the fastest as compared to NAND SSDs. Intel Optane H10 with SSD offers speedy storage and accelerates opening your programs.
I'm confused about one thing with the latest scripts, doubtless me not understanding specifically what is being reported.

Why does Windows BootMgr SVN 7.0 appear to be revoked? I'm guessing I'm just misunderstanding the report. I thought we just went through a process to get this added? :unsure:

1767564420392.webp
 

My Computers

System One System Two

  • OS
    Win 11 Pro 25H2, Build 26200.8524
    Computer type
    PC/Desktop
    Manufacturer/Model
    Home Brew
    CPU
    Intel Core i5 14500
    Motherboard
    Gigabyte B760M G P WIFI
    Memory
    64GB DDR4
    Graphics Card(s)
    GeForce RTX 4060
    Sound Card
    Chipset Realtek
    Monitor(s) Displays
    LG 45" Ultragear, Acer 24" 1080p
    Screen Resolution
    5120x1440, 1920x1080
    Hard Drives
    Crucial P310 2TB 2280 PCIe Gen4 3D NAND NVMe M.2 SSD (O/S)
    Silicon Power 2TB US75 NVMe PCIe Gen4 M.2 2280 SSD (backup)
    Crucial BX500 2TB 3D NAND (2nd backup)
    Seagate 4TB Ironwolf, rotating HDD archive files
    External off-line backup Drives: 2 NVMe 4TB drives in external enclosures
    PSU
    Thermaltake Toughpower GF3 750W
    Case
    LIAN LI LANCOOL 216 E-ATX PC Case
    Cooling
    Lots of fans!
    Keyboard
    Microsoft Comfort Curve 2000
    Mouse
    Logitech G305
    Internet Speed
    Verizon FiOS 1GB
    Browser
    Firefox
    Antivirus
    Malware Bytes & Windows Defender Security
  • Operating System
    Win 11 Pro 25H2, Build 26200.8524
    Computer type
    PC/Desktop
    Manufacturer/Model
    Home Brew
    CPU
    Intel Core i5 14400
    Motherboard
    Gigabyte B760M DS3H AX
    Memory
    32GB DDR5
    Graphics card(s)
    Intel 700 Embedded GPU
    Sound Card
    Realtek Embedded
    Monitor(s) Displays
    27" HP 1080p
    Screen Resolution
    1920x1080
    Hard Drives
    Crucial P310 2TB 2280 PCIe Gen4 eD NAND PCIe SSD
    Samsung EVO 990 2TB NVMe Gen4 SSD
    Samsung 2TB SATA SSD
    PSU
    Thermaltake Smart BM3 650W
    Case
    Okinos Micro ATX Case
    Cooling
    Fans
    Keyboard
    Microsoft Comfort Curve 2000
    Mouse
    Logitech G305
    Internet Speed
    Verizon FiOS 1GB
    Browser
    Firefox
    Antivirus
    Malware Bytes & Windows Defender Security
I've got a Toshiba Satellite L50-C-22L, Secure Boot has one switch and that's On or Off, i followed the prompts on the previous version scripts revoking the 2011 certs. I now have no other option than to turn off SB because i get a dialog telling me a security key is unsuitable as soon as i power on, even with the hard drive pulled out. MOSBY will not play because it wants SB turned on. I can't even find a current BIOS to reinstall as a test because it's an EOL machine although i doubt that would clear the embedded certs.

I'll be trying this new version tomorrow morning.
 

My Computers

System One System Two

  • OS
    Windows 11 Enterprise 25H2 26200 7462
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom Build
    CPU
    Intel XEON E5-2699 v3
    Motherboard
    ASUS X99-A
    Memory
    64GB Teamgroup UD4-3600
    Graphics Card(s)
    NVIDIA GeForce GTX 1080 Ti
    Sound Card
    Integrated
    Monitor(s) Displays
    ACER X34 Predator
    Screen Resolution
    3440 x 1440
    Hard Drives
    Crucial CT1000P 3P SSD8 1TB
    Crucial CT1000 BX500 SSD 1TB
    PSU
    GameMax Pro
    Case
    Fractal Design
    Cooling
    Corsair H110iGT + 6 140mm Fans
    Keyboard
    Corsair K4
    Mouse
    G-Skill G502
    Internet Speed
    300MBs
    Browser
    Chrome
    Antivirus
    OEM
    Other Info
    ASUS RT-AC87U Router
  • Operating System
    25H2 26200.5074
    Computer type
    Laptop
    Manufacturer/Model
    ASUS X555LA
    Memory
    8GB
    Browser
    Chrome
    Antivirus
    OEM
I'm confused about one thing with the latest scripts, doubtless me not understanding specifically what is being reported.

Why does Windows BootMgr SVN 7.0 appear to be revoked? I'm guessing I'm just misunderstanding the report. I thought we just went through a process to get this added? :unsure:

View attachment 158970
Unlike the other UEFI variables (PK, KEK, and DB), the DBX variable handles extra functions:
- Holds a list of banned X509 certs (like Production PCA 2011)​
- Holds a list of banned EFI files, based on signature hashes (not a complete certificate but a hash derived from the banned file's signing cert)​
- Holds a set of SVN values, encoded to resemble a banned EFI signature hash (but isn't really)​

Does that sound complicated? You bet. All of those are combined into the DBX variable, and requiring a tool or script to unpack all those details.

This PC has:
- A banned X509 cert for [Production PCA 2011]​
- At least 437 banned EFI signature hashes​
- Several SVN's are masquerading as EFI hashes, but the Windows boot manager knows how to read the DBX variable to figure out the highest SVN number in the mix.​

SVN's are weird, in like everything the UEFI does, you don't remove a lower SVN value.

Instead you keep adding a "fake EFI hash" containing a higher SVN to the DBX variable, and the highest encoded value wins out. If you break down the DBX variable there's a 2.0, 5.0 and 7.0 value each representing the BootMgr's SVN. The SVN's can only reside in the DBX variable and it's not a standalone cert, but the idea is you see everything related to DBX together.

The SVN gets bumped to 7.0 if you have followed the MS steps to add a SVN, or run the upgrade script with the -Revoke flag.

If you had VBS enabled, the original check script might have suggested you run a revoke, because it didn't have a separate -SkuPolicy flag. And revoke was the only way (at the time) to get the SkuPolicy copied over. Now the script will suggest using -SkuPolicy without revoking. But a revoke will always include the SkuPolicy step, as it did before.
 

My Computer

System One

  • OS
    Windows 7
Unlike the other UEFI variables (PK, KEK, and DB), the DBX variable handles extra functions:
- Holds a list of banned X509 certs (like Production PCA 2011)​
- Holds a list of banned EFI files, based on signature hashes (not a complete certificate but a hash derived from the banned file's signing cert)​
- Holds a set of SVN values, encoded to resemble a banned EFI signature hash (but isn't really)​

Does that sound complicated? You bet. All of those are combined into the DBX variable, and requiring a tool or script to unpack all those details.
Thanks again, I figured it was something like that, just threw me when I saw it pop up in the DBX list! :crossed
 

My Computers

System One System Two

  • OS
    Win 11 Pro 25H2, Build 26200.8524
    Computer type
    PC/Desktop
    Manufacturer/Model
    Home Brew
    CPU
    Intel Core i5 14500
    Motherboard
    Gigabyte B760M G P WIFI
    Memory
    64GB DDR4
    Graphics Card(s)
    GeForce RTX 4060
    Sound Card
    Chipset Realtek
    Monitor(s) Displays
    LG 45" Ultragear, Acer 24" 1080p
    Screen Resolution
    5120x1440, 1920x1080
    Hard Drives
    Crucial P310 2TB 2280 PCIe Gen4 3D NAND NVMe M.2 SSD (O/S)
    Silicon Power 2TB US75 NVMe PCIe Gen4 M.2 2280 SSD (backup)
    Crucial BX500 2TB 3D NAND (2nd backup)
    Seagate 4TB Ironwolf, rotating HDD archive files
    External off-line backup Drives: 2 NVMe 4TB drives in external enclosures
    PSU
    Thermaltake Toughpower GF3 750W
    Case
    LIAN LI LANCOOL 216 E-ATX PC Case
    Cooling
    Lots of fans!
    Keyboard
    Microsoft Comfort Curve 2000
    Mouse
    Logitech G305
    Internet Speed
    Verizon FiOS 1GB
    Browser
    Firefox
    Antivirus
    Malware Bytes & Windows Defender Security
  • Operating System
    Win 11 Pro 25H2, Build 26200.8524
    Computer type
    PC/Desktop
    Manufacturer/Model
    Home Brew
    CPU
    Intel Core i5 14400
    Motherboard
    Gigabyte B760M DS3H AX
    Memory
    32GB DDR5
    Graphics card(s)
    Intel 700 Embedded GPU
    Sound Card
    Realtek Embedded
    Monitor(s) Displays
    27" HP 1080p
    Screen Resolution
    1920x1080
    Hard Drives
    Crucial P310 2TB 2280 PCIe Gen4 eD NAND PCIe SSD
    Samsung EVO 990 2TB NVMe Gen4 SSD
    Samsung 2TB SATA SSD
    PSU
    Thermaltake Smart BM3 650W
    Case
    Okinos Micro ATX Case
    Cooling
    Fans
    Keyboard
    Microsoft Comfort Curve 2000
    Mouse
    Logitech G305
    Internet Speed
    Verizon FiOS 1GB
    Browser
    Firefox
    Antivirus
    Malware Bytes & Windows Defender Security
The factory-default HP BIOS sets Key Ownership to HP Keys. This means the HP platform key (PK), Microsoft key exchange key (KEK), Microsoft database (db), and a blacklist database (dbx) are populated. When Secure Boot is disabled, the keys currently enrolled in the system are preserved. If a custom PK, KEK, db, and dbx are desired, the user must change Key Ownership to Custom Keys. Once confirmed, this change will automatically disable Secure Boot and clear the PK, KEK, db, and dbx. The user may then import custom keys and re-enable Secure Boot.

Note: If the user tries to import the HP PK when Key Ownership is Custom Keys, the BIOS will reject the PK.
 
Last edited:

My Computer

System One

  • OS
    Windows 7
Hello.

Thank you for your efforts @garlin.

The new version of the script already mentions the Pk, unlike the previous one, however I still have some outputs that I don't understand:

When I run Check UEFI CA 2023 EFI files it says that "Boot Manager [Windows UEFI CA 2023] is BANNED", however Windows boots from it (at least that's what it says in all the scripts to check it).

The other error is that when I try to run the update script the only message that appears is:
"Downloading "edk2-x64-secureboot-binaries.zip" from GitHub.
Incorrect authentication data: 0xC0000022".


The last error I don't understand is that when in audit mode the output says "secure boot enable" at the beginning and at the end of the report it says "secure boot disable".

Thanks again.

Ps- I will send the outputs if necessary.
 

My Computer

System One

  • OS
    Windows 11 Pro 25H2
    Computer type
    Laptop
    Manufacturer/Model
    Dell XPS 13 9360
    CPU
    Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz
    Memory
    8 GB
The new version of the script already mentions the Pk, unlike the previous one, however I still have some outputs that I don't understand:

When I run Check UEFI CA 2023 EFI files it says that "Boot Manager [Windows UEFI CA 2023] is BANNED", however Windows boots from it (at least that's what it says in all the scripts to check it).
The last error I don't understand is that when in audit mode the output says "secure boot enable" at the beginning and at the end of the report it says "secure boot disable".
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".

The other error is that when I try to run the update script the only message that appears is:
"Downloading "edk2-x64-secureboot-binaries.zip" from GitHub.
Incorrect authentication data: 0xC0000022".
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.
 

My Computer

System One

  • OS
    Windows 7
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 ;-)
 

My Computer

System One

  • OS
    Windows 11 Pro 25H2
    Computer type
    Laptop
    Manufacturer/Model
    Dell XPS 13 9360
    CPU
    Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz
    Memory
    8 GB
@cool59, can you run this command from PowerShell?
Code:
get-variable SetupMode

It should return an error, with no variable found. If it does report $true, let me know.
 

My Computer

System One

  • OS
    Windows 7
@cool59, can you run this command from PowerShell?
Code:
get-variable SetupMode

It should return an error, with no variable found. If it does report $true, let me know.
Yes...give me this error:

PS C:\WINDOWS\system32> get-variable SetupMode
get-variable : Cannot find a variable with the name 'SetupMode'.
At line:1 char:1
+ get-variable SetupMode
+ ~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (SetupMode:String) [Get-Variable], ItemNotFoundException
+ FullyQualifiedErrorId : VariableNotFound,Microsoft.PowerShell.Commands.GetVariableCommand

;-)




PS C:\WINDOWS\system32>
 

My Computer

System One

  • OS
    Windows 11 Pro 25H2
    Computer type
    Laptop
    Manufacturer/Model
    Dell XPS 13 9360
    CPU
    Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz
    Memory
    8 GB
Back
Top Bottom