r/ForWindowsHelp • • 1d ago

Secure boot not working on windows 11

Post image

Hi, I installed windows 11 ltsc IoT without secure boot enabled, now I’ve enabled it on my MSI gaming gen3 motherboard, it refuses to boot. I’ve been trying to fix this for so long and I’m about to go insane. I have played around with the secure boot settings in my BIOS, I’ve updated my bios and etc. here is the error I get when trying to boot with secure boot, it boots 100% normally when i turn secure boot off. Also my partition type is not MBR and I am on UEFI

6 Upvotes

3 comments sorted by

2

u/ALaggingPotato 1d ago

When you change boot settings, you expect to reinstall windows.

Change it back or reinstall Windows with it on

2

u/steveace60 1d ago

Right click Start > Terminal (Admin) Copy and paste the following

[System.Text.Encoding]::ASCII.GetString((Get-SecureBootUEFI db).bytes) -match ‘Windows UEFI CA 2023’

It'll return True or False

1

u/StraightTalkWisdom 16h ago

Error 0xc0430001 is a Secure Boot or code-integrity failure. Windows' boot manager started, but the code-integrity check rejected something, so it stopped at the Recovery screen. Your Secure Boot keys, your BIOS and your boot files are the likely places to look. Reddit and Microsoft Q&A threads describe it as "code integrity failed to initialise".[reddit][learn.microsoft]

What to try, in order

  1. Make sure you can still boot. Set Secure Boot back to Disabled. Windows should start normally, as it did before.[windowsdigitals]
  2. Rebuild the boot files. Boot into Windows with Secure Boot off. Open Command Prompt as administrator and run bcdboot C:\Windows /f UEFI. If you're repairing from recovery media instead, use bcdboot C:\Windows /s S: /f UEFI, where S: is the mounted EFI partition. The EFI partition may hold a stale or corrupted code-integrity policy from the original install. This command rewrites it.[learn.microsoft]
  3. Fix the keys in BIOS. Go to Security, then Secure Boot, then Key Management.

    • Set the mode to Standard, not Custom.
    • Choose "Restore Factory Keys" or "Install default keys".
    • Another Microsoft thread suggests clearing the keys while Secure Boot is on, then letting the board re-enroll them. I'd try restoring the factory keys first.[learn.microsoft]
    • Set Windows Boot Manager as the first boot option, enable Secure Boot, then save.
  4. Update Windows and the BIOS before re-enabling. Install all Windows updates, including optional firmware updates, then turn Secure Boot back on. Also reflash the latest MSI BIOS.[windowsdigitals]
  5. Use the SecureBootRecovery.efi method. A Microsoft answer describes making a Windows install USB and replacing EFI\Boot\bootx64.efi with a file called SecureBootRecovery.efi. You boot from it once with Secure Boot disabled, then remove the USB and enable Secure Boot. I haven't verified where that file comes from, so use it only from the source linked in that thread.[learn.microsoft]
  6. Check your install USB. If the error appears when booting installation media, the media may lack the correct boot.stl file. Copy it from Windows\Boot\EFI on a working install.[windowsforum]
  7. Last resort. Reinstall Windows with Secure Boot already enabled, using fresh media. A clean install under Secure Boot sidesteps whatever was left over from the unsigned setup. This is the cleanest fix.[learn.microsoft]

Two checks before you start

  • Run msinfo32 while Windows is running. BIOS Mode should say UEFI. Secure Boot State will say Off for now.
  • BitLocker or device encryption may ask for a recovery key after the BIOS changes. Back that key up first.[windowsdigitals]