BCDBOOT.exe

Set up a system partition, repair the boot environment located on the system partition. BCDBoot can create a Boot Configuration Data (BCD) store on the system partition using the latest version of the Windows files.

Syntax
      BCDBOOT source [/l locale] [/s volume-letter [/f firmware]] [/v]
         [/vbcd] [/m [{OS_Loader_GUID}]] [/addlast] [/p] [/bcdclean [full]] [/c]

Options

   source  The location of the Windows directory to use as the source for
           copying boot-environment files.

   /l      The locale to use when initialising the BCD store. default = US English.

   /s      Optional. Specifies the volume letter of the system partition.
           This option should not be used in typical deployment scenarios.
           Use this setting to specify a system partition when you are configuring a drive that will
           be booted on another computer, such as a USB flash drive or a secondary hard drive.
           The default is the system partition identified by the firmware.

   /v      Enable verbose mode.

   /vbcd   Enable BCD Logging.

   /m      If an OS_Loader_GUID is specified, merge the given loader object within
           the system template to produce a bootable entry.
           Otherwise, by default, merge only global objects.

   /d      Preserve the existing default Windows Boot entry.

   /f      Used with /S, specifies the firmware type of the target system partition
           Options for firmware are 'UEFI', 'BIOS', or 'ALL'

           If you specify 'ALL', BCDBoot will create both the \Boot and the \Efi\Microsoft\Boot
           directories, and will copy all required boot-environment files for BIOS and UEFI.

  /addlast  Specifies that the Windows Boot Manager firmware entry should be added last.
           The default behavior is to add it first. Cannot be used with /p.

  /bcdclean Clean the BCD Store. By default, simply removes any duplicate entries in
           the BCD. Can be followed by 'full'. In this case, each entry is scanned
           If the corresponding device for that entry does not exist, the entry is deleted.

   /p      Specifies that the existing Windows Boot Manager firmware entry position should be
           preserved in the UEFI boot order. If the entry does not exist, a new entry is
           added in the first position. Cannot be used with /addlast.

           By default, during an upgrade BCDBoot moves the Windows Boot Manager to be
           the first entry in the UEFI boot order.

   /c      Specifies that any existing BCD elements should not be migrated.
           By default, during an upgrade, BCD elements such as debugsettings or flightsigning are preserved.

BCDboot can also be run from Windows PE (Preinstallation Environment).

Examples

Initialize the system partition by using BCD files from the C:\Windows folder:

C:\> bcdboot C:\Windows

Set the default BCD locale to Japanese, and copy BCD (Boot Configuration Data) files to drive S:

C:\> bcdboot C:\Windows /l ja-jp /s S:

Merge the OS loader in the current BCD store identified with the given GUID in the new BCD store:

C:\> bcdboot c:\windows /m {d58d10c6-df53-11dc-878f-00064f4f4e08}

“When all the world is young, lad, / And all the trees are green / And every goose a swan, lad / And every lass a queen / Then hey for boot and horse, lad, / And round the world away / Young blood must have its course, lad, / And every dog his day” - Charles Kingsley

Related commands:

BCDEDIT - Manage Boot Configuration Data.
FSUTIL - File and Volume utilities.


 
Copyright © 1999-2021 SS64.com
Some rights reserved