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


I was just checking in with you. I thought someone might have reached out. I assume you will keep us updated?
I'll keep everyone informed, but I don't understand the worry.

My script does the right thing (it has a different method for determining the DBX's SVN, written). But if someone or a guide instructs you to run Get-SecureBootSVN, then that result may be wrong. The whole point of the project is to get a correct presentation of facts so everyone doesn't have to be an expert on Secure Boot.
 

My Computer

System One

  • OS
    Windows 7
I got a pleasant surprise from ASRock today. I went to their website to see if they finally released a new BIOS update. When I saw that the had release a Secure Boot BIOS update you could have knocked me over with a feather. My PowerSpec B746 desktop is know running BIOS v L1.36 dated 02/26/2026. Because I had to reset the BIOS back to the factory defaults I had to reset my pin number to get back into Windows 11. I haven't check to see the Secure Boot settings yet.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 25H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    PowerSpec B746
    CPU
    Intel Core i7-10700K
    Motherboard
    ASRock Z490 Phantom Gaming 4/ax
    Memory
    16GB (8GB PC4-19200 DDR4 SDRAM x2)
    Graphics Card(s)
    NVIDIA GeForce GTX 1050 TI
    Sound Card
    Realtek Audio
    Monitor(s) Displays
    #1. LG ULTRAWIDE 34" #2. AOC Q32G2WG3 32"
    Screen Resolution
    #1. 3440 X 1440 #2. 1920 x 1080
    Hard Drives
    NVMe WDC WDS100T2B0C-00PXH0 1TB
    Samsung SSD 860 EVO 1TB
    PSU
    750 Watts (62.5A)
    Case
    PowerSpec/Lian Li ATX 205
    Keyboard
    Logitech K270
    Mouse
    Logitech M185
    Browser
    Microsoft Edge and Firefox
    Antivirus
    Webroot SecureAnywhere CE 26.1
  • Operating System
    Windows 11 Canary Channel
    Computer type
    PC/Desktop
    Manufacturer/Model
    PowerSpec G156
    CPU
    Intel Core i5-8400 CPU @ 2.80GHz
    Motherboard
    AsusTeK Prime B360M-A
    Memory
    16 MB DDR 4-2666
    Monitor(s) Displays
    23" Speptre HDMI 75Hz
    Screen Resolution
    1920x1080
    Hard Drives
    Samsung 970 EVO 500GB NVMe
    Keyboard
    Logitek K270
    Mouse
    Logitek M185
    Browser
    Firefox, Edge and Edge Canary
    Antivirus
    Windows Defender
I got a pleasant surprise from ASRock today. I went to their website to see if they finally released a new BIOS update. When I saw that the had release a Secure Boot BIOS update you could have knocked me over with a feather. My PowerSpec B746 desktop is know running BIOS v L1.36 dated 02/26/2026. Because I had to reset the BIOS back to the factory defaults I had to reset my pin number to get back into Windows 11. I haven't check to see the Secure Boot settings yet.
When you refresh the certs (because the new factory defaults added CA 2023), TPM detects this as a platform change.

Windows will ask for a BitLocker recovery key (if BitLocker wasn't disabled or suspended), and your Windows Hello PIN is no longer valid. It's a security measure to confirm someone didn't alter your UEFI's settings without your knowledge. It's annoying, but for your protection.
 

My Computer

System One

  • OS
    Windows 7
When you refresh the certs (because the new factory defaults added CA 2023), TPM detects this as a platform change.

Windows will ask for a BitLocker recovery key (if BitLocker wasn't disabled or suspended), and your Windows Hello PIN is no longer valid. It's a security measure to confirm someone didn't alter your UEFI's settings without your knowledge. It's annoying, but for your protection.
I never saw a need to use BitLocker on my computers. On the rare occasions I need to encrypt a file or folder I'll use VeraCrypt. I wasn't surprised that I had to have a code sent to my phone so I could log-in to my MS account to reset my pin number because I have had to do it in the past.. One nice thing is that I didn't have to change my pin number. The ASRock Instant Flash makes it so easy to update the BIOS. I remember when I use to cross my fingers and hope for the best when I did a BIOS update. Something that did surprise me though was Edge. I had to reset the three pages that load when Edge starts. Firefox wasn't effected. I'm guessing that having to sign-in to my MS account must have reset Edge. Not sure why though. As far as I know, I don't have Edge set to sync to my MS account.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 25H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    PowerSpec B746
    CPU
    Intel Core i7-10700K
    Motherboard
    ASRock Z490 Phantom Gaming 4/ax
    Memory
    16GB (8GB PC4-19200 DDR4 SDRAM x2)
    Graphics Card(s)
    NVIDIA GeForce GTX 1050 TI
    Sound Card
    Realtek Audio
    Monitor(s) Displays
    #1. LG ULTRAWIDE 34" #2. AOC Q32G2WG3 32"
    Screen Resolution
    #1. 3440 X 1440 #2. 1920 x 1080
    Hard Drives
    NVMe WDC WDS100T2B0C-00PXH0 1TB
    Samsung SSD 860 EVO 1TB
    PSU
    750 Watts (62.5A)
    Case
    PowerSpec/Lian Li ATX 205
    Keyboard
    Logitech K270
    Mouse
    Logitech M185
    Browser
    Microsoft Edge and Firefox
    Antivirus
    Webroot SecureAnywhere CE 26.1
  • Operating System
    Windows 11 Canary Channel
    Computer type
    PC/Desktop
    Manufacturer/Model
    PowerSpec G156
    CPU
    Intel Core i5-8400 CPU @ 2.80GHz
    Motherboard
    AsusTeK Prime B360M-A
    Memory
    16 MB DDR 4-2666
    Monitor(s) Displays
    23" Speptre HDMI 75Hz
    Screen Resolution
    1920x1080
    Hard Drives
    Samsung 970 EVO 500GB NVMe
    Keyboard
    Logitek K270
    Mouse
    Logitek M185
    Browser
    Firefox, Edge and Edge Canary
    Antivirus
    Windows Defender
I think my PowerSpec B746 is now good to go. When I first checked I saw that Secure Boot was turned off. When I entered the BIOS to turn it on I found that I had to turn off CSM. Very easy to do once I found out where they hid the setting. This is what I got when I ran the script to do a check. Looks good to me. I hope I'm right.

UEFI Certs.webp
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 25H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    PowerSpec B746
    CPU
    Intel Core i7-10700K
    Motherboard
    ASRock Z490 Phantom Gaming 4/ax
    Memory
    16GB (8GB PC4-19200 DDR4 SDRAM x2)
    Graphics Card(s)
    NVIDIA GeForce GTX 1050 TI
    Sound Card
    Realtek Audio
    Monitor(s) Displays
    #1. LG ULTRAWIDE 34" #2. AOC Q32G2WG3 32"
    Screen Resolution
    #1. 3440 X 1440 #2. 1920 x 1080
    Hard Drives
    NVMe WDC WDS100T2B0C-00PXH0 1TB
    Samsung SSD 860 EVO 1TB
    PSU
    750 Watts (62.5A)
    Case
    PowerSpec/Lian Li ATX 205
    Keyboard
    Logitech K270
    Mouse
    Logitech M185
    Browser
    Microsoft Edge and Firefox
    Antivirus
    Webroot SecureAnywhere CE 26.1
  • Operating System
    Windows 11 Canary Channel
    Computer type
    PC/Desktop
    Manufacturer/Model
    PowerSpec G156
    CPU
    Intel Core i5-8400 CPU @ 2.80GHz
    Motherboard
    AsusTeK Prime B360M-A
    Memory
    16 MB DDR 4-2666
    Monitor(s) Displays
    23" Speptre HDMI 75Hz
    Screen Resolution
    1920x1080
    Hard Drives
    Samsung 970 EVO 500GB NVMe
    Keyboard
    Logitek K270
    Mouse
    Logitek M185
    Browser
    Firefox, Edge and Edge Canary
    Antivirus
    Windows Defender
I think my PowerSpec B746 is now good to go. When I first checked I saw that Secure Boot was turned off. When I entered the BIOS to turn it on I found that I had to turn off CSM. Very easy to do once I found out where they hid the setting. This is what I got when I ran the script to do a check. Looks good to me. I hope I'm right.
For the CA 2023 certs, you're fine.

What concerns me is the script cannot open "\Windows\System32\SecureBootUpdates\dbxupdate.bin". I will guess when you browse that folder, dbxupdate.bin is present. You might be the 3rd user to report some weird glitch where the script isn't allowed to read that file, even it exists and you're running as Admin.
 

My Computer

System One

  • OS
    Windows 7
For the CA 2023 certs, you're fine.

What concerns me is the script cannot open "\Windows\System32\SecureBootUpdates\dbxupdate.bin". I will guess when you browse that folder, dbxupdate.bin is present. You might be the 3rd user to report some weird glitch where the script isn't allowed to read that file, even it exists and you're running as Admin.
The file does exist but it says that it was modified on 10/14/2025 and the size is 24KB. On my other desktop the file is the same size and the date modified is 3/12/2026.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 25H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    PowerSpec B746
    CPU
    Intel Core i7-10700K
    Motherboard
    ASRock Z490 Phantom Gaming 4/ax
    Memory
    16GB (8GB PC4-19200 DDR4 SDRAM x2)
    Graphics Card(s)
    NVIDIA GeForce GTX 1050 TI
    Sound Card
    Realtek Audio
    Monitor(s) Displays
    #1. LG ULTRAWIDE 34" #2. AOC Q32G2WG3 32"
    Screen Resolution
    #1. 3440 X 1440 #2. 1920 x 1080
    Hard Drives
    NVMe WDC WDS100T2B0C-00PXH0 1TB
    Samsung SSD 860 EVO 1TB
    PSU
    750 Watts (62.5A)
    Case
    PowerSpec/Lian Li ATX 205
    Keyboard
    Logitech K270
    Mouse
    Logitech M185
    Browser
    Microsoft Edge and Firefox
    Antivirus
    Webroot SecureAnywhere CE 26.1
  • Operating System
    Windows 11 Canary Channel
    Computer type
    PC/Desktop
    Manufacturer/Model
    PowerSpec G156
    CPU
    Intel Core i5-8400 CPU @ 2.80GHz
    Motherboard
    AsusTeK Prime B360M-A
    Memory
    16 MB DDR 4-2666
    Monitor(s) Displays
    23" Speptre HDMI 75Hz
    Screen Resolution
    1920x1080
    Hard Drives
    Samsung 970 EVO 500GB NVMe
    Keyboard
    Logitek K270
    Mouse
    Logitek M185
    Browser
    Firefox, Edge and Edge Canary
    Antivirus
    Windows Defender
The SecureBootUpdate folder should be refreshed by Windows Update, try copying the file over the 2026 system.

dbxupdate.bin hasn't changed since last October, but something might have messed up the folder or file permissions.
 

My Computer

System One

  • OS
    Windows 7
Well, while you are banging on doors there, would you please ask your contact there to please bring back Microsoft Money? :zany:
I still use MS Money Plus Deluxe Sunset edition from 2016. My wife would kill me if I couldn't keep it running. :scream:
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 25H2
    Computer type
    Laptop
    Manufacturer/Model
    Lenovo T490 (2020 Hardware)
    CPU
    i7-8565U
    Motherboard
    20N20028US
    Memory
    16GB
    Graphics Card(s)
    Intel UHD Graphics 620
    Sound Card
    Realtec Audio
    Monitor(s) Displays
    ASUS VE248
    Screen Resolution
    1920 X 1080
    Hard Drives
    Samsung SSD 970 PRO 512GB NVMe
    Internet Speed
    Frontier fiber 1GB
    Browser
    Chrome, Firefox, Edge
    Antivirus
    Norton 360 Deluxe Plus
    Other Info
    Supported hardware, upgraded from Windows 10 Pro to Windows 11 Pro version 24H2 on 06/01/2025 using the Windows 11 ISO file. Used the enablement package to upgrade to version 25H2 on 10/07/2025. Secure boot enabled. Secure Boot CA 2023 updated.
  • Operating System
    Windows 11 Pro 25H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Lenovo ThinkCentre M83 (2014 Hardware)
    CPU
    i7-4770 (with SSE4.2, and POPCNT)
    Motherboard
    10AL000GUS
    Memory
    16GB
    Graphics card(s)
    Intel HD Graphics 4600
    Sound Card
    Realtec High Definition Audio
    Monitor(s) Displays
    ASUS VE248
    Screen Resolution
    1920 X 1080
    Hard Drives
    Samsung SSD 860 PRO 1TB SATA
    Internet Speed
    Frontier fiber 1GB
    Browser
    Chrome, Firefox, Edge
    Antivirus
    Norton 360 Deluxe Plus
    Other Info
    Unsupported hardware, upgraded from Windows 10 Pro (TPM 1.2 & unsupported CPU, but does have SSE4.2, and POPCNT) to Windows 11 Pro version 24H2 on 06/15/2025. Added Registry Key HKEY_LOCAL_MACHINE\SYSTEM\Setup\MoSetup – AllowUpgradesWithUnsupportedTPMOrCPU=1 to allow installation using the Windows 11 ISO file. Used the enablement package to upgrade to version 25H2 on 10/08/2025. Secure boot enabled. Secure Boot CA 2023 updated.

My Computers

System One System Two

  • OS
    Windows 11 Pro 25H2
    Computer type
    Laptop
    Manufacturer/Model
    Lenovo T490 (2020 Hardware)
    CPU
    i7-8565U
    Motherboard
    20N20028US
    Memory
    16GB
    Graphics Card(s)
    Intel UHD Graphics 620
    Sound Card
    Realtec Audio
    Monitor(s) Displays
    ASUS VE248
    Screen Resolution
    1920 X 1080
    Hard Drives
    Samsung SSD 970 PRO 512GB NVMe
    Internet Speed
    Frontier fiber 1GB
    Browser
    Chrome, Firefox, Edge
    Antivirus
    Norton 360 Deluxe Plus
    Other Info
    Supported hardware, upgraded from Windows 10 Pro to Windows 11 Pro version 24H2 on 06/01/2025 using the Windows 11 ISO file. Used the enablement package to upgrade to version 25H2 on 10/07/2025. Secure boot enabled. Secure Boot CA 2023 updated.
  • Operating System
    Windows 11 Pro 25H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Lenovo ThinkCentre M83 (2014 Hardware)
    CPU
    i7-4770 (with SSE4.2, and POPCNT)
    Motherboard
    10AL000GUS
    Memory
    16GB
    Graphics card(s)
    Intel HD Graphics 4600
    Sound Card
    Realtec High Definition Audio
    Monitor(s) Displays
    ASUS VE248
    Screen Resolution
    1920 X 1080
    Hard Drives
    Samsung SSD 860 PRO 1TB SATA
    Internet Speed
    Frontier fiber 1GB
    Browser
    Chrome, Firefox, Edge
    Antivirus
    Norton 360 Deluxe Plus
    Other Info
    Unsupported hardware, upgraded from Windows 10 Pro (TPM 1.2 & unsupported CPU, but does have SSE4.2, and POPCNT) to Windows 11 Pro version 24H2 on 06/15/2025. Added Registry Key HKEY_LOCAL_MACHINE\SYSTEM\Setup\MoSetup – AllowUpgradesWithUnsupportedTPMOrCPU=1 to allow installation using the Windows 11 ISO file. Used the enablement package to upgrade to version 25H2 on 10/08/2025. Secure boot enabled. Secure Boot CA 2023 updated.
Instead of changing the Execution Policy (not everyone wants to), you can use a longer command line to run the script:
Code:
powershell -ep bypass -f \folder\name\Update_UEFI-CA2023.ps1

If you got a "Failed to append" error, the normal (safe) method failed and you need to try the "Delete All Keys" from the BIOS menu. Then re-run the update script.

Hey friends!

The @man00 Dell bios type look exactly like mine.
Yes, it was a litle tricky to find the certs under folder "\EFI\Certs", but when i find them a error message pop-up said the certs are not properly signed (both formats).
Soo...i think in the case of @man00 the best is:

Enter Bios
Check if Secure Boot is enabled
Under Expert Key Management check the box Enable Custom Mode
Delete all Keys.
Disable secure boot
Save and exit and the PC should boot to windows.

Run the check script to unsure that the bios is in setup mode.
If yes, run the update script.

Then run check script again and see if the KEK CA 2K is presente.

If soo, reenter the bios and enable secure boot again.
Leave the custom mode enable and exit bios.

Done.
Best luck ;-)
Thanks got it done other than the revoke the 2011 key, will do that or let MS do it in June
 

My Computer

System One

  • OS
    windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    Antec/Case
    CPU
    Intel i5-10600kf
    Motherboard
    GIGABYTE Z590 UD AC
    Memory
    32gb corsair vengerance pro
    Graphics Card(s)
    AMD RX 6500XT
    Sound Card
    onboard
    Monitor(s) Displays
    40" Hisense
    Hard Drives
    Samsung 850
    Samsung 870
    Seagate 2TB
    PSU
    EVGA GQ 750
That's not a normal looking registry. It looks like the Secure Boot scheduled task barfed while trying to update things.
What model PC is this from?
Thats the HP Elitebook 820 G4
 

My Computers

System One System Two

  • OS
    11
    Computer type
    Laptop
    Manufacturer/Model
    ASUS
    CPU
    Ryzen 5900HX
    Motherboard
    Built In
    Memory
    32GB
    Graphics Card(s)
    RTX 3080 16GB
    Sound Card
    Onboard
    Monitor(s) Displays
    Built in
    Screen Resolution
    1920x1080
    Hard Drives
    Samsung 1TB
    Sabrent 2TB
    PSU
    240W Poorly Designed Asus Charger
    Case
    Built In
    Cooling
    Liquid Metal
    Keyboard
    Built in RGB
  • Operating System
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    Home Made
    CPU
    9900K
    Motherboard
    Asus Z390-P
    Memory
    32GB
    Graphics card(s)
    2080 TI
    Sound Card
    Onboard
    Monitor(s) Displays
    25 Inch
    Screen Resolution
    1920x1080
    Hard Drives
    256gb Crucial SSD
    1 TB WD SSD
    8 TB Samsung SSD
    PSU
    750W
    Case
    Corsair
    Cooling
    Corsair H100I
    Keyboard
    HyperX
    Mouse
    Razer Death Adder 2021 (Not full price lol)

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.
My main computer results, To run those commands do I need to run Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass for powershell?
the other command I run from CMD as Admin?
Should Secure Boot be disabled before doing either of these?
Thanks
ps1.webp
 

My Computer

System One

  • OS
    windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    Antec/Case
    CPU
    Intel i5-10600kf
    Motherboard
    GIGABYTE Z590 UD AC
    Memory
    32gb corsair vengerance pro
    Graphics Card(s)
    AMD RX 6500XT
    Sound Card
    onboard
    Monitor(s) Displays
    40" Hisense
    Hard Drives
    Samsung 850
    Samsung 870
    Seagate 2TB
    PSU
    EVGA GQ 750
My main computer results, To run those commands do I need to run Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass for powershell?
the other command I run from CMD as Admin?
Should Secure Boot be disabled before doing either of these?
CA 2023 certs are added, but PCA 2011 has not been revoked.

Users have to decide whether they prefer to keep PS's security policy in place, or make it easier to run PS scripts again in the future. I run scripts all the time, so my Execution Policy is less secure. If you rather not change it, then use the longer command line, which overrides the policy for just one command.

The results will be exactly the same.

Secure Boot does not have to be disabled in your case.. It's only recommended to disable Secure Boot if you don't have a supported PC, and need to replace all the certs in Setup Mode. That's just in case the UEFI reset doesn't work correctly.
 

My Computer

System One

  • OS
    Windows 7
Garlin,
What are the differences between your .bat files as opposed to your .ps1 files? On my desktop the .ps1 files error but the .bat files work calling out Powershell. Just curious... My desktop has been already updated.Screenshot 03-23-2026 08.39.41.webp
 

My Computer

System One

  • OS
    win 11
    Computer type
    Laptop
    Manufacturer/Model
    Dell Precision M4800
    CPU
    Intell Core i7 4900 MQ
    Motherboard
    Dell QT3YTY A00
    Memory
    DDR3 16 GB
What are the differences between your .bat files as opposed to your .ps1 files? On my desktop the .ps1 files error but the .bat files work calling out Powershell. Just curious... My desktop has been already updated.
What you're seeing is the Execution Policy in effect. There are different levels of trust, and your current policy doesn't allow unsigned scripts.

I can't provide a signed script because of two reasons:
1. Not a professional dev, and signer certs from a trusted Certificate Authority are not cheap (it's designed that way to prevent casual hacking). Other folks who are devs do enough work to justify the cert's cost. Doing this for free.

2. While I could make my own self-signed cert and sign my scripts, you would have to import the cert into your Windows. That doesn't make the process any easier.

For the security conscious, the script is not obfuscated and all the Secure Boot files are accessed from Windows itself or the MS Secure Boot GitHub.

When you run the batch script, it does the same "powershell -ExecutionPolicy Bypass" or -ep bypass, on the command line.
Code:
@echo off
where pwsh >nul 2>nul
if %errorlevel% equ 0 (
   pwsh -nop -ep bypass -noexit -f "%~dp0\Check_UEFI-CA2023.ps1" %*
) else (
   powershell -nop -ep bypass -noexit -f "%~dp0\Check_UEFI-CA2023.ps1" %*
)

You can pass the batch file the same arguments, as the PS script.
Code:
Check-UEFI.bat -Verbose -BootMedia
 

My Computer

System One

  • OS
    Windows 7
What are the differences between your .bat files as opposed to your .ps1 files? On my desktop the .ps1 files error but the .bat files work calling out Powershell. Just curious... My desktop has been already updated.

If you left click your .ps1 file and put a check in the "Unblock" box then click; Apply - OK to close the dialog box, you can forever run "that one individual" scrip by just typing the file name into PowerShell like this.

.\Check_UEFI-CA2023.ps1


Example:

Code:
PowerShell 7.6.0
PS C:\Users\nelson\Desktop> .\Check_UEFI-CA2023.ps1
Secure Boot: ON
Virtualization Based Security: ON
BitLocker on (C:) OFF

UEFI KEK Certs
--------------
    Microsoft Corporation KEK CA 2011
    Microsoft Corporation KEK 2K CA 2023

I do not know how to reverse this action to lock it back down, but all these came from Garlin and I trust him exclusively.

Screenshot 2026-03-25 123058.webp
 

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.
What you're seeing is the Execution Policy in effect. There are different levels of trust, and your current policy doesn't allow unsigned scripts.

I can't provide a signed script because of two reasons:
1. Not a professional dev, and signer certs from a trusted Certificate Authority are not cheap (it's designed that way to prevent casual hacking). Other folks who are devs do enough work to justify the cert's cost. Doing this for free.

2. While I could make my own self-signed cert and sign my scripts, you would have to import the cert into your Windows. That doesn't make the process any easier.

For the security conscious, the script is not obfuscated and all the Secure Boot files are accessed from Windows itself or the MS Secure Boot GitHub.

When you run the batch script, it does the same "powershell -ExecutionPolicy Bypass" or -ep bypass, on the command line.
Code:
@echo off
where pwsh >nul 2>nul
if %errorlevel% equ 0 (
   pwsh -nop -ep bypass -noexit -f "%~dp0\Check_UEFI-CA2023.ps1" %*
) else (
   powershell -nop -ep bypass -noexit -f "%~dp0\Check_UEFI-CA2023.ps1" %*
)

You can pass the batch file the same arguments, as the PS script.
Code:
Check-UEFI.bat -Verbose -BootMedia
Thank you!
 

My Computer

System One

  • OS
    win 11
    Computer type
    Laptop
    Manufacturer/Model
    Dell Precision M4800
    CPU
    Intell Core i7 4900 MQ
    Motherboard
    Dell QT3YTY A00
    Memory
    DDR3 16 GB
CA 2023 certs are added, but PCA 2011 has not been revoked.

Users have to decide whether they prefer to keep PS's security policy in place, or make it easier to run PS scripts again in the future. I run scripts all the time, so my Execution Policy is less secure. If you rather not change it, then use the longer command line, which overrides the policy for just one command.

The results will be exactly the same.

Secure Boot does not have to be disabled in your case.. It's only recommended to disable Secure Boot if you don't have a supported PC, and need to replace all the certs in Setup Mode. That's just in case the UEFI reset doesn't work correctly.

CA 2023 certs are added, but PCA 2011 has not been revoked.

Users have to decide whether they prefer to keep PS's security policy in place, or make it easier to run PS scripts again in the future. I run scripts all the time, so my Execution Policy is less secure. If you rather not change it, then use the longer command line, which overrides the policy for just one command.

The results will be exactly the same.

Secure Boot does not have to be disabled in your case.. It's only recommended to disable Secure Boot if you don't have a supported PC, and need to replace all the certs in Setup Mode. That's just in case the UEFI reset doesn't work correctly.
I ran the two commands
CA 2023 certs are added, but PCA 2011 has not been revoked.

Users have to decide whether they prefer to keep PS's security policy in place, or make it easier to run PS scripts again in the future. I run scripts all the time, so my Execution Policy is less secure. If you rather not change it, then use the longer command line, which overrides the policy for just one command.

The results will be exactly the same.

Secure Boot does not have to be disabled in your case.. It's only recommended to disable Secure Boot if you don't have a supported PC, and need to replace all the certs in Setup Mode. That's just in case the UEFI reset doesn't work correctly.

CA 2023 certs are added, but PCA 2011 has not been revoked.

Users have to decide whether they prefer to keep PS's security policy in place, or make it easier to run PS scripts again in the future. I run scripts all the time, so my Execution Policy is less secure. If you rather not change it, then use the longer command line, which overrides the policy for just one command.

The results will be exactly the same.

Secure Boot does not have to be disabled in your case.. It's only recommended to disable Secure Boot if you don't have a supported PC, and need to replace all the certs in Setup Mode. That's just in case the UEFI reset doesn't work correctly.
I ran the two commands the "reg" one said it was added
the powershell one didn't do anything,, did the override PS command then ran Check_UEFI-CA2023.ps1 same results as the first time still need to revoke 2011 key
 

My Computer

System One

  • OS
    windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    Antec/Case
    CPU
    Intel i5-10600kf
    Motherboard
    GIGABYTE Z590 UD AC
    Memory
    32gb corsair vengerance pro
    Graphics Card(s)
    AMD RX 6500XT
    Sound Card
    onboard
    Monitor(s) Displays
    40" Hisense
    Hard Drives
    Samsung 850
    Samsung 870
    Seagate 2TB
    PSU
    EVGA GQ 750
Back
Top Bottom