How to Use Bootrec Fixmbr and Rebuildbcd in Windows 11

When Windows 11 fails to start due to corrupted boot records, missing configuration files, or blue screen errors during startup, the Bootrec tool provides a reliable way to repair the system. This guide explains how to access the Windows Recovery Environment and use the bootrec /fixmbr and bootrec /rebuildbcd commands to resolve boot failures and restore your operating system to working order.


Step 1: Access the Command Prompt in Windows Recovery Environment (WinRE)

To execute bootrec commands, you must open the Command Prompt outside of the standard Windows 11 environment.

  1. Boot from Installation Media: Insert a Windows 11 USB installation drive or DVD into your PC. Restart the computer and press the boot menu key (such as F12, F11, or Esc, depending on your motherboard) to boot from the USB.
  2. Open Setup: On the Windows Setup screen, select your language preferences and click Next.
  3. Select Repair: Click Repair your computer in the bottom-left corner.
  4. Navigate to Command Prompt: Go to Troubleshoot > Advanced options > Command Prompt.

(Alternative method: If you do not have installation media, turn on your PC and hold down the physical power button to force shutdown as soon as the Windows logo appears. Repeat this process two to three times until the Automatic Repair screen appears, then choose Advanced options > Troubleshoot > Advanced options > Command Prompt.)


Step 2: Use bootrec /fixmbr

The Master Boot Record (MBR) is responsible for pointing your computer’s BIOS or UEFI to the operating system. Even though modern Windows 11 installations typically use GPT partition styles, the bootrec /fixmbr command can repair the protective MBR and boot sector errors that prevent the hardware from locating the boot files.

  1. In the Command Prompt window, type the following command and press Enter:

    bootrec /fixmbr
  2. You should see the message: “The operation completed successfully.”


Step 3: Use bootrec /rebuildbcd

The Boot Configuration Data (BCD) store contains boot parameters and controls how the operating system starts. If the BCD file is corrupted or missing, Windows 11 cannot load.

  1. In the Command Prompt, type the following command and press Enter:

    bootrec /rebuildbcd
  2. The tool will scan your storage drives for Windows installations.

  3. Once the scan finishes, one of two scenarios will occur:

    • If a Windows installation is found: The prompt will ask: “Add installation to boot list? Yes(Y)/No(N)/All(A):”. Type Y and press Enter.
    • If 0 installations are found: The existing BCD store must be cleared and rebuilt manually (see Step 4).

Step 4: Rebuilding BCD Manually (If 0 Installations Are Detected)

If bootrec /rebuildbcd fails to detect your installation, the BCD file may be locked or severely damaged. Run these commands sequentially to remove the old BCD attributes and rebuild it:

  1. Remove the file attributes from the existing BCD file:

    attrib c:\boot\bcd -h -r -s

    (Note: If your system partition is on another drive letter like d:, replace c: accordingly.)

  2. Rename the old BCD store:

    ren c:\boot\bcd bcd.old
  3. Re-run the rebuild command:

    bootrec /rebuildbcd
  4. When prompted to add the installation to the boot list, type Y and press Enter.


Step 5: Finalize and Restart

  1. Close the Command Prompt window by typing:

    exit
  2. Click Continue (Exit and continue to Windows 11) or restart your PC.

  3. Remove the USB installation media to ensure the PC boots from the local drive.