In this article, we will be fixing the below issue in Windows Server 2012.

The Boot Configuration Data for your PC is missing or contains errors.


We have a Windows Server 2012 Virtual Machine, We have tried to Extend the Operating System Partition (Active Partition) that extended properly. but unfortunately, after the first restart, we got the below error:

The Boot Configuration Data for your PC is missing or contains errors.
Cause Extending the Operating System Active Partition may damage the Boot\BCD file.

What's Boot Configuration Data?

The Boot Configuration Data (BCD) is a firmware-independent database for boot-time configuration data. It is used as new Windows Boot Manager. it replaces the "boot.ini" file that was used in the old Operating System. For more details check Windows startup process.


We have two options to solve this issue:

  1. Run Startup Repair.
  2. Rebuild the BCD file via the Bootrec.exe tool.

Run Startup Repair


  • Power off the VM.
  •  From left side, go to VM Settings >Hardware tab >  CD/DVD > Browse.
  • Locate the Windows Server 2012 R2 media (ISO/DVD). 
    • Note: It should be the same Windows Version that already installed.
  • Set the default boot device to CD/DVD as the following:
    • Power on VM > Press F2 to open Bios Setup > Boot Menu  > Select CD-ROM Drive and Press + to go up and - to go down.
    • Press F10 to save and exit.
  • The VM will be rebooted with the default option CD/DVD.
  • Press any key to boot from the CD/DVD. 
  • At the Windows Setup Dialog, set your appropriate settings > click Next.
  • Click Repair your Computer >  Troubleshoot > Command Prompt.
  • Navigate to the recovery folder by typing cd recovery > press Enter.
  • Run Startup repair by typing startrep.exe.
  • Wait until the repair finished.

Unfortunately, in this case, the startup repair couldn't repair the issue! so we will try to Rebuild the BCD file via the Bootrec.exe tool.

Rebuild the BCD file via the Bootrec.exe Tool

What's the Bootrec Tool?

  • The Bootrec tool is the ultimate repair tool for boot problems in Windows.
  • The Bootrec tool supports the following options. 
    • /FixMbr
      • This option writes MBR to the system partition. It does not overwrite the existing partition table. 
      • Use this option when you must resolve MBR corruption issues, or when you have to remove the non-standard code from the MBR.
    • /FixBoot
      • This option writes a new boot sector to the system partition by using a boot sector that’s compatible with Windows.
      • Use this option if one of the following conditions is true:
        • The boot sector was replaced with a non-standard Windows boot sector.
        • The boot sector is damaged.
      • /ScanOs
        • This option scans all disks for installations that are compatible with Windows.
        • It also displays the entries that are currently not in the BCD store.
        • Use this option when there are Windows installations that the Boot Manager menu does not list.
      • /RebuildBcd
        • This option scans all disks for installations that are compatible with Windows. 
        • Additionally, it lets you select the installations that you want to add to the BCD store. 
        • Use this option when you must completely rebuild the BCD store.
        Read more at Use Bootrec.exe in the Windows RE to troubleshoot startup issues.
In our case, we will use /RebuildBcd to rebuild the Bcd file by doing the following: 


  • Again, click Repair your Computer >  Troubleshoot > Command Prompt.
  • Type the below command to rebuild he Bcd file.
 bootrec /RebuildBcd
  • Once the operation completed successfully > close the command prompt.
  • Click Continue to Exit and continue to Windows Server 2012.
  • The Bcd file should be now rebuilt and the Windows should be working properly.


In this article:

  • We have fixed The Boot Configuration Data for your PC is missing or contains errors Issue.
  • We also explored

    • What's the Boot Configuration Data File?
    • What's the Bootrec Tool?


See Also

Back To Top