Skip to content

Windows BCDBOOT command

The Windows bcdboot command is a powerful tool used to manage the boot configuration data (BCD) for Windows operating systems. This command allows users to create, repair, or update the BCD store, which is essential for the system to boot properly. By using bcdboot, users can add boot entries, specify the boot partition, and set boot configuration options. This command is particularly useful in situations where the boot configuration is corrupted or missing, resulting in startup issues. With bcdboot, users can restore the BCD store and fix boot problems, ensuring the system can boot successfully. Additionally, bcdboot can be used to configure multiple boot options for dual-boot or multi-boot setups, allowing users to choose which operating system to boot into. Overall, the Windows bcdboot command is a crucial tool for managing the boot process and ensuring the proper functioning of Windows operating systems.

BCDBOOT Syntax:

Terminal window
bcdboot <source> [/l <locale>] [/s <volume>] [/t <firmware>] [/v] [/m [{ALL | <ID>}]] [/p] [/d] [/f {<FirmwareType[,...]>}] [/copy {BOOTMGR | NTLDR | <File>}] [/addlast] [/device <Device>] [/quiet] [/createramdisk <SizeInMB>]

Options:

OptionDescription
/lSets the locale for the system.
/sSpecifies the system partition where boot files will be copied.
/tSets the firmware type to be used.
/vProvides verbose output.
/mSpecifies the update options to apply to the BCD store.
/pPolishes the BCD store for the firmware type.
/dRestores the default system partition letter.
/fSpecifies the firmware type for the boot files.
/copyCopies a valid existing boot manager file to the system partition.
/addlastForces the BCD store update to be the last step.
/deviceSpecifies the device on which to update the BCD store.
/quietSuppresses all output except for errors.
/createramdiskCreates a ramdisk for the new boot files and specifies its size in megabytes.

Parameters:

ParameterDescription
Specifies the location of the Windows directory to use as the source for copying boot environment files.
Specifies the locale to use for the boot configuration data.
Specifies the system partition or the EFI system partition where boot files will be copied.
Specifies the firmware type to be used.
ALLSpecifies that settings should be applied to all firmware types.
Specifies only the specified firmware type to be updated.
<FirmwareType[,…]>Specifies one or more firmware types for the boot files.
BOOTMGRSpecifies to copy BOOTMGR from the source.
NTLDRSpecifies to copy NTLDR from the source.
Specifies a specific file to copy from the source.
Specifies the device to update with new boot files.
Specifies the size of the RAM disk in megabytes.

BCDBOOT Usage:

Create a new BCD store on a system partition

Terminal window
bcdboot C:\Windows /s C:

Creates a new Boot Configuration Data (BCD) store on the system partition.

Repair the BCD store using a specified source

Terminal window
bcdboot D:\Windows /s C:

Repairs the BCD store on the C: drive by using the Windows installation files located in the D:\Windows directory.

Copy boot files to the EFI System Partition

Terminal window
bcdboot C:\Windows /s Z: /f UEFI

Copies necessary boot files from C:\Windows to the EFI System Partition (ESP) on drive Z: in UEFI mode.

Set the store option for a particular target operating system

Terminal window
bcdboot C:\Windows /s C: /f BIOS /t Windows

Sets the BCD store option for the target Windows operating system to boot in BIOS mode.

How do I use bcdboot in CMD?

To use the bcdboot command in CMD, execute the following command:

Terminal window
bcdboot C:\windows

What is the purpose of the bcdboot command?

The bcdboot command is used to quickly set up a system partition, boot configuration data (BCD), and boot files on a currently running Windows OS partition.

Can I use bcdboot to repair the boot environment?

Yes, bcdboot can be used to repair the boot environment by recreating the system partition, including the Windows boot files and BCD store.

Terminal window
bcdboot C:\windows /s C:

How do I specify the target location when using bcdboot?

When using bcdboot, you can specify the target location by providing the path to the Windows directory or partition where the boot files should be copied. Below is an example:

Terminal window
bcdboot D:\windows

Is it possible to set the boot configuration data store with bcdboot?

Yes, you can set the BCD store location by using the /m parameter in the bcdboot command. Here is an example:

Terminal window
bcdboot X:\windows /m {bootmgr}

Can bcdboot be used to change the default boot entry?

Yes, you can use bcdboot to change the default boot entry by specifying it with the /default parameter. For instance:

Terminal window
bcdboot C:\windows /s C: /f UEFI /v /l en-US /default {current}

How can I view the current boot configuration settings with bcdboot?

To view the current boot configuration settings, you can use the /enum option with bcdboot. Running the following command will display the current BCD settings:

Terminal window
bcdboot /enum

##Applications of the BCDBOOT Command

  1. Create or repair a boot partition.
  2. Configure the boot configuration data (BCD).
  3. Set up or repair the boot environment for Windows installations.
  4. Update the boot files on the system partition.
  5. Rebuild the Boot Configuration Data store.