If Windows setup fails after an upgrade and the disk is still detected, fix the UEFI boot entries first: recreate the Windows Boot Manager entry, then retry setup. Bad firmware variables can leave the PC stuck in firmware setup, loop into recovery, or hide the Windows install entirely. This guide shows how to check for UEFI-variable damage and restore a clean boot path before you touch Windows files.

UEFI variable repair table

Use the symptom pattern to separate firmware-state problems from media problems. Fix the boot path the machine is trying to use. Do not start with Windows file repair.

Symptom pattern Likely cause Safest repair action
Firmware opens, but Windows Boot Manager is missing or renamed after rollback Corrupted UEFI boot variables or a deleted boot entry Reset the firmware boot list, then recreate or reselect the Windows Boot Manager entry in UEFI mode
Setup USB starts, then Windows installation fails before the disk selection screen Wrong firmware mode for the media Boot the same USB as UEFI: USB Drive if the disk is GPT, or as BIOS: USB Drive if the disk is MBR
Startup menu shows the USB, but setup loops back to firmware or recovery Damaged or mismatched install media Recreate the media, then verify the boot mode with PEFirmwareType before retrying
Firmware settings open, but values are blank, reset, or inaccessible Firmware state corruption, often after a failed upgrade or rollback Load defaults or clear the custom boot list in UEFI Firmware settings, then set the boot order again

What UEFI Firmware settings mean in Windows recovery

Windows recovery menu with UEFI Firmware Settings option
This recovery choose troubleshoot path reboots the machine to firmware settings.

UEFI firmware is the normal boot path for modern Windows PCs, and it is where boot order, Secure Boot, and stored boot entries live. In Windows recovery, UEFI Firmware settings means the menu path that reboots the machine into firmware setup through Troubleshoot > Advanced options > UEFI Firmware settings.

That menu matters because the failure may sit in firmware state, not in Windows itself. If the machine still sees the disk and the installer media, the first question is whether the firmware points to the right boot entry and the right mode.

Open the firmware menu with the manufacturer key if Windows will not load. Common startup keys include Esc, Delete, F1, F2, F10, F11, and F12. Some tablets use Volume up or Volume down buttons instead.

  1. Enter recovery settings. From Windows recovery, choose Troubleshoot then Advanced options and open UEFI Firmware settings. If Windows still reaches the desktop, hold Shift while choosing Restart to reach the same menu path.
  2. Check the boot list. Look for Windows Boot Manager and any removable media entries. If the upgrade removed a custom entry, firmware defaults are often safer than manual edits when the list is blank or inconsistent.
  3. Note Secure Boot status. Leave Secure Boot on for normal UEFI booting. If older BIOS-mode recovery media refuses to start, disable Secure Boot only for that repair attempt, then turn it back on afterward.

Can I fix a broken UEFI boot entry without reinstalling Windows?

A Windows command prompt appears with UEFI boot repair text and arrows
Use firmware setup to reset boot defaults before rebuilding the Windows Boot Manager entry.

Yes, often you can. If the disk is present and the firmware still opens, a missing or damaged boot entry usually means the UEFI variables may need to be reset or rebuilt, rather than Windows being reinstalled. That is especially common after a failed upgrade rollback that removes custom boot entries.

A firmware reset is safer than editing entries by hand when the boot list is blank, duplicated, or points to the wrong disk. Manual edits make sense only when the correct Windows Boot Manager entry still exists and the problem is a bad order setting.

If your laptop shows firmware setup after every restart, and Windows Boot Manager vanished after a failed feature upgrade, the problem points to boot variables, not a damaged Windows folder. Reset the boot list first, then rebuild the entry in UEFI mode before touching setup media.

  1. Reset boot defaults. In firmware setup, choose the option to load optimized defaults or restore default settings. This clears bad boot-order changes and can restore the standard Windows boot path without changing the disk contents.
  2. Recreate the Windows entry. Add or reselect Windows Boot Manager on the system disk. If the machine supports only one mode, choose the matching mode instead of forcing a different one.
  3. Save and restart. Save the firmware changes and restart once before trying setup media again. If the machine now reaches Windows or the installer screen, the boot-variable repair worked.

How do I restore UEFI firmware settings after Windows setup fails?

Windows recovery menu includes a UEFI Firmware Settings option
UEFI Firmware Settings appears among the recovery options for startup repair.

Start with the firmware state, then move to the installer. If Windows Setup fails after an upgrade, a common repair path is to restore the boot order, confirm the system is still in UEFI mode, and then boot the install media in that same mode. Windows can be switched to UEFI or BIOS boot through WinPE or Windows Setup, but the mode must match the disk and the intended install path.

Microsoft recommends installing Windows using UEFI mode because it includes more security features. After Windows is installed, the device normally boots in the same mode it was installed with, so a mode mismatch can stop the upgrade or make the disk appear wrong.

  1. Open firmware settings. Use the manufacturer key during startup or go through Shift + Restart to reach UEFI Firmware settings. In firmware setup, confirm the internal drive still sits first in the boot order.
  2. Restore the boot path. If Windows Boot Manager is missing, re-add it or reset the firmware boot list. A missing entry after rollback is a firmware-state issue, not proof that Windows files are gone.
  3. Match the installer mode. Boot the USB as UEFI if the disk is GPT, or as BIOS if the disk is MBR. If the installer boots in the wrong mode, Windows installation will fail.
  4. Retry setup once. After saving firmware changes, restart and launch the installer only once in the intended mode. Repeating the wrong mode can keep the machine in a failed setup loop.

Should you boot in UEFI or legacy BIOS mode?

Use UEFI mode for modern Windows installs unless you have a specific legacy requirement. UEFI is the normal path on current PCs, and Secure Boot is part of that path. Legacy BIOS mode belongs to older media and older layouts that still expect MBR.

GPT is recommended for UEFI mode, while MBR is recommended for BIOS mode. If the boot menu shows separate entries for the same USB, choose the one that matches the disk format and the intended install goal.

A common first-time mistake is choosing the plain USB entry because it looks identical to the UEFI entry. On many systems, that sends the installer into the wrong mode, so setup starts and then fails before Windows can be installed correctly.

  1. Open the boot menu. Use the manufacturer startup key to reach the one-time boot menu. On many systems, the same device appears twice, once as UEFI: USB Drive and once as BIOS: USB Drive.
  2. Pick the matching mode. Choose UEFI: USB Drive for GPT disks and UEFI installs. Choose BIOS: USB Drive only when the recovery plan depends on legacy boot or an older installer that cannot boot in UEFI.
  3. Toggle Secure Boot if needed. If a BIOS-mode recovery USB refuses to start, disable Secure Boot temporarily on some devices, then re-enable it after the repair. Secure Boot should not be the main fix for a bad boot entry.

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

Check the boot mode inside Windows PE or Windows Setup with the PEFirmwareType registry value. A return of 0x1 means BIOS, and 0x2 means UEFI. That tells you whether the current repair session is using the same firmware mode you intended. (Microsoft Learn)

Use that check before you spend time on repair commands. If the media booted in the wrong mode, the rest of the repair can lead nowhere, because the installer and the disk format will not line up.

  1. Open the repair environment. Boot into Windows PE or the Windows Setup environment from your USB media. This is the point where the mode matters most, because the installer can start in either UEFI or BIOS.
  2. Check PEFirmwareType. In the recovery shell, query PEFirmwareType. If it returns 0x2, you are in UEFI mode. If it returns 0x1, you are in BIOS mode.
  3. Reboot if mismatched. If the mode does not match the disk layout or the intended repair, restart and pick the other boot entry from the menu. Do not keep repairing in the wrong mode.

When should I use MBR2GPT after a failed upgrade?

Use MBR2GPT only after Windows is already installed and you are converting a working installation from MBR to GPT. It is generally not the first repair step for corrupted UEFI variables, and it will not rebuild a missing boot entry by itself.

If the machine cannot boot because the firmware boot list broke, fix that first. If the installed system still runs in BIOS mode and you want to move it to UEFI later, MBR2GPT belongs in that later conversion step, after the system is stable enough to boot.

  1. Confirm the install status. Use MBR2GPT only when Windows is already present on the drive and the goal is conversion, not recovery from a broken firmware entry.
  2. Verify the mode target. Check whether the platform should move to UEFI so Secure Boot and GPT can be used. If the current setup media is only for repair, do not start with conversion.
  3. Convert after recovery. Repair the boot path first, then run MBR2GPT only if the installed system still needs to move from MBR to GPT. That keeps recovery separate from conversion.

Validation checklist

Before retrying setup or relying on the repaired boot path, confirm that the firmware state matches the intended install mode. The machine should stop looping into setup, show the right boot entry, and report the expected mode in repair tools.

  • UEFI Firmware settings opens from Troubleshoot > Advanced options or from the startup key.
  • Windows Boot Manager appears in the boot list on the internal drive.
  • PEFirmwareType returns 0x2 for UEFI or 0x1 for BIOS, as intended.
  • The USB installer boots as UEFI: USB Drive or BIOS: USB Drive on purpose, not by accident.
  • Secure Boot is in the state required for the media you are using.
  • The machine restarts past firmware setup instead of returning to it.

If those checks pass, retry Windows Setup in the matching mode. If they do not, go back to firmware defaults before changing anything inside Windows.

Keep reading

Frequently asked questions

How do I repair UEFI variable corruption after a failed Windows upgrade?

Reset the firmware boot list, restore the Windows Boot Manager entry, and confirm the machine boots in UEFI mode. If the firmware menu opens but the entries are blank, a default reset is safer than hand-editing variables. Only after the boot path is clean should you retry Windows Setup.

What UEFI settings can I reset after a Windows upgrade fails?

Reset the boot order, restore firmware defaults, and recheck Secure Boot status. If the system lost custom boot entries after rollback, reselect the internal drive as the first boot device. These changes address firmware state, which is separate from Windows file repair.

Should I use UEFI or legacy BIOS mode to recover Windows?

Use UEFI for modern Windows recovery unless the media or hardware only supports BIOS mode. UEFI is the preferred boot path, GPT is the matching disk format, and Secure Boot is part of that path. BIOS mode is mainly for older media or older hardware that cannot boot in UEFI.