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


who are you replying to... ?

I was thinking of what Copilot told me about it. I'm not about to consign perfectly good decade old hardware to e waste landfill.
 

My Computers

System One System Two

  • OS
    Windows 11 Education For 25H2
    Computer type
    Laptop
    Manufacturer/Model
    HP ZBook G2
    CPU
    Intel® Core i7 5500u
    Motherboard
    HP
    Memory
    8 GB
    Graphics Card(s)
    Intel HD Family Graphics 5500 AMD Firepro 4150M
    Sound Card
    Realtek High Audio
    Hard Drives
    1 TB SSD
    Mouse
    HP USB Mouse
    Antivirus
    Windows Defender
  • Operating System
    Windows 11 Pro For Workstations 25H2
    Computer type
    Laptop
    Manufacturer/Model
    HP Zbook G4
    CPU
    Xeon 1535m v6
    Motherboard
    HP
    Memory
    32 GB
    Graphics card(s)
    AMD Quadro Pro 4100
    Sound Card
    Bang and Olufson Audio
    Hard Drives
    1TB SSD
    Mouse
    HP USB Mouse
    Antivirus
    Windows Defender
And it looks like they documented it here: Sample Secure Boot E2E Automation Guide
@garlin, an opinion on those scrips...?
Correct. MS provided a set of reference scripts for IT admins who have to manage large pools of PC's. The scripts mostly collect telemetry data, and can push changes using the Secure Boot task. It's a layer upon another layer, on top of the Secure Boot task.

None of this is particularly useful to the home user. Frankly a waste of time. IT admins should pick an example PC and try forcing an update. Once they've confirmed it worked, then they should have a script to find every exact model of this same PC and apply the AvailableUpdates settings. Done. You don't need so many scripts for this one-time project...
 

My Computer

System One

  • OS
    Windows 7
I took a look at the scripts and the documentation
I'm no Powershell expert, but they seem to be designed for domain joined computers
No idea why we're seing these scrips on standalone computers

Side note, @garlin, May updates/patches have not updated Secure Boot on either my SP9 or Dell Inspiron 3910
Pretty sure it's related to the fact that on those 2 computers telemetry is completly disabled
Whether you're allowing telemetry, has no bearing on Windows automatically pushing the update.

Let's imagine you're MS. You completely understand the update process, and have talked to the vendors. The big unknown is all the weird possible permutations of motherboards and BIOS versions. Maybe if you installed a later BIOS for this PC, it would naturally have the CA 2023 certs. But the older version of the BIOS doesn't support an easy upgrade. Say you know some older PC's have a really crappy BIOS that was commonly licensed to PC makers. Later on, everyone switched to a much better BIOS.

There's no way in a short, compressed schedule to test every combination out there. You could decide YOLO ("You Only Live Once") and just try your luck. Maybe the update will work, other times it will fail. Failure is unlikely to leave you with a broken PC, if you don't switch boot managers or ban PCA 2011 until all the CA 2023 certs are safely installed.

Sounds reasonable. But large companies are famously no fun. Who's going to be the first guinea pig?

Well, if MS captures their data (through Secure Boot task creating noisy TPM-WMI events, and voluntarily sending this data), they can get an idea of how the process worked. But that's only a small fraction of possible PC's out there. A few large companies will be YOLO'ing as brave pioneers. But if nobody else is helping out, by either delaying updates to the last possible moment or not sharing telemetry, MS is running blind.

They could force the CA 2023 update process on everyone, and risk a sea of angry customers complaining that TPM-WMI event errors are popping up.

Because nobody's co-operating at a grand scale (or just hesitant), your PC doesn't get the green light to YOLO. This PC might have easily done the upgrade with no problem, or it end up as supported. You hiding your telemetry data from MS isn't going to move the needle. Because they need to collect a lot of data samples before green lighting your PC model.

Instead it says at "More Data Needed" forever. Maybe one day you get moved to "High Confidence" bucket. Or not... The reality is MS has blocked a lot of PC's because they're unsure what will happen. What would be devious is to randomly pick some "More Data Needed" PC's and secretly run the update, just to collect feedback data. Eventually MS will be forced into this position, but for now they're trying not to annoy the big companies.

I have seen some of the Confidence data as presented inside the CAB files, and what they published on GitHub. The data is hot garbage of badly parsed HW details. And that doesn't include the MS internal secret data, how many PC's out there are classified into which unique BucketID, and how many of those PC's succeeded. MS will never share the secret data used for decision making. So you're patiently waiting as an outsider for the day your PC gets moved to "High Confidence".

Don't believe the stupid E2E hype. Just test a stupid PC, and see if it worked. If you several of the exact same PC models, then force an update across all of them. Keep going model by model, until you run out of models. Does this sound terrible for an IT admin working at a large company? I hope your manager will give you additional resources.

The real deadline isn't so much the Oct 2026 date. It's the threat that a serious new boot manager bug is found after October, and it must be replaced immediately. And you're not done with the migration process in order to use the fixed boot file to close the security hole. Because if you don't have CA 2023 certs installed, and CA 2011 locked out, then your PC can be exposed to a very real problem in magnitude of Black Lotus.
 

My Computer

System One

  • OS
    Windows 7
Change date
Change description

May 12, 2026

Previously, each sample script file was published as individual articles from which you would copy-and-paste the script. Starting with the Windows updates released on and after May 12, 2026, the sample scripts are located in the %systemroot%\SecureBoot\ExampleRolloutScripts folder on your device.


There’s 15 pages of documentation. I believe this is for enterprise purposes? The change log leads me to believe MS is making it easier to access the files. I assume nothing further is needed to be done. But I’ll wait for Garlin to chime in on this as I am not a secure boot expert.
For enterprise admins. As a former admin in an enterprise, I wouldn't use these scripts. Unless you're desperate because you don't understand Secure Boot in general or your team is bad at coding scripts. Real admins using InTune have already published other solutions of various levels of effectiveness. InTune and other management solutions allow you to run scripts across a range of systems, collect data and execute actions based on collected data.

But not every everyone can afford InTune or a managed solution.

None of these scripts do any low-level work. They're all layers of wrappers on top of collecting Event logs and running the Secure Boot task. I reviewed the scripts two months ago to see if there was any exciting hidden in the details. Nope, didn't learn anything I needed for applying updates.
 

My Computer

System One

  • OS
    Windows 7
Whether you're allowing telemetry, has no bearing on Windows automatically pushing the update.

Let's imagine you're MS. You completely understand the update process, and have talked to the vendors. The big unknown is all the weird possible permutations of motherboards and BIOS versions. Maybe if you installed a later BIOS for this PC, it would naturally have the CA 2023 certs. But the older version of the BIOS doesn't support an easy upgrade. Say you know some older PC's have a really crappy BIOS that was commonly licensed to PC makers. Later on, everyone switched to a much better BIOS.

There's no way in a short, compressed schedule to test every combination out there. You could decide YOLO ("You Only Live Once") and just try your luck. Maybe the update will work, other times it will fail. Failure is unlikely to leave you with a broken PC, if you don't switch boot managers or ban PCA 2011 until all the CA 2023 certs are safely installed.

Sounds reasonable. But large companies are famously no fun. Who's going to be the first guinea pig?

Well, if MS captures their data (through Secure Boot task creating noisy TPM-WMI events, and voluntarily sending this data), they can get an idea of how the process worked. But that's only a small fraction of possible PC's out there. A few large companies will be YOLO'ing as brave pioneers. But if nobody else is helping out, by either delaying updates to the last possible moment or not sharing telemetry, MS is running blind.

They could force the CA 2023 update process on everyone, and risk a sea of angry customers complaining that TPM-WMI event errors are popping up.

Because nobody's co-operating at a grand scale (or just hesitant), your PC doesn't get the green light to YOLO. This PC might have easily done the upgrade with no problem, or it end up as supported. You hiding your telemetry data from MS isn't going to move the needle. Because they need to collect a lot of data samples before green lighting your PC model.

Instead it says at "More Data Needed" forever. Maybe one day you get moved to "High Confidence" bucket. Or not... The reality is MS has blocked a lot of PC's because they're unsure what will happen. What would be devious is to randomly pick some "More Data Needed" PC's and secretly run the update, just to collect feedback data. Eventually MS will be forced into this position, but for now they're trying not to annoy the big companies.

I have seen some of the Confidence data as presented inside the CAB files, and what they published on GitHub. The data is hot garbage of badly parsed HW details. And that doesn't include the MS internal secret data, how many PC's out there are classified into which unique BucketID, and how many of those PC's succeeded. MS will never share the secret data used for decision making. So you're patiently waiting as an outsider for the day your PC gets moved to "High Confidence".

Don't believe the stupid E2E hype. Just test a stupid PC, and see if it worked. If you several of the exact same PC models, then force an update across all of them. Keep going model by model, until you run out of models. Does this sound terrible for an IT admin working at a large company? I hope your manager will give you additional resources.

The real deadline isn't so much the Oct 2026 date. It's the threat that a serious new boot manager bug is found after October, and it must be replaced immediately. And you're not done with the migration process in order to use the fixed boot file to close the security hole. Because if you don't have CA 2023 certs installed, and CA 2011 locked out, then your PC can be exposed to a very real problem in magnitude of Black Lotus.
Make sense
Once again, a detailed answer like we've gotten accustomed from you!
Thanks for taking time to explain!
 

My Computer

System One

  • OS
    Windows 11
After update build 262000.8457 I checked the Register and below is an overview regarding SecureBoot confidence device targeting data before en after: Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecureBoot\Servicing
before:
ConfidenceLevel - Under Observation-More Data Needed
ConfideceUpdateType -(0)

After update build 262000.8457:
ConfidenceLevel - High Confidence
ConfideceUpdateType -(22852)
May 2026's Monthly Update pushed a new set of High Confidence markers to every PC. So MS moved your PC model from blocked ("More Data Needed") to unblocked ("High Confidence"). The Secure Boot task happily updated your PC without any outside help.

Fortunate for you. But other PC's may still be stuck in the "More Data Needed" bucket for now.

The point of my scripts is to safely try an update now, instead of having to wait for MS to collect telemetry data before making a decision on your PC.
 

My Computer

System One

  • OS
    Windows 7
UEFI DBX Certs
--------------
(NONE)
Windows BootMgr SVN is MISSING.

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

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

[OPTIONAL] SkuSiPolicy.p7b (for VBS) is MISSING.
NOT RECOMMENDED for dual-boot setups.
[/C]

I will likely be back, I'm a Macrium user, using the older V8.1 and I see lots of posts in this thread related to Macrium boot media. I need to upgrade Macrium, create new boot media and test.
This PC has the CA 2023 certs installed, but is still running the old boot manager (hasn't switched). Revocation is still optional for now.

Run these commands to get the CA 2023 boot manager:
Code:
reg add HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Secureboot /v AvailableUpdates /t REG_DWORD /d 0x100 /f
powershell Start-ScheduledTask -TaskName "\Microsoft\Windows\PI\Secure-Boot-Update"
 

My Computer

System One

  • OS
    Windows 7
Not really needed. The documented advice from OEMs and Microsoft is to keep secure boot turned on. If your OEM isn't going to patch your BIOS, all that will happen is you won't receive new secure boot level protections in the future.

Live with the secure boot certificate installed with your last BIOS update.
You know, some people on this forum are interested in following a supported (in the sense of "by the book") solution to adding CA 2023 certs. And if you haven't followed this thread, an impressive number of users have successfully got their Secure Boot certs into compliance.

The methods here are in complete compliance with MS's instructions to the OEM vendors. And all applied certs, and files are directly from MS sources (Windows itself, or the official MS GitHub). You get updates using 100% MS parts.

Only a handful of really crusted PC's have failed to update, but those are probably unsalvageable due to their outdated BIOS'es.
 

My Computer

System One

  • OS
    Windows 7
You know, some people on this forum are interested in following a supported (in the sense of "by the book") solution to adding CA 2023 certs. And if you haven't followed this thread, an impressive number of users have successfully got their Secure Boot certs into compliance.

The methods here are in complete compliance with MS's instructions to the OEM vendors. And all applied certs, and files are directly from MS sources (Windows itself, or the official MS GitHub). You get updates using 100% MS parts.

Only a handful of really crusted PC's have failed to update, but those are probably unsalvageable due to their outdated BIOS'es.

I ran your script and it worked. I didn't have to wait for HP to provide a manual utility. I have left the default 2011 secure boot certificates in place without need for a BIOS update on both my desktop replacement and Ultrabook workstations. The check UEFI script shows the 2023 boot certificates are allowed. I agree legacy BIOSEs can't be written to but modern UEFI can be updated.
 

My Computers

System One System Two

  • OS
    Windows 11 Education For 25H2
    Computer type
    Laptop
    Manufacturer/Model
    HP ZBook G2
    CPU
    Intel® Core i7 5500u
    Motherboard
    HP
    Memory
    8 GB
    Graphics Card(s)
    Intel HD Family Graphics 5500 AMD Firepro 4150M
    Sound Card
    Realtek High Audio
    Hard Drives
    1 TB SSD
    Mouse
    HP USB Mouse
    Antivirus
    Windows Defender
  • Operating System
    Windows 11 Pro For Workstations 25H2
    Computer type
    Laptop
    Manufacturer/Model
    HP Zbook G4
    CPU
    Xeon 1535m v6
    Motherboard
    HP
    Memory
    32 GB
    Graphics card(s)
    AMD Quadro Pro 4100
    Sound Card
    Bang and Olufson Audio
    Hard Drives
    1TB SSD
    Mouse
    HP USB Mouse
    Antivirus
    Windows Defender
I have three laptops that don’t get switched on very often and haven’t had the Kek update yet - despite turning them on and updating - so I think I might need to use your scripts on those.
 

My Computers

System One System Two

  • OS
    Windows 11 Home 25H2
    Computer type
    Laptop
    Manufacturer/Model
    HP Pavilion 14-ce3606sa
    CPU
    Core i5-1035G1
    Memory
    32gb
    Hard Drives
    Samsung 870 evo sata ssd
    Cooling
    Could be better
    Internet Speed
    50 mbps Starlink
    Browser
    Firefox
    Other Info
    Originally came installed with a 500gb H10 Optane ssd
  • Operating System
    Windows 11 Home
    Computer type
    Laptop
    Manufacturer/Model
    HP Pavilion ce3606sa
    CPU
    Intel Core i5-1035G1
    Memory
    16gb
    Hard Drives
    Hynix Gold P31 2TB
    Internet Speed
    200mbps Starlink
    Browser
    Firefox
    Antivirus
    Defender
The worse thing that happens is the update script stops from a failed UEFI write. There's no harm done, but at that point we can decide how much work you want to do next because each PC might be differently supported. Some may be easier than others.

But there's still time to pace yourself, like to update one PC at time. Oct 2026 isn't here yet.
 

My Computer

System One

  • OS
    Windows 7
The Lenovo 11e says “Secure Boot is on but your device is using an older boot trust configuration that should be updated. There is not yet enough data to classify your device for automatic update.” What does that last bit mean? Not enough data. And does that mean it won’t get the Windows update? It also says visit the link for further info. The link just takes me to the page about certificate expiration.
 

My Computers

System One System Two

  • OS
    Windows 11 Home 25H2
    Computer type
    Laptop
    Manufacturer/Model
    HP Pavilion 14-ce3606sa
    CPU
    Core i5-1035G1
    Memory
    32gb
    Hard Drives
    Samsung 870 evo sata ssd
    Cooling
    Could be better
    Internet Speed
    50 mbps Starlink
    Browser
    Firefox
    Other Info
    Originally came installed with a 500gb H10 Optane ssd
  • Operating System
    Windows 11 Home
    Computer type
    Laptop
    Manufacturer/Model
    HP Pavilion ce3606sa
    CPU
    Intel Core i5-1035G1
    Memory
    16gb
    Hard Drives
    Hynix Gold P31 2TB
    Internet Speed
    200mbps Starlink
    Browser
    Firefox
    Antivirus
    Defender
The worse thing that happens is the update script stops from a failed UEFI write. There's no harm done, but at that point we can decide how much work you want to do next because each PC might be differently supported. Some may be easier than others.

But there's still time to pace yourself, like to update one PC at time. Oct 2026 isn't here yet.
True but doesn’t the kek need doing by June?
 

My Computers

System One System Two

  • OS
    Windows 11 Home 25H2
    Computer type
    Laptop
    Manufacturer/Model
    HP Pavilion 14-ce3606sa
    CPU
    Core i5-1035G1
    Memory
    32gb
    Hard Drives
    Samsung 870 evo sata ssd
    Cooling
    Could be better
    Internet Speed
    50 mbps Starlink
    Browser
    Firefox
    Other Info
    Originally came installed with a 500gb H10 Optane ssd
  • Operating System
    Windows 11 Home
    Computer type
    Laptop
    Manufacturer/Model
    HP Pavilion ce3606sa
    CPU
    Intel Core i5-1035G1
    Memory
    16gb
    Hard Drives
    Hynix Gold P31 2TB
    Internet Speed
    200mbps Starlink
    Browser
    Firefox
    Antivirus
    Defender
If you have it updated, the issue is resolved. You can still boot after the old certificates have expired but you won't get new fixes and updates.
 

My Computers

System One System Two

  • OS
    Windows 11 Education For 25H2
    Computer type
    Laptop
    Manufacturer/Model
    HP ZBook G2
    CPU
    Intel® Core i7 5500u
    Motherboard
    HP
    Memory
    8 GB
    Graphics Card(s)
    Intel HD Family Graphics 5500 AMD Firepro 4150M
    Sound Card
    Realtek High Audio
    Hard Drives
    1 TB SSD
    Mouse
    HP USB Mouse
    Antivirus
    Windows Defender
  • Operating System
    Windows 11 Pro For Workstations 25H2
    Computer type
    Laptop
    Manufacturer/Model
    HP Zbook G4
    CPU
    Xeon 1535m v6
    Motherboard
    HP
    Memory
    32 GB
    Graphics card(s)
    AMD Quadro Pro 4100
    Sound Card
    Bang and Olufson Audio
    Hard Drives
    1TB SSD
    Mouse
    HP USB Mouse
    Antivirus
    Windows Defender
Ok so one of them now seems to have the secure boot certificates. Didn’t see any specific kek update so it must have been bundled with one of the latest updates. (The HP not the Lenovo).
 

My Computers

System One System Two

  • OS
    Windows 11 Home 25H2
    Computer type
    Laptop
    Manufacturer/Model
    HP Pavilion 14-ce3606sa
    CPU
    Core i5-1035G1
    Memory
    32gb
    Hard Drives
    Samsung 870 evo sata ssd
    Cooling
    Could be better
    Internet Speed
    50 mbps Starlink
    Browser
    Firefox
    Other Info
    Originally came installed with a 500gb H10 Optane ssd
  • Operating System
    Windows 11 Home
    Computer type
    Laptop
    Manufacturer/Model
    HP Pavilion ce3606sa
    CPU
    Intel Core i5-1035G1
    Memory
    16gb
    Hard Drives
    Hynix Gold P31 2TB
    Internet Speed
    200mbps Starlink
    Browser
    Firefox
    Antivirus
    Defender
We'll wait forever for HP to release its manual utility.
 

My Computers

System One System Two

  • OS
    Windows 11 Education For 25H2
    Computer type
    Laptop
    Manufacturer/Model
    HP ZBook G2
    CPU
    Intel® Core i7 5500u
    Motherboard
    HP
    Memory
    8 GB
    Graphics Card(s)
    Intel HD Family Graphics 5500 AMD Firepro 4150M
    Sound Card
    Realtek High Audio
    Hard Drives
    1 TB SSD
    Mouse
    HP USB Mouse
    Antivirus
    Windows Defender
  • Operating System
    Windows 11 Pro For Workstations 25H2
    Computer type
    Laptop
    Manufacturer/Model
    HP Zbook G4
    CPU
    Xeon 1535m v6
    Motherboard
    HP
    Memory
    32 GB
    Graphics card(s)
    AMD Quadro Pro 4100
    Sound Card
    Bang and Olufson Audio
    Hard Drives
    1TB SSD
    Mouse
    HP USB Mouse
    Antivirus
    Windows Defender
True but doesn’t the kek need doing by June?
MS is running a dual strategy of releasing any boot manager security fixes (for now) in parallel with both CA 2011 and CA 2023 versions. April 2026 was the last time the boot file was replaced. It's offered in both signing flavors.

When KEK CA 2011 expires in June, it has no effect on Windows on a whole. The technical answer is KEK CA 2011 is used to validate the PCA 2011 cert (which the one signing your boot file). If a cert expires, things don't magically disable themselves.

It just means you can't re-use the cert to release newer versions of something. Since the KEK CA 2011 is only used to sign CA 2011 certs (and there are no new ones being created), there is no fallout. Your PC already enrolled the PCA 2011 cert, and this process only needed to be done once. An expired cert is still trusted as long as it was enrolled.

The analogy is you have a HW driver for something that's 8 years old. The cert's long been expired, but the driver installer asks your permission to add the manufacturer's cert. If you agree to yes, then you're entrusting an expired cert regardless of its date. You're agreeing to trust anything that enrolled signed, even if the date was far in the past. Now you can use the driver even though it's got an expired cert.

Same thing happens with KEK CA 2011, as long as you haven't banned PCA 2011. The process isn't like Cinderella's stagecoach which turns back into a pumpkin at the stroke of midnight.
 

My Computer

System One

  • OS
    Windows 7
MS is running a dual strategy of releasing any boot manager security fixes (for now) in parallel with both CA 2011 and CA 2023 versions. April 2026 was the last time the boot file was replaced. It's offered in both signing flavors.

When KEK CA 2011 expires in June, it has no effect on Windows on a whole. The technical answer is KEK CA 2011 is used to validate the PCA 2011 cert (which the one signing your boot file). If a cert expires, things don't magically disable themselves.

It just means you can't re-use the cert to release newer versions of something. Since the KEK CA 2011 is only used to sign CA 2011 certs (and there are no new ones being created), there is no fallout. Your PC already enrolled the PCA 2011 cert, and this process only needed to be done once. An expired cert is still trusted as long as it was enrolled.

The analogy is you have a HW driver for something that's 8 years old. The cert's long been expired, but the driver installer asks your permission to add the manufacturer's cert. If you agree to yes, then you're entrusting an expired cert regardless of its date. You're agreeing to trust anything that enrolled signed, even if the date was far in the past. Now you can use the driver even though it's got an expired cert.

Same thing happens with KEK CA 2011, as long as you haven't banned PCA 2011. The process isn't like Cinderella's stagecoach which turns back into a pumpkin at the stroke of midnight.
Thank you.
 

My Computers

System One System Two

  • OS
    Windows 11 Home 25H2
    Computer type
    Laptop
    Manufacturer/Model
    HP Pavilion 14-ce3606sa
    CPU
    Core i5-1035G1
    Memory
    32gb
    Hard Drives
    Samsung 870 evo sata ssd
    Cooling
    Could be better
    Internet Speed
    50 mbps Starlink
    Browser
    Firefox
    Other Info
    Originally came installed with a 500gb H10 Optane ssd
  • Operating System
    Windows 11 Home
    Computer type
    Laptop
    Manufacturer/Model
    HP Pavilion ce3606sa
    CPU
    Intel Core i5-1035G1
    Memory
    16gb
    Hard Drives
    Hynix Gold P31 2TB
    Internet Speed
    200mbps Starlink
    Browser
    Firefox
    Antivirus
    Defender
In post 1713 above - what exactly does it mean by not enough data to get automatic updates please?

Edit - ah that bit has gone now about not enough data - since the latest updates. So it's just waiting for the kek now.
 

My Computers

System One System Two

  • OS
    Windows 11 Home 25H2
    Computer type
    Laptop
    Manufacturer/Model
    HP Pavilion 14-ce3606sa
    CPU
    Core i5-1035G1
    Memory
    32gb
    Hard Drives
    Samsung 870 evo sata ssd
    Cooling
    Could be better
    Internet Speed
    50 mbps Starlink
    Browser
    Firefox
    Other Info
    Originally came installed with a 500gb H10 Optane ssd
  • Operating System
    Windows 11 Home
    Computer type
    Laptop
    Manufacturer/Model
    HP Pavilion ce3606sa
    CPU
    Intel Core i5-1035G1
    Memory
    16gb
    Hard Drives
    Hynix Gold P31 2TB
    Internet Speed
    200mbps Starlink
    Browser
    Firefox
    Antivirus
    Defender

Latest Support Threads

Back
Top Bottom