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


@DarkShadowMD
Well, having my last thoughts on the issue, not my final verdict because I miss a lot of technical details, i think that Microsoft and the scripts and whatever mess with Secure Boot variables should do a sanity check, a simple check to see if the keys/certs that is going to write at a specific space can fit or not.

It sounds simple, but I really don't know if it's feasible and if MS or a third party developer can do it or not.

Because I think in my case the powershell script tried to write a Secure Boot variable in a specific space with less capacity than the size of the variable and the result was a corrupted file (because obviously the file was written up to the point where the space provided for the specific variable was filled, not the whole file obviously).
This check is to prevent the failure before starting to write the file.

Another option would be an integrity test afterwards to check after the update if the whole file was written properly and if it didn't, it could cancel the whole procedure and revert back to the original values.

Just some thoughts regarding the issue - as a safety net that I posted above - to prevent future bricks, a developer like Garlin or MS could think and implement better ones.

Now regarding the MS vs Garlin scripts implementation and execution of Secure Boot variable updates, I really can't judge because I don't know if MS does any check before or after writing the update in order to avoid such failures.

As a last thought, I think my case was useful at least to remind or inform users of this thread that these scripts are messing with a part of the BIOS chip that if anything goes wrong and the NVRAM becomes corrupted, there is no software BIOS recovery solution, no clear CMOS settings, no jumper than can save you.

The PC is bricked and you have to seek for a costly hardware reprogramming of the BIOS chip.

And I don't know if MS is doing it differently, as I said before.
 

My Computer My Computer

At a glance

Windows 11 Pro 25H2
OS
Windows 11 Pro 25H2
So let me understand this. you upgraded using garlins scripts or not ? and now the pc will not boot up at all
 

My Computer My Computer

At a glance

WINDOWS 11 WINDOWS 10Intel(R) Core(TM) i7 -3770K CPU 3.50 GZ 3501 ...32.0 GB (31.9 GB usable)AMD RADEON TM R5240 INTELL HD GRAPHICS 4600 T...
OS
WINDOWS 11 WINDOWS 10
Computer type
PC/Desktop
Manufacturer/Model
HP H8 1360T
CPU
Intel(R) Core(TM) i7 -3770K CPU 3.50 GZ 3501 4 CORE
Motherboard
PEGATRON 2AD5
Memory
32.0 GB (31.9 GB usable)
Graphics Card(s)
AMD RADEON TM R5240 INTELL HD GRAPHICS 4600 TIGER 1+1 USB
Sound Card
AMD HD . IDT
Monitor(s) Displays
AOC WAL MART SPECIAL . HP 2311 IX IPS LED DELL 1708 FP
Screen Resolution
1920 X 1080 1600X900 1280X940
Hard Drives
1 FAXING S 100 512GB 1 KINGSTON 120 GB SSD 1 X12 SSD 512 GB
PSU
300 WATT HP
Case
FULL
Cooling
ON BOARD FAN
Keyboard
LOGITEC K 520 WIRELESS
Mouse
LOGITEC M 510 WIRELESS
Internet Speed
55 UP 11.2 DOWN
Browser
CHROME EDGE
Antivirus
WINDOWS SECUIRTY
Other Info
NON SUPPORTED HARDWARE FOR WINDOWS 11
That's actually why MS collects telemetry data (high confidence/more data needed) and is constantly postponing cert push/revocation dates. Instead of MS or garlin, you should be fighting Acer, who designed their BIOS and NVRAM with no fallback mechanism which is stupid tbh.
 

My Computer My Computer

At a glance

Windows 11 25H2 Build 26200Intel i7-11800HCrucial 64GB DDR4 3200M/TNvidia Geforce RTX 3050Ti (Laptop) 4GB
OS
Windows 11 25H2 Build 26200
Computer type
Laptop
Manufacturer/Model
Monster
CPU
Intel i7-11800H
Memory
Crucial 64GB DDR4 3200M/T
Graphics Card(s)
Nvidia Geforce RTX 3050Ti (Laptop) 4GB
Sound Card
Realtek ALC256
Screen Resolution
1080p
Internet Speed
1Gbit
Well, having my last thoughts on the issue, not my final verdict because I miss a lot of technical details, i think that Microsoft and the scripts and whatever mess with Secure Boot variables should do a sanity check, a simple check to see if the keys/certs that is going to write at a specific space can fit or not.

Garlin did mention this risk early in the thread and also mentioned there is no means of getting or guessing the size of the memory chip that manufacturer have installed on their motherboards.

As mentioned by Ozimen, it's your manufacturer you should be mad at, Lenovo in your case. I also took a gamble when updating my Lenovo L440 from 2013, I was lucky enough in that model Lenovo did not save pennies, most likely fraction of pennies, to add a few KB to the size of the memory chip that holds the NVRAM.

You also gambled, and unfortunately, yours seems it did not have enough KBs to hold the whole the data...

It sounds simple, but I really don't know if it's feasible and if MS or a third party developer can do it or not.

Having last thought on the issue, maybe you could reorient your career and become an engineer specialised in writing low level code in assembly or C++ that would be capable of determining the size of the memory chip that holds the NVRAM on the multiple manufacturers for computers over 10 years old and provide the service to the community freely like Garlin did with is script.
 
Last edited:

My Computer My Computer

At a glance

Windows 11
OS
Windows 11
I think that more than enough memory size, what this design lacks is a properly managed "invalid settings" state. Ending up in this state (properly recognized and managed by the firmware or not) doesn't need any settings change, OS loading or program run, it can happen if the CR2032 fails (I use good quality AA and AAA batteries but in a 12 units pack there always may be one or two that don't have voltage or lose it after little time connected, I mean defective batteries), it can also be that the user left the computer off for months or years.

Is appliable the post #2623 recovery method? Fragment below:

[...]By default, it will be placed in the standard operating position (Pins 1 and 2). Switch to recovery mode: Carefully remove the jumper and place it in the erase/recovery position (Pins 2 and 3). Ignition cycle: Only connect the power cable and turn on the equipment. The M700 Tiny will turn on automatically. It will have no video signal, but will begin to constantly emit a series of two short repetitive beeps (indicating that it has entered recovery mode and is purging NVRAM) [...]
 

My Computer My Computer

At a glance

Windows 11Celeron J4125 (10th gen)8GB DDR4
OS
Windows 11
Manufacturer/Model
MeLE Quieter 2Q (fanless miniPC)
CPU
Celeron J4125 (10th gen)
Memory
8GB DDR4
Monitor(s) Displays
Samsung SyncMaster T260
Screen Resolution
1920x1200
Hard Drives
256GB eMMC (Windows)
2TB USB3 HDD Toshiba (Data)
I think that more than enough memory size, what this design lacks is a properly managed "invalid settings" state. Ending up in this state (properly recognized and managed by the firmware or not) doesn't need any settings change, OS loading or program run, it can happen if the CR2032 fails (I use good quality AA and AAA batteries but in a 12 units pack there always may be one or two that don't have voltage or lose it after little time connected, I mean defective batteries), it can also be that the user left the computer off for months or years.

I agree with you, some manufacturers do plan for worst case scenario and have dual BIOS and recovery procedure that prevent this.
We all agree that it's very unfortunate for people that have computers that applying new certs and revocations can have undesirable results.

It's a gamble that each one of us most take on very old computers.

But this is becoming more of a manufacturing board design then a discussion on applying Secure Boot certificates.
Therefore, becoming off subject for this thread.

Let keep it at that, and return to the thread's subject...
 

My Computer My Computer

At a glance

Windows 11
OS
Windows 11
@anchamp65

OK, at least we can agree that updating Secure Boot variables using the script is a gamble, a bet, a salto mortale than if anything goes wrong you lose your PC.
That kind of gamble.

Fair bet, but I'm pretty sure that most of the users of the script don't know this little information b e f o r e using the script.

I have to say that there must be h u g e warnings before running the script especially on older machines, explaining the situation and the risks.

Garlin must put this kind of info in run-time, users must know exactly the risks they take prior of updating the certs.

TY
 

My Computer My Computer

At a glance

Windows 11 Pro 25H2
OS
Windows 11 Pro 25H2
@anchamp65

OK, at least we can agree that updating Secure Boot variables using the script is a gamble, a bet, a salto mortale than if anything goes wrong you lose your PC.
That kind of gamble.

Fair bet, but I'm pretty sure that most of the users of the script don't know this little information b e f o r e using the script.

I have to say that there must be h u g e warnings before running the script especially on older machines, explaining the situation and the risks.

Garlin must put this kind of info in run-time, users must know exactly the risks they take prior of updating the certs.

TY
Normal people, none technical, will not even try this because they have no understanding of what this is talking about.
So it's safe to assume that people looking at this thread and using these scripts have a minimum of knowledge on computers.
Then, it's for each one to take the gamble on old computers., period. <-- with the info you provided, you clearly fall in this category
And if someone does not have a minimum of knowledge and still uses the scripts provided here, it's their fault if they mess up their computers.

Let's leave it at that and move on...
 
Last edited:

My Computer My Computer

At a glance

Windows 11
OS
Windows 11
I'm starting to believe that you don't pay attention to the replies given in this thread after posting my situation and my experience of using the scripts.

Users were trying to help me unbrick and save my PC by providing solutions referring to clear CMOS settings, even Garlin provided such kind of "solution" to the problem, the developer of the script.

Are you kidding me ?

How is this even possible, users with such real and deep understanding of the issue to post replies regarding CMOS settings ?
 

My Computer My Computer

At a glance

Windows 11 Pro 25H2
OS
Windows 11 Pro 25H2
How is this even possible, users with such real and deep understanding of the issue to post replies regarding CMOS settings ?
How is it even possible you're still beating this dead horse. You've already proclaimed it's impossible to recover your BIOS, exactly what more are you hoping to accomplish browbeating people that are providing a valuable service?

I've bricked a old ASUS machine just using the manufacturer's supplied BIOS update program with the proper BIOS supplied by ASUS. I've never mentioned it here before because it's really not something anyone here is going to change. In your case, according to you it's "impossible" to recover. In that situation, I'd say case closed! 🤔
 

My Computers My Computers

  • At a glance

    Win 11 Pro 25H2, Build 26200.8737Intel Core i5 1450064GB DDR4GeForce RTX 4060
    OS
    Win 11 Pro 25H2, Build 26200.8737
    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
  • At a glance

    Win 11 Pro 25H2, Build 26200.8655Intel Core i5 1440032GB DDR5Intel 700 Embedded GPU
    Operating System
    Win 11 Pro 25H2, Build 26200.8655
    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
  • Nimo N171 17" Laptop, (Intel i3-1215U, 16GB RAM, 2TB NVMe, Win11 Pro)
    Acemagic Vista Mini PC V1 (Intel N150, 16GB RAM, 1TB NVMe, Win11 Pro)
    HP ENVY h8-1540t, (24GB RAM, 2TB SSD, 2TB HDD, Win11 Pro)
I'm starting to believe that you don't pay attention to the replies given in this thread after posting my situation and my experience of using the scripts.

Users were trying to help me unbrick and save my PC by providing solutions referring to clear CMOS settings, even Garlin provided such kind of "solution" to the problem, the developer of the script.

Are you kidding me ?

How is this even possible, users with such real and deep understanding of the issue to post replies regarding CMOS settings ?

I'd suggest to move on and stop making it look like Garlin... or the rest of us have some blame in your situation.

You have been told to go and tell Lenovo in any case. I mean, MS is poor at handling things, but saving money on NVRAM because your design is poor is on them. Your frustration is understandable, but you made a gamble and you lost sadly.

Don't think the rest didn't risk their butt, I had to update the BIOS in 3 systems, and even with a UPS is a risky operation, and I could have ended with one or two PC's bricked. MY older Acer could also get a worse case since it doesn't even have a BIOS update and MS just pushed an update as is...

Don't you think people here are geniuses that are supposed to guess how your system is supposed to look like. It's on Lenovo, go sue them and use the money to pay a tech to recover the NVRAM.

Blaming it on us won't solve your problem.
 

My Computers My Computers

  • At a glance

    Windows 11 Pro 25H2AMD Ryzen 5 5600G @ 3.9/4.4Ghz2 x 16 GB DDR4 Kingston Fury Beast 3200 MhzAMD Radeon RX 6600 XT MSI Mech 2X OC Edition ...
    OS
    Windows 11 Pro 25H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Built PC
    CPU
    AMD Ryzen 5 5600G @ 3.9/4.4Ghz
    Motherboard
    MSI B550M-PRO-WiFi Ver. 1.4
    Memory
    2 x 16 GB DDR4 Kingston Fury Beast 3200 Mhz
    Graphics Card(s)
    AMD Radeon RX 6600 XT MSI Mech 2X OC Edition 8 GB
    Sound Card
    Realtek High Definition Audio (Integrated)
    Monitor(s) Displays
    Samsung C50Rx 27" LED / HP S2031 20" LCD
    Screen Resolution
    1920 x 1080 px / 1600 x 900 px
    Hard Drives
    WD Blue SN570 NVME M.2 SSD [1 TB] -- External Drives: - WD Scorpion Blue 250 GB 5400 RPM (Data Backup) - Hitachi 500 GB 5400 RPM (Software / ISOs Backup) - Toshiba MQ01ABD100 1 TB 5400 RPM (OS Images) - HGST TravelStar 7K1000 1 TB, 7200 RPM USB 3.0 - ADATA SU800 2TB SSD USB 3.0
    PSU
    Corsair RM750e 750W Fully Modular
    Case
    Naceb Hydra NA-1602
    Cooling
    Naceb Orpheus x 3 (Front) + Naceb Cepheus 1200 RPM Max (Rear) + ThemalRight Assasin X 90 SE (CPU)
    Keyboard
    Logitech MK470 Wireless
    Mouse
    Logitech MK470 Wireless
    Internet Speed
    120 MB Symetrical
    Browser
    Firefox / Brave / Edge
    Antivirus
    Windows Defender
    Other Info
    - VMs: WMware Player - Windows 8.1 Pro x64 / Windows 11 Pro
    - Wacom Intuos Pro Small Tablet PTH-460
  • At a glance

    Windows 11 Pro 25H2AMD Ryzen 7 7730U @ 2.0/4.5 Ghz2 x 16 GB Kingston Fury Impact DDR4 3200 MhzRadeon (tm) Graphics Vega 8 (512 MB)
    Operating System
    Windows 11 Pro 25H2
    Computer type
    Laptop
    Manufacturer/Model
    HP Pavilion 15-eh3000la (80M53LA)
    CPU
    AMD Ryzen 7 7730U @ 2.0/4.5 Ghz
    Motherboard
    HP 8BC7
    Memory
    2 x 16 GB Kingston Fury Impact DDR4 3200 Mhz
    Graphics card(s)
    Radeon (tm) Graphics Vega 8 (512 MB)
    Sound Card
    Realtek High Definition Audio (Integrated)
    Monitor(s) Displays
    AU Optronics
    Screen Resolution
    1920 x 1080 px (125% size)
    Hard Drives
    WD Blue SN570 1TB NVME M.2 Drive
    PSU
    45 Watt Charger
    Cooling
    Laptop Cooling Pad
    Keyboard
    Free Wolf Foldable Portable Keyboard
    Mouse
    Free Wolf Wireless Mouse
    Internet Speed
    120 MB Symetrical
    Browser
    Firefox / Brave / Edge
    Antivirus
    Windows Defender
    Other Info
    - 41mWh battery.
    - Wacom Intuos Pro Small Tablet PTH-460

Latest Support Threads

Back
Top Bottom