Repair UEFI boot problems by checking the failure point in this order: firmware entry missing, EFI partition issue, or boot files missing; fix the first layer that’s broken before you rebuild anything else. Skip that order and you can wipe a healthy boot partition, lose access to Windows, or make recovery harder. This guide shows how to identify each case and apply the least-destructive Windows boot repair on UEFI PCs.

When UEFI boot repair is the right fix

Use UEFI repair when Windows setup or startup fails on a UEFI-based PC, when Windows Boot Manager disappears, or when the machine loops back into firmware setup instead of loading Windows. If the system was installed in the wrong firmware mode, the repair path changes: fix the mode mismatch first, then rebuild boot files if needed.

UEFI mode is the standard choice for Windows installation. BIOS mode is the older legacy boot mode and still matters for some older media and network boot paths. GPT is the Microsoft-recommended partition style for UEFI boot; MBR is the Microsoft-recommended partition style for BIOS boot.

What you'll need

  • A Windows recovery USB or installation USB.
  • Firmware setup access through keys such as Esc, Delete, F1, F2, F10, F11, or F12.
  • Command Prompt in WinRE or WinPE.
  • An empty USB port for recovery media.
  • Verify the current Windows and EFI drive letters before running repair commands.

UEFI recovery matrix

Windows recovery Advanced options menu with UEFI Firmware Settings and Command Prompt
Use the menu to reach UEFI Firmware Settings or Command Prompt for boot repair.
Symptom Likely cause Safest fix Commands to run Post-fix verification
Windows Boot Manager is missing from firmware NVRAM boot entry was deleted or lost Recreate the boot files with bcdboot after confirming the EFI partition dir, diskpart, list vol, bcdboot C:\Windows /s S: /f UEFI Windows Boot Manager appears in firmware boot order
PC returns to UEFI setup every time Firmware has no valid boot entry or boot order points to the wrong device Repair the UEFI boot entry first, then set Windows Boot Manager first bcdboot, then firmware boot order change Windows loads instead of re-entering setup
Device boots only after switching to legacy Installed system is in BIOS mode or media was started in the wrong mode Check firmware mode in WinPE, then choose conversion or reinstall path reg query HKLM\System\CurrentControlSet\Control /v PEFirmwareType Value matches the chosen boot mode
EFI partition is unreadable or missing files Damaged EFI System Partition Assign a letter, then rebuild boot files onto the existing ESP diskpart, list vol, assign letter=S, bcdboot ESP contains \EFI\Microsoft\Boot files
Windows installation fails after booting USB USB started in the wrong firmware mode Boot the USB entry labeled UEFI when installing Windows in UEFI mode No repair command; restart and pick the correct boot entry Setup continues and disk layout matches the boot mode
USB does not show an UEFI entry Media layout or firmware filter blocks UEFI boot Recreate install media, then try Boot from file on older firmware Use \EFI\BOOT\BOOTX64.EFI when offered by firmware USB appears as a UEFI boot choice
Legacy network boot works, UEFI network boot does not Older network gear or firmware only supports BIOS boot Use BIOS mode for that boot path only PEFirmwareType check in WinPE Network boot matches the available mode
Secure Boot blocks older boot media Media is not signed for the current UEFI policy Disable Secure Boot only for that recovery session Firmware setup path: Security or Boot, then Secure Boot Media starts, then Secure Boot can be restored

How do you repair Windows boot when UEFI is broken?

Windows Recovery Environment advanced options menu on a monitor
Command Prompt and UEFI Firmware Settings are available from recovery options.

Start with the least-destructive repair: verify the Windows and EFI partitions, then rebuild UEFI boot files onto the correct EFI System Partition. If the NVRAM entry is missing, bcdboot usually restores it without touching user data. If the EFI partition itself is damaged, repair or recreate that partition before you retry.

  1. Boot into recovery media. Start from Windows Recovery Environment or installation media, then open Command Prompt. If needed, use startup keys such as F2, F12, Esc, Delete, or F10 to reach firmware first.
  2. Find the correct letters. Run diskpart, then list vol. Identify the Windows volume and the EFI System Partition, which is commonly a small FAT32 volume.
  3. Assign the EFI letter. Select the EFI volume and run assign letter=S. Do not use the Active flag here; that is for legacy MBR boot, not UEFI.
  4. Rebuild the boot files. Run bcdboot C:\Windows /s S: /f UEFI, replacing C:\Windows with the verified Windows path if the letter differs.
  5. Restart and verify. Open firmware settings and confirm Windows Boot Manager appears before the physical disk. Then boot Windows and confirm it starts normally.

Suppose the machine shows a black screen and then drops straight into setup every time. That often means the firmware sees the disk but has no valid UEFI entry to follow. Rebuilding the boot files is the first move; changing boot order alone will not recreate a deleted entry.

How do you tell BIOS from UEFI?

Check the running environment from WinPE or recovery media. In WinPE, the registry value PEFirmwareType under HKLM\System\CurrentControlSet\Control tells you the mode: 0x1 means BIOS and 0x2 means UEFI. That check matters before you convert partitions or choose boot commands. (Microsoft Learn)

  1. Open Command Prompt. From WinRE or WinPE, start Command Prompt before changing anything else.
  2. Query the mode. Run reg query HKLM\System\CurrentControlSet\Control /v PEFirmwareType.
  3. Match the result. Use 0x1 for BIOS troubleshooting and 0x2 for UEFI repair. If the mode does not match the installed system, fix that mismatch before boot-file work.
  4. Confirm the media entry. If the USB appears twice, pick the UEFI entry when you need UEFI boot; UEFI and BIOS entries can appear separately for the same device.

Can you switch BIOS to UEFI after installation?

Yes, sometimes. MBR2GPT is the right tool after Windows is already installed when the disk is in MBR format and you want to move the installed system to UEFI mode without reinstalling. It is not the first fix for a broken EFI boot entry on an already-UEFI disk.

When MBR2GPT is the right move

  1. Confirm BIOS mode. In WinPE, check PEFirmwareType. If it shows 0x1, the system is booted in BIOS mode.
  2. Confirm MBR layout. Use DiskPart to inspect the system disk. If it is MBR and you want UEFI, conversion can make sense.
  3. Convert the disk. Run mbr2gpt /validate /disk:0, then mbr2gpt /convert /disk:0 if validation passes. Change the disk number only after verifying it.
  4. Switch firmware mode. Enter setup and change the boot mode to UEFI, then set Windows Boot Manager first.

When rebuilding boot files is safer

  1. Use boot repair first. If the system disk is already GPT and only the boot entry is missing, rebuild with bcdboot instead of converting partition style.
  2. Avoid extra partition changes. If Windows already starts in UEFI sometimes, the problem is more likely missing EFI files or a bad NVRAM entry.
  3. Recheck after restart. Confirm the system still shows PEFirmwareType as 0x2 and that Windows Boot Manager appears.

A common first-timer mistake is converting a disk that only needed boot files repaired. That adds risk without fixing the real fault. If the disk already uses GPT, rebuild the EFI boot path first.

How do I get to UEFI Firmware settings from Windows?

You can open firmware settings from Windows by going through Troubleshoot > Advanced options > UEFI Firmware settings. Windows can open that path from the sign-in screen or from the Start menu. If the system is too broken to load Windows, use a startup key such as F2 or F12 instead.

  1. Open recovery settings. From Windows, go to Settings > System > Recovery, then choose advanced startup.
  2. Enter firmware setup. Select Troubleshoot > Advanced options > UEFI Firmware settings, then restart into firmware.
  3. Adjust boot behavior. Change boot order, Secure Boot, or boot mode only if the repair path requires it.

How do I boot a USB drive in UEFI mode?

Choose the boot entry labeled UEFI: USB Drive when the firmware shows both options for the same device. If the machine is older and does not show a normal UEFI entry, use the firmware’s Boot from file option and point it to \EFI\BOOT\BOOTX64.EFI when that path exists on the media.

  1. Recreate the USB if needed. Make sure the installer was made for UEFI boot. If the device keeps showing only legacy entries, rebuild the media.
  2. Pick the UEFI entry. In the one-time boot menu, select the UEFI-labeled USB entry rather than the plain device name.
  3. Use Boot from file. On older firmware, browse to \EFI\BOOT\BOOTX64.EFI if the menu offers that path.

Common mistakes

  • Changing boot order before restoring a missing UEFI entry. Boot order cannot recreate deleted NVRAM data.
  • Assuming C:\Windows is always correct in recovery. Verify the Windows volume letter first.
  • Marking the EFI partition Active. That concept belongs to MBR boot, not UEFI GPT boot.
  • Running mbr2gpt when the real problem is only broken EFI files.
  • Leaving Secure Boot on when older recovery media will not start.
  • Using a BIOS boot entry for Windows media that must start in UEFI mode.

Keep a record of the firmware mode and partition style after the machine is working. That makes the next recovery faster, because you can match the repair to the existing layout instead of guessing.

Keep reading

Frequently asked questions

What is the difference between UEFI and legacy BIOS boot?

UEFI is the newer firmware path and is the standard choice for Windows installation. BIOS is the older legacy boot mode and still appears in some recovery, network, and older-media scenarios. The two can show separate boot entries for the same USB device, so the label you choose matters.

How do I know if my PC is booted in UEFI mode?

In WinPE, run reg query HKLM\System\CurrentControlSet\Control /v PEFirmwareType. A result of 0x2 means UEFI mode, while 0x1 means BIOS mode. That check is the fastest way to confirm the active firmware mode before changing partitions or boot files.

What boot file should I use to start Windows setup in UEFI mode?

Use the UEFI boot path \EFI\BOOT\BOOTX64.EFI when the firmware offers Boot from file or when a very old PC cannot show the normal UEFI menu entry. For standard installs, the simpler method is still to choose the USB entry labeled UEFI in the boot menu.

Why does Windows installation fail when I boot in the wrong firmware mode?

Windows expects the installer and the disk layout to match the boot mode. If you boot UEFI media in BIOS mode, or BIOS media in UEFI mode, setup can fail before installation finishes. Match the media entry to the target mode, then use GPT for UEFI or MBR for BIOS.

Can I switch Windows from BIOS to UEFI after installation?

Yes, if the installed system is on an MBR disk and the hardware supports UEFI. Use mbr2gpt /validate first, then mbr2gpt /convert only after validation passes. If the disk is already GPT and only the boot path is broken, rebuild the EFI boot files instead.

How do I fix a PC that only boots in BIOS or only in UEFI?

Check the mode with PEFirmwareType, then match the firmware setting and the disk style to that mode. BIOS-only boot paths usually need MBR and may be required for some network boots. UEFI-only paths usually want GPT, Secure Boot may affect legacy media, and Windows Boot Manager must be restored if it vanished.