How to Rebuild BCD [Commands & Best Practices]

Rebuilding BCD can help fix the Windows boot errors

by Madhuparna Roy
Madhuparna Roy
Madhuparna Roy
A diploma holder in computers and with a keen interest in technology, Madhuparna is passionate about writing How-to guides and helping people solve the most intricate Windows issues.... read more
Reviewed by Alex Serban
Alex Serban
Alex Serban
Windows Server & Networking Expert
After moving away from the corporate work-style, Alex has found rewards in a lifestyle of constant analysis, team coordination and pestering his colleagues. Holding an MCSA Windows Server... read more
Affiliate Disclosure
  • BCD or Boot Configuration Data is firmware-free database for boot-time configuration data by Microsoft that helps boot the OS installed on the PC. 
  • This information in the Windows runtime environment (contains details related to the installed OS and boot parameters0 tells the Windows boot loader where to look for boot information.
  • But sometimes, it can be missing or corrupted, and that's when you must rebuild BCD to fix the issue, using the bootrec command. 
boot configuration data

To fix various PC problems, we recommend Restoro PC Repair Tool:
This software will repair common computer errors, protect you from file loss, malware, hardware failure and optimize your PC for maximum performance. Fix PC issues and remove viruses now in 3 easy steps:

  1. Download Restoro PC Repair Tool that comes with Patented Technologies (patent available here).
  2. Click Start Scan to find Windows issues that could be causing PC problems.
  3. Click Repair All to fix issues affecting your computer's security and performance
  • Restoro has been downloaded by 0 readers this month.

You may need to rebuild BCD to fix any startup issues arising from missing or corrupted Windows boot configuration data (BCD), or when it’s not correctly configured.

While there are quite a few commands you can run to get the desired output, the bootrec command helps you to rebuild BCD easily and quickly. But, if your Windows 11 PC is not booting, you can follow our post to resolve it with the tested solutions as described.

How to rebuild BCD (Boot Configuration Data) in Windows?

Before you proceed to rebuild BCD, you need to boot your PC into Safe Mode in Windows 11, following any of the methods mentioned in our detailed post.

1. Additional Windows installations in BCD are found

  1. As your PC boots into safe mode, it will take you to the Choose an option screen. Here, click on Troubleshoot. choose an option
  2. On the next screen, click on Advanced options. advanced options
  3. Now, in the Advanced Options screen, click on Command Prompt. Command Prompt in Advanced options
  4. Type the below command, and hit Enter: bootrec /rebuildbcdbbotrec /rebuildbcd
  5. The bootrec command will now start looking up Windows installations not included in the BCD and then ask you if you’d like to add one or more to it.
  6. You should see one of the following messages at the command line:
    • Scanning all disks for Windows installations. Please wait, since this may take a while… Successfully scanned Windows installations. Total identified Windows installations: 0 The operation completed successfully.
    • Scanning all disks for Windows installations. Please wait, since this may take a while… Successfully scanned Windows installations. Total identified Windows installations: 1 [1] C:\Windows Add installation to boot list? Yes/No/All:
  7. If you see the first option, move on to the next section. It means that Windows installation data in the BCD store is present, but bootrec couldn’t locate any additional installations of Windows on your PC to add to the BCD.
  8. Now, type the attrib command and hit Enter: attrib c:\boot\bcd -h -r -srun attrib c:\boot\bcd -h -r -s command
  9. Execute the ren command to rename the BCD store: ren c:\boot\bcd bcd.oldrun ren c:\boot\bcd bcd.old command
  10. Now, run the below command to rebuild it, and hit Enter: bcdedit /export c:\bcdbackup run bcdedit /export c:\bcdbackup command
  11. Next, execute the below command to rebuild the BCD again, and hit Enter: bootrec /rebuildbcdrun bootrec /rebuildbcd enter
  12. You will now see the second result as shown in Step 6Add installation to boot list? question). Type Y (Yes) and hit Enter. Add installation to boot list?
  13. You should now see the success message below: The operation completed successfully.

2. Additional Windows installation in BCD not found

  1. After you follow Steps 1 through 6 in the above method, if you see result 2, then type Y to the Add installation to boot list? question. Add installation to boot list?
  2. Next, you would see the success message, The operation completed successfully, and a blinking cursor at the prompt.
  3. Since the BCD store exists and lists a Windows installation, you’ll delete it manually and then try to rebuild it again.
  4. Next, type the below command and hit Enter: bcdedit /export c:\bcdbackuprun bcdedit /export c:\bcdbackup enter

Once you see the success message, you have successfully built BCD on your Windows 11 and fixed the boot issue.

Note icon
Please note that you may need to choose your account name and input your password to open Command Prompt.

Which command in Windows RE can you use to rebuild the BCD file?

If rebuilding the BCD store doesn’t fix the startup issue, you can export and delete the BCD store and then use the Bootrec.exe tool.

This will help you completely rebuild the BCD store and resolve any boot issues. You can execute the following commands at the Windows Recovery Environment (RE) Command Prompt:

bcdedit /export C:\BCD_Backup


cd boot

Expert tip:


Some PC issues are hard to tackle, especially when it comes to corrupted repositories or missing Windows files. If you are having troubles fixing an error, your system may be partially broken.
We recommend installing Restoro, a tool that will scan your machine and identify what the fault is.
Click here to download and start repairing.

attrib bcd -s -h -r

ren c:\boot\bcd bcd.old

bootrec /RebuildBcd

You can also use these commands to rebuild the boot partition on Windows 11 easily. You can refer to our detailed guide for more information.

What does rebuilding BCD do?

Rebuilding the Boot Configuration Data (BCD) helps you find and fix missing and corrupted BCD store, and even repair it when it’s not properly configured.

For example, you can also rebuild BCD when bootrec is not recognized in Windows 11, as explained in our guide.

It basically recreates the bootloader configuration store and adds copies of Windows found on your PC to the BCD bootloader.

But if you are facing issues like Bootrec/Fixboot access is denied, follow the instructions in our manual to fix the error.

If you have any other queries related to rebuilding BCD, you can feel free to let us know in the comments box below.

Still having issues? Fix them with this tool:


If the advices above haven't solved your issue, your PC may experience deeper Windows problems. We recommend downloading this PC Repair tool (rated Great on to easily address them. After installation, simply click the Start Scan button and then press on Repair All.

This article covers:Topics: