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


wimpy.webp

I know it's an old stick from april I am testing with but the one I made with Macrium today was up to date
 

My Computer My Computer

At a glance

Win11 24H2 IOT LTSC / Win11 Pro 25H2AMD Ryzen 7 8700G / Ryzen 7 8700G / Ryzen 8600GF5-6000J3636F16GX2-FX5 32GB / Lexar Ares RGB ...internal
OS
Win11 24H2 IOT LTSC / Win11 Pro 25H2
Computer type
PC/Desktop
Manufacturer/Model
Gigabyte x2 / Asus = Home builds
CPU
AMD Ryzen 7 8700G / Ryzen 7 8700G / Ryzen 8600G
Motherboard
Gigabyte B650 AORUS ELITE AX V2 / ASUS TUF GAMING B650-PLUS / B650 GAMING X AX V2
Memory
F5-6000J3636F16GX2-FX5 32GB / Lexar Ares RGB LD5BU016G-R6000GDLA 32GB / Kingston FURY Beast 32 GB DDR5-5600
Graphics Card(s)
internal
Sound Card
Realtek
Monitor(s) Displays
BenQ 27 L EW2780
Screen Resolution
1920x1080
Hard Drives
Many M.2's (WD)
PSU
be quiet! Pure Power 13 M 550W
Case
Chieftec HC-10B-OP
Cooling
Gelid Solutions Tranquillo 5, many Noctua's 12x12
Keyboard
Microsoft
Mouse
Cherry
Internet Speed
500 mbs
Browser
Vivaldi
Antivirus
Eset
Other Info
PC builder / repair / Trouble-shooter etc.
No Pants worked fine last nite !
Le tme run find and run it again ....
 

My Computer My Computer

At a glance

Win11 24H2 IOT LTSC / Win11 Pro 25H2AMD Ryzen 7 8700G / Ryzen 7 8700G / Ryzen 8600GF5-6000J3636F16GX2-FX5 32GB / Lexar Ares RGB ...internal
OS
Win11 24H2 IOT LTSC / Win11 Pro 25H2
Computer type
PC/Desktop
Manufacturer/Model
Gigabyte x2 / Asus = Home builds
CPU
AMD Ryzen 7 8700G / Ryzen 7 8700G / Ryzen 8600G
Motherboard
Gigabyte B650 AORUS ELITE AX V2 / ASUS TUF GAMING B650-PLUS / B650 GAMING X AX V2
Memory
F5-6000J3636F16GX2-FX5 32GB / Lexar Ares RGB LD5BU016G-R6000GDLA 32GB / Kingston FURY Beast 32 GB DDR5-5600
Graphics Card(s)
internal
Sound Card
Realtek
Monitor(s) Displays
BenQ 27 L EW2780
Screen Resolution
1920x1080
Hard Drives
Many M.2's (WD)
PSU
be quiet! Pure Power 13 M 550W
Case
Chieftec HC-10B-OP
Cooling
Gelid Solutions Tranquillo 5, many Noctua's 12x12
Keyboard
Microsoft
Mouse
Cherry
Internet Speed
500 mbs
Browser
Vivaldi
Antivirus
Eset
Other Info
PC builder / repair / Trouble-shooter etc.
Copyright (C) Microsoft Corporation. All rights reserved.

PS C:\Users\jwdav> powershell -nop -ep bypass -f E:\Z_c2023\PANTS.ps1
F
PS C:\Users\jwdav>

Drive is spot-ON !
 

My Computer My Computer

At a glance

Win11 24H2 IOT LTSC / Win11 Pro 25H2AMD Ryzen 7 8700G / Ryzen 7 8700G / Ryzen 8600GF5-6000J3636F16GX2-FX5 32GB / Lexar Ares RGB ...internal
OS
Win11 24H2 IOT LTSC / Win11 Pro 25H2
Computer type
PC/Desktop
Manufacturer/Model
Gigabyte x2 / Asus = Home builds
CPU
AMD Ryzen 7 8700G / Ryzen 7 8700G / Ryzen 8600G
Motherboard
Gigabyte B650 AORUS ELITE AX V2 / ASUS TUF GAMING B650-PLUS / B650 GAMING X AX V2
Memory
F5-6000J3636F16GX2-FX5 32GB / Lexar Ares RGB LD5BU016G-R6000GDLA 32GB / Kingston FURY Beast 32 GB DDR5-5600
Graphics Card(s)
internal
Sound Card
Realtek
Monitor(s) Displays
BenQ 27 L EW2780
Screen Resolution
1920x1080
Hard Drives
Many M.2's (WD)
PSU
be quiet! Pure Power 13 M 550W
Case
Chieftec HC-10B-OP
Cooling
Gelid Solutions Tranquillo 5, many Noctua's 12x12
Keyboard
Microsoft
Mouse
Cherry
Internet Speed
500 mbs
Browser
Vivaldi
Antivirus
Eset
Other Info
PC builder / repair / Trouble-shooter etc.
oldminboot.webp
Old way script was no problem, yeah I know it's an older flashdrive
 

My Computer My Computer

At a glance

Win11 24H2 IOT LTSC / Win11 Pro 25H2AMD Ryzen 7 8700G / Ryzen 7 8700G / Ryzen 8600GF5-6000J3636F16GX2-FX5 32GB / Lexar Ares RGB ...internal
OS
Win11 24H2 IOT LTSC / Win11 Pro 25H2
Computer type
PC/Desktop
Manufacturer/Model
Gigabyte x2 / Asus = Home builds
CPU
AMD Ryzen 7 8700G / Ryzen 7 8700G / Ryzen 8600G
Motherboard
Gigabyte B650 AORUS ELITE AX V2 / ASUS TUF GAMING B650-PLUS / B650 GAMING X AX V2
Memory
F5-6000J3636F16GX2-FX5 32GB / Lexar Ares RGB LD5BU016G-R6000GDLA 32GB / Kingston FURY Beast 32 GB DDR5-5600
Graphics Card(s)
internal
Sound Card
Realtek
Monitor(s) Displays
BenQ 27 L EW2780
Screen Resolution
1920x1080
Hard Drives
Many M.2's (WD)
PSU
be quiet! Pure Power 13 M 550W
Case
Chieftec HC-10B-OP
Cooling
Gelid Solutions Tranquillo 5, many Noctua's 12x12
Keyboard
Microsoft
Mouse
Cherry
Internet Speed
500 mbs
Browser
Vivaldi
Antivirus
Eset
Other Info
PC builder / repair / Trouble-shooter etc.
But it's the same code... lol
 

Attachments

My Computer My Computer

At a glance

Windows 7
OS
Windows 7
Code:
UEFI DBX Certs
--------------
    Microsoft Windows Production PCA 2011
    Windows BootMgr SVN 9.0

EFI Files
---------
    SkuSiPolicy.p7b is CURRENT.
        \\.\HarddiskVolume1\EFI\Microsoft\Boot\SkuSiPolicy.p7b
        Version: 3.0.0.16

        FileRule             MinimumFileVersion MaximumFileVersion
        --------             ------------------ ------------------
        ID_FILEATTRIB_F_0042 0.0.0.0            10.0.14393.9309
        ID_FILEATTRIB_F_0044 10.0.14400.0       10.0.17763.8979
        ID_FILEATTRIB_F_0040 10.0.18000.0       10.0.19041.7519
        ID_FILEATTRIB_F_0049 10.0.19100.0       10.0.20348.5359
        ID_FILEATTRIB_F_0047 10.0.20400.0       10.0.22621.7349
        ID_FILEATTRIB_F_0041 10.0.23000.0       10.0.26100.8835
        ID_FILEATTRIB_F_0043 10.0.26100.32000   10.0.26100.33099
        ID_FILEATTRIB_F_0048 10.0.26172.0       10.0.26172.33099
        ID_FILEATTRIB_F_0046 10.0.27000.0       10.0.28000.2489
        ID_FILEATTRIB_F_0045 10.0.29426.0       65535.65535.65535.65535


Found |F|
Found ||
got a null!

PS C:\Users\jwdav>

Making progress I think ...
 

My Computer My Computer

At a glance

Win11 24H2 IOT LTSC / Win11 Pro 25H2AMD Ryzen 7 8700G / Ryzen 7 8700G / Ryzen 8600GF5-6000J3636F16GX2-FX5 32GB / Lexar Ares RGB ...internal
OS
Win11 24H2 IOT LTSC / Win11 Pro 25H2
Computer type
PC/Desktop
Manufacturer/Model
Gigabyte x2 / Asus = Home builds
CPU
AMD Ryzen 7 8700G / Ryzen 7 8700G / Ryzen 8600G
Motherboard
Gigabyte B650 AORUS ELITE AX V2 / ASUS TUF GAMING B650-PLUS / B650 GAMING X AX V2
Memory
F5-6000J3636F16GX2-FX5 32GB / Lexar Ares RGB LD5BU016G-R6000GDLA 32GB / Kingston FURY Beast 32 GB DDR5-5600
Graphics Card(s)
internal
Sound Card
Realtek
Monitor(s) Displays
BenQ 27 L EW2780
Screen Resolution
1920x1080
Hard Drives
Many M.2's (WD)
PSU
be quiet! Pure Power 13 M 550W
Case
Chieftec HC-10B-OP
Cooling
Gelid Solutions Tranquillo 5, many Noctua's 12x12
Keyboard
Microsoft
Mouse
Cherry
Internet Speed
500 mbs
Browser
Vivaldi
Antivirus
Eset
Other Info
PC builder / repair / Trouble-shooter etc.
"Hush, little baby, don't say a word, Mama's gonna buy you a mockingbird." :D
 

My Computer My Computer

At a glance

Win11 24H2 IOT LTSC / Win11 Pro 25H2AMD Ryzen 7 8700G / Ryzen 7 8700G / Ryzen 8600GF5-6000J3636F16GX2-FX5 32GB / Lexar Ares RGB ...internal
OS
Win11 24H2 IOT LTSC / Win11 Pro 25H2
Computer type
PC/Desktop
Manufacturer/Model
Gigabyte x2 / Asus = Home builds
CPU
AMD Ryzen 7 8700G / Ryzen 7 8700G / Ryzen 8600G
Motherboard
Gigabyte B650 AORUS ELITE AX V2 / ASUS TUF GAMING B650-PLUS / B650 GAMING X AX V2
Memory
F5-6000J3636F16GX2-FX5 32GB / Lexar Ares RGB LD5BU016G-R6000GDLA 32GB / Kingston FURY Beast 32 GB DDR5-5600
Graphics Card(s)
internal
Sound Card
Realtek
Monitor(s) Displays
BenQ 27 L EW2780
Screen Resolution
1920x1080
Hard Drives
Many M.2's (WD)
PSU
be quiet! Pure Power 13 M 550W
Case
Chieftec HC-10B-OP
Cooling
Gelid Solutions Tranquillo 5, many Noctua's 12x12
Keyboard
Microsoft
Mouse
Cherry
Internet Speed
500 mbs
Browser
Vivaldi
Antivirus
Eset
Other Info
PC builder / repair / Trouble-shooter etc.
We're back to Get-Volume being broken...
 

Attachments

My Computer My Computer

At a glance

Windows 7
OS
Windows 7
"Hush, little baby, don't say a word, Mama's gonna buy you a mockingbird." :D
I didn't write that, it's art of Matt Graeber's ConvertTo-CIPolicy.ps1 function.

Which I stripped down from 3309 lines to a bare bones 784. Had to leave his comments in place.
 

My Computer My Computer

At a glance

Windows 7
OS
Windows 7
Code:
EFI Files
---------
    SkuSiPolicy.p7b is CURRENT.
        \\.\HarddiskVolume1\EFI\Microsoft\Boot\SkuSiPolicy.p7b
        Version: 3.0.0.16

        FileRule             MinimumFileVersion MaximumFileVersion
        --------             ------------------ ------------------
        ID_FILEATTRIB_F_0042 0.0.0.0            10.0.14393.9309
        ID_FILEATTRIB_F_0044 10.0.14400.0       10.0.17763.8979
        ID_FILEATTRIB_F_0040 10.0.18000.0       10.0.19041.7519
        ID_FILEATTRIB_F_0049 10.0.19100.0       10.0.20348.5359
        ID_FILEATTRIB_F_0047 10.0.20400.0       10.0.22621.7349
        ID_FILEATTRIB_F_0041 10.0.23000.0       10.0.26100.8835
        ID_FILEATTRIB_F_0043 10.0.26100.32000   10.0.26100.33099
        ID_FILEATTRIB_F_0048 10.0.26172.0       10.0.26172.33099
        ID_FILEATTRIB_F_0046 10.0.27000.0       10.0.28000.2489
        ID_FILEATTRIB_F_0045 10.0.29426.0       65535.65535.65535.65535


Found |F|
Found ||
got a null!

PS C:\Users\jwdav>
 

My Computer My Computer

At a glance

Win11 24H2 IOT LTSC / Win11 Pro 25H2AMD Ryzen 7 8700G / Ryzen 7 8700G / Ryzen 8600GF5-6000J3636F16GX2-FX5 32GB / Lexar Ares RGB ...internal
OS
Win11 24H2 IOT LTSC / Win11 Pro 25H2
Computer type
PC/Desktop
Manufacturer/Model
Gigabyte x2 / Asus = Home builds
CPU
AMD Ryzen 7 8700G / Ryzen 7 8700G / Ryzen 8600G
Motherboard
Gigabyte B650 AORUS ELITE AX V2 / ASUS TUF GAMING B650-PLUS / B650 GAMING X AX V2
Memory
F5-6000J3636F16GX2-FX5 32GB / Lexar Ares RGB LD5BU016G-R6000GDLA 32GB / Kingston FURY Beast 32 GB DDR5-5600
Graphics Card(s)
internal
Sound Card
Realtek
Monitor(s) Displays
BenQ 27 L EW2780
Screen Resolution
1920x1080
Hard Drives
Many M.2's (WD)
PSU
be quiet! Pure Power 13 M 550W
Case
Chieftec HC-10B-OP
Cooling
Gelid Solutions Tranquillo 5, many Noctua's 12x12
Keyboard
Microsoft
Mouse
Cherry
Internet Speed
500 mbs
Browser
Vivaldi
Antivirus
Eset
Other Info
PC builder / repair / Trouble-shooter etc.
grinding away...
 

Attachments

My Computer My Computer

At a glance

Windows 7
OS
Windows 7
Code:
---------
    SkuSiPolicy.p7b is CURRENT.
        \\.\HarddiskVolume1\EFI\Microsoft\Boot\SkuSiPolicy.p7b
        Version: 3.0.0.16

        FileRule             MinimumFileVersion MaximumFileVersion
        --------             ------------------ ------------------
        ID_FILEATTRIB_F_0042 0.0.0.0            10.0.14393.9309
        ID_FILEATTRIB_F_0044 10.0.14400.0       10.0.17763.8979
        ID_FILEATTRIB_F_0040 10.0.18000.0       10.0.19041.7519
        ID_FILEATTRIB_F_0049 10.0.19100.0       10.0.20348.5359
        ID_FILEATTRIB_F_0047 10.0.20400.0       10.0.22621.7349
        ID_FILEATTRIB_F_0041 10.0.23000.0       10.0.26100.8835
        ID_FILEATTRIB_F_0043 10.0.26100.32000   10.0.26100.33099
        ID_FILEATTRIB_F_0048 10.0.26172.0       10.0.26172.33099
        ID_FILEATTRIB_F_0046 10.0.27000.0       10.0.28000.2489
        ID_FILEATTRIB_F_0045 10.0.29426.0       65535.65535.65535.65535


Found |F|
Found ||
got a null!

DriveLetter FriendlyName FileSystemType DriveType HealthStatus OperationalStatus SizeRemaining     Size
----------- ------------ -------------- --------- ------------ ----------------- -------------     ----
F           MACLAPC2023  FAT32          Removable Healthy      OK                      27.9 GB 28.65 GB



PS C:\Users\jwdav>
 

My Computer My Computer

At a glance

Win11 24H2 IOT LTSC / Win11 Pro 25H2AMD Ryzen 7 8700G / Ryzen 7 8700G / Ryzen 8600GF5-6000J3636F16GX2-FX5 32GB / Lexar Ares RGB ...internal
OS
Win11 24H2 IOT LTSC / Win11 Pro 25H2
Computer type
PC/Desktop
Manufacturer/Model
Gigabyte x2 / Asus = Home builds
CPU
AMD Ryzen 7 8700G / Ryzen 7 8700G / Ryzen 8600G
Motherboard
Gigabyte B650 AORUS ELITE AX V2 / ASUS TUF GAMING B650-PLUS / B650 GAMING X AX V2
Memory
F5-6000J3636F16GX2-FX5 32GB / Lexar Ares RGB LD5BU016G-R6000GDLA 32GB / Kingston FURY Beast 32 GB DDR5-5600
Graphics Card(s)
internal
Sound Card
Realtek
Monitor(s) Displays
BenQ 27 L EW2780
Screen Resolution
1920x1080
Hard Drives
Many M.2's (WD)
PSU
be quiet! Pure Power 13 M 550W
Case
Chieftec HC-10B-OP
Cooling
Gelid Solutions Tranquillo 5, many Noctua's 12x12
Keyboard
Microsoft
Mouse
Cherry
Internet Speed
500 mbs
Browser
Vivaldi
Antivirus
Eset
Other Info
PC builder / repair / Trouble-shooter etc.
She sells sea shells by the sea shore.
 

Attachments

My Computer My Computer

At a glance

Windows 7
OS
Windows 7
Code:
 ID_FILEATTRIB_F_0045 10.0.29426.0       65535.65535.65535.65535



DriveLetter FriendlyName FileSystemType DriveType HealthStatus OperationalStatus SizeRemaining     Size
----------- ------------ -------------- --------- ------------ ----------------- -------------     ----
F           MACLAPC2023  FAT32          Removable Healthy      OK                      27.9 GB 28.65 GB



PS C:\Users\jwdav>
 

My Computer My Computer

At a glance

Win11 24H2 IOT LTSC / Win11 Pro 25H2AMD Ryzen 7 8700G / Ryzen 7 8700G / Ryzen 8600GF5-6000J3636F16GX2-FX5 32GB / Lexar Ares RGB ...internal
OS
Win11 24H2 IOT LTSC / Win11 Pro 25H2
Computer type
PC/Desktop
Manufacturer/Model
Gigabyte x2 / Asus = Home builds
CPU
AMD Ryzen 7 8700G / Ryzen 7 8700G / Ryzen 8600G
Motherboard
Gigabyte B650 AORUS ELITE AX V2 / ASUS TUF GAMING B650-PLUS / B650 GAMING X AX V2
Memory
F5-6000J3636F16GX2-FX5 32GB / Lexar Ares RGB LD5BU016G-R6000GDLA 32GB / Kingston FURY Beast 32 GB DDR5-5600
Graphics Card(s)
internal
Sound Card
Realtek
Monitor(s) Displays
BenQ 27 L EW2780
Screen Resolution
1920x1080
Hard Drives
Many M.2's (WD)
PSU
be quiet! Pure Power 13 M 550W
Case
Chieftec HC-10B-OP
Cooling
Gelid Solutions Tranquillo 5, many Noctua's 12x12
Keyboard
Microsoft
Mouse
Cherry
Internet Speed
500 mbs
Browser
Vivaldi
Antivirus
Eset
Other Info
PC builder / repair / Trouble-shooter etc.
Sorry I gotta get some sleep here, going on 7:30 AM, I am sure you will get it, Thank you once again :cool:
 

My Computer My Computer

At a glance

Win11 24H2 IOT LTSC / Win11 Pro 25H2AMD Ryzen 7 8700G / Ryzen 7 8700G / Ryzen 8600GF5-6000J3636F16GX2-FX5 32GB / Lexar Ares RGB ...internal
OS
Win11 24H2 IOT LTSC / Win11 Pro 25H2
Computer type
PC/Desktop
Manufacturer/Model
Gigabyte x2 / Asus = Home builds
CPU
AMD Ryzen 7 8700G / Ryzen 7 8700G / Ryzen 8600G
Motherboard
Gigabyte B650 AORUS ELITE AX V2 / ASUS TUF GAMING B650-PLUS / B650 GAMING X AX V2
Memory
F5-6000J3636F16GX2-FX5 32GB / Lexar Ares RGB LD5BU016G-R6000GDLA 32GB / Kingston FURY Beast 32 GB DDR5-5600
Graphics Card(s)
internal
Sound Card
Realtek
Monitor(s) Displays
BenQ 27 L EW2780
Screen Resolution
1920x1080
Hard Drives
Many M.2's (WD)
PSU
be quiet! Pure Power 13 M 550W
Case
Chieftec HC-10B-OP
Cooling
Gelid Solutions Tranquillo 5, many Noctua's 12x12
Keyboard
Microsoft
Mouse
Cherry
Internet Speed
500 mbs
Browser
Vivaldi
Antivirus
Eset
Other Info
PC builder / repair / Trouble-shooter etc.
I contacted Macrium asking them to add the 2023 option to building WinRE rescue media like you can with WinPE.

2023.webp

What I asked:

I would like to see the option to use 2023 cert added to the Macrium rescue builder for WinRE wim as right now it is only available if you build WinPE rescue media.

What I am having to do now is copy the file from WIndows after I build so I have the 2023 cert as Macrium is building with 2011.

copy C:\Windows\Boot\EFI_EX\bootmgfw_EX.efi F:\EFI\boot\bootx64.efi

Their reply:

We are aware of a compatibility issue relating to the May 2024 Windows Secure Boot update, where the CA 2011 certificate is revoked and CA 2023 is enforced. This can prevent Rescue Media created by Macrium Reflect X from booting correctly unless the BCD is manually corrected.

For now, your workaround is the correct approach. The equivalent steps we recommend are:

copy X:\EFI\MICROSOFT\BOOT\BCD X:\EFI\MICROSOFT\BOOT\BCD.BAK
bcdboot c:\windows /f UEFI /s X: /bootex
copy X:\EFI\MICROSOFT\BOOT\BCD.BAK X:\EFI\MICROSOFT\BOOT\BCD


Regarding your suggestion to incorporate this functionality into Rescue Media Builder, you are also welcome to submit this through our Product Portal:

https://portal.productboard.com/macriumsoftware/1-macrium-product-portal/tabs/2-next

So it looks like for now they have no plans to address this and if we want to get it added have to suggest in the productboard
Hasleo has already added this functionality to WinRE and WinPE rescue media.
 

My Computer My Computer

At a glance

Windows 11 Pro
OS
Windows 11 Pro
I contacted Macrium asking them to add the 2023 option to building WinRE rescue media like you can with WinPE.
I've had a paid copy since it's been available. I will also request them to add the 2023 certs to their build process.
 

My Computers My Computers

  • At a glance

    Windows 11 & Zorin ProIntel® Core™ Ultra 9 Processor 275HX 2.7 GHz32 gbNVIDIA® GeForce RTX™ 5060 Laptop GPU
    OS
    Windows 11 & Zorin Pro
    Computer type
    Laptop
    Manufacturer/Model
    Asus Rog Strix G16
    CPU
    Intel® Core™ Ultra 9 Processor 275HX 2.7 GHz
    Motherboard
    AsusteK Computer
    Memory
    32 gb
    Graphics Card(s)
    NVIDIA® GeForce RTX™ 5060 Laptop GPU
    Sound Card
    Realtek High Definition Audio
    Monitor(s) Displays
    Laptop 16 inch
    Screen Resolution
    2560 X 1600
    Hard Drives
    Boot: Samsung 9100 NVME 2 TB Microsoft Storage Controller: Standard NVM Express Driver: Microsoft 6/21/2006. No SATA/AHCI on my motherboard or in bios
    Mouse
    Pad
    Browser
    Google Chrome
    Antivirus
    Microsoft
    Other Info
    Printer: HP Color LaserJet MFP M477dw
  • At a glance

    Windows 11 Pro, Zorin ProIntel Nuc 8i7, Intel Nuc 8i5Intel internal
    Operating System
    Windows 11 Pro, Zorin Pro
    Computer type
    PC/Desktop
    Manufacturer/Model
    Intel
    CPU
    Intel Nuc 8i7, Intel Nuc 8i5
    Motherboard
    Intel
    Graphics card(s)
    Intel internal
    Monitor(s) Displays
    Dell U27
    Hard Drives
    Samsung 990 Pro
    Keyboard
    Dell USB
    Mouse
    Dell USB
    Antivirus
    Windows Defender
  • Dell 8500 Windows 10 Pro extended, Dell 8700 Windows 10 Pro extended , Hp Pavilion Linux
We are aware of a compatibility issue relating to the May 2024 Windows Secure Boot update, where the CA 2011 certificate is revoked and CA 2023 is enforced. This can prevent Rescue Media created by Macrium Reflect X from booting correctly unless the BCD is manually corrected.

For now, your workaround is the correct approach. The equivalent steps we recommend are:

copy X:\EFI\MICROSOFT\BOOT\BCD X:\EFI\MICROSOFT\BOOT\BCD.BAK
bcdboot c:\windows /f UEFI /s X: /bootex
copy X:\EFI\MICROSOFT\BOOT\BCD.BAK X:\EFI\MICROSOFT\BOOT\BCD
My update script does that.

I have no idea why they can't incorporate this into their product since bcdboot copies all of the correct files. It's preferable that you call bcdboot instead of keeping your own list of files, in case Windows changes them. bcdboot will always know which files are required.

The downside is bcdboot will clobber the existing BCD file, so you need to take steps to preserve the original version of it. Unfortunately there isn't a bcdboot argument for "copy, but don't touch BCD".
 

My Computer My Computer

At a glance

Windows 7
OS
Windows 7
I have no idea why they can't incorporate this into their product

Ya considering Hasleo has already done this after customers asked for it.
 

My Computer My Computer

At a glance

Windows 11 Pro
OS
Windows 11 Pro
Back
Top Bottom