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

Latest Support Threads

Back
Top Bottom