Secure Boot is a UEFI firmware feature that checks the digital signature of each bootloader and operating system boot component before it runs, and refuses to start anything unsigned or tampered with. In practice it blocks a class of malware called a bootkit, which loads before Windows or Linux so antivirus never sees it. To use it, your PC must boot in UEFI mode (not legacy/CSM), be set up with a GPT disk layout, and have the vendor's factory keys installed in the firmware. Windows 11 requires Secure Boot to be enabled. On most boards you turn it on in BIOS/UEFI by switching off CSM, loading the default keys, and setting Secure Boot to Enabled — then verifying in Windows with Confirm-SecureBootUEFI. Menu names differ slightly between motherboard makers and BIOS versions, so treat the paths below as a guide, not a script.

What You'll Need

  • A PC with UEFI firmware (most systems built after roughly 2012). Check by running msinfo32 in Windows and looking at BIOS Mode — it should say UEFI, not Legacy.
  • A disk formatted with the GPT partition scheme. msinfo32 will not say this directly, but if BIOS Mode is Legacy, the disk is MBR and must be converted first.
  • Administrator access in Windows (to run PowerShell commands).
  • Your motherboard or laptop model number, so you can look up the exact key (Del, F2, F10, F12) that opens the firmware setup on your machine.
  • For Linux: a signed distribution bootloader (most mainstream distros ship one) or a way to enrol your own keys if you use a custom kernel.
  • A backup of important files before changing firmware settings or converting a disk — always.

Step-by-Step

  1. Check the current state. Right-click Start, open Terminal (Admin) or Windows PowerShell as administrator, and run:
    Confirm-SecureBootUEFI
    This returns True if Secure Boot is on and supported, False if the firmware supports it but it is off, and an error about cmdlet support if the PC is in legacy mode or not UEFI-capable. Write down which one you get.
  2. Confirm UEFI mode and disk layout. Run msinfo32 and read BIOS Mode. If it says Legacy, Secure Boot cannot be enabled until you convert the drive from MBR to GPT. Windows has an official tool, MBR2GPT, that can convert in place, but it requires the disk to be healthy and the partition layout to meet its rules. Back up first, because a failed conversion can leave the system unbootable. If you are not comfortable with partitioning, a clean reinstall on a GPT disk is the safer path.
  3. Enter the firmware setup. Restart the PC and repeatedly tap the setup key for your model while the logo appears (commonly Del or F2 on desktops, F2 or F10 on laptops, sometimes a dedicated key). On Windows 11 you can also hold Shift while choosing Restart to reach the recovery menu, then go to Troubleshoot > Advanced options > UEFI Firmware Settings. Note that this option only appears if the PC actually boots in UEFI mode.
  4. Turn off legacy boot (CSM). Find the boot section — often called Boot, Boot Configuration or Compatibility Support Module — and disable CSM or Legacy Boot. Secure Boot cannot run while legacy boot is active.
  5. Load the factory keys. In the Security or Secure Boot section, look for an option such as Restore Factory Keys, Install Default Secure Boot Keys or Reset to Setup Mode. This installs the vendor's platform key, key exchange keys and signature database. Some boards ship in Setup Mode with no keys; nothing works until you do this step.
  6. Set Secure Boot to Enabled. Choose the Secure Boot mode (Standard or Windows UEFI, depending on the vendor) and set Secure Boot itself to Enabled. Some boards also offer Custom mode for enrolling your own keys — only use that if you know why you need it.
  7. Save and exit. Press the save-and-exit key (usually F10) and confirm. The machine reboots.
  8. Verify inside Windows. Reopen an admin terminal and run Confirm-SecureBootUEFI again. A result of True means it is active. You can also check Settings > Privacy & Security > Windows Security > Device security > Core isolation details, which shows whether Secure Boot-backed features are on, and in System Information under Secure Boot State.
  9. For Linux, test at the bootloader. If GRUB or another bootloader is installed with Secure Boot support on, it will start with firmware validation active. Use mokutil --sb-state to read the state, and mokutil --import to enrol your own key if you sign your own kernel.

Common Mistakes

The most frequent error is enabling Secure Boot while still in legacy/CSM mode, which produces a setting that looks on but does nothing or blocks boot entirely. Second is converting a disk to GPT without backing up — a failed MBR2GPT run can render Windows unbootable and require a repair USB. Third is choosing Custom mode and clearing the factory keys without having your own keys ready, which locks you out of booting a signed OS until you reset keys. Fourth is expecting Secure Boot to stop all malware: it only validates boot components, not applications or drivers after the OS is running (that is the job of driver signature enforcement and memory integrity). Finally, some people disable Secure Boot to install an unsigned driver or an older OS and never turn it back on, quietly lowering security.

Tips

  • Do firmware updates from the vendor's official utility and re-check Secure Boot afterwards; updates occasionally reset it to disabled.
  • Keep a Windows installation USB nearby before touching partitioning in case you need the recovery environment.
  • On dual-boot systems, install the Linux distribution with Secure Boot enabled rather than turning it off — mainstream distros handle this.
  • If you run virtual machines, Secure Boot state inside the VM is separate from the host; enable it in the hypervisor's firmware settings if you need it for a guest OS.
  • Document the BIOS key and current settings for your machine; you will need them again.

Troubleshooting

If the PC will not boot after enabling Secure Boot, the usual cause is an OS installed in legacy mode or an unsigned bootloader. Go back into firmware setup, disable Secure Boot, boot the OS, and confirm whether it is UEFI-installed. If it is not, convert the disk or reinstall. If the firmware setup has no Secure Boot entry at all, the board may predate UEFI support or the vendor removed it. If Confirm-SecureBootUEFI errors with "Cmdlet not supported on this platform", you are either in legacy mode or on a non-UEFI machine. If Windows reports Secure Boot is on but a required security feature is off, check that the platform key is installed and that the OS is current. If you cannot boot a USB installer, it may be built for legacy BIOS; recreate it with UEFI support using the vendor's official media creation tool.

Frequently Asked Questions

Does Secure Boot slow down my PC?

No, the signature check happens at boot and adds no measurable performance cost during normal use.

Can I disable Secure Boot?

Yes, in firmware setup, but Windows 11 requires it enabled, so disabling it may cause the OS not to boot or to fail requirements checks.

Does it protect against ransomware?

Not directly. It blocks tampered boot code; ransomware protection comes from your OS and antivirus layers.

Will it stop me installing Linux?

No. Most distributions ship signed bootloaders that work with Secure Boot enabled.

What does "Setup Mode" mean?

The firmware has no keys installed, so Secure Boot cannot run until you restore factory keys or enrol your own.

Do I need an internet connection to enable it?

No, all keys come from the firmware or from your own signed files.