If you are unable to boot into your Windows 7/8/10 operating system due to corrupted Boot Configuration Data (BCD) file or your boot menu is not showing all the installed operating systems, you need to repair the BCD config file.
In case your Boot Configuration Data file has been already corrupted, this article will help you to repair it by using the appropriate commands.
Which command is used to repair the BCD file?
If you face a corrupted BCD file or your boot menu is not showing all the installed operating systems, you need to rebuild it. The bcdboot command is used to manage system partition files and repair the boot environment located on the system partition.
When executed with proper command-line switches, the bcdboot command copies a small set of boot-environment files from the installed Windows image to the system partition. Then it creates a Boot Configuration Data (BCD) file stored on the system partition that instructs the computer to boot to the Windows partition. You can also use the command to update an existing boot environment on the system partition.
How to repair a corrupted Boot Configuration Data file?
- To rebuild the BCD, run the following command in an elevated command prompt:
bcdboot C:\Windows
- To rebuild the BCD in your locale language, enter the optional parameter "/l <locale>" as:
bcdboot C:\Windows /l ja-jp
' default is US English ("en-us")
To know more about this command, checkout the BCDboot Command-Line Options topic in the Microsoft Docs.