How to use bcdedit in windows 7

May 13th, 2009

Boot Configuration Data (BCD) files provide a store that is used to describe boot applications and boot application settings. The objects and elements in the store effectively replace Boot.ini.

BCDEdit is a command-line tool for managing BCD stores. It can be used for a variety of purposes, including creating new stores, modifying existing stores, adding boot menu parameters, and so on. BCDEdit serves essentially the same purpose as Bootcfg.exe on earlier versions of Windows, but with two major improvements:

  • Exposes a wider range of boot parameters than Bootcfg.exe.
  • Has improved scripting support.

Below will give you a simple instruction about how to use bcdedit in windows 7.

1.Go to Start Menu-All Programs-Accessories,then right-click Command Prompt and select Run As Administrator,because Administrative privileges are required to use BCDEdit to modify BCD


2.Type bcdedit and press enter ,then bcdedit will show the boot entries on your computer

bcdedit3.You can run bcdedit /? to see the manual of command bcdedit

C:\windows\system32>bcdedit /?
BCDEDIT - Boot Configuration Data Store Editor
The Bcdedit.exe command-line tool modifies the boot configuration data store.
The boot configuration data store contains boot configuration parameters and
controls how the operating system is booted. These parameters were previously
in the Boot.ini file (in BIOS-based operating systems) or in the nonvolatile
RAM entries (in Extensible Firmware Interface-based operating systems). You can
use Bcdedit.exe to add, delete, edit, and append entries in the boot
configuration data store.
For detailed command and option information, type bcdedit.exe /? <command>. For
example, to display detailed information about the /createstore command, type:
bcdedit.exe /? /createstore
For an alphabetical list of topics in this help file, run "bcdedit /? TOPICS".
Commands that operate on a store
/createstore    Creates a new and empty boot configuration data store.
/export         Exports the contents of the system store to a file. This file
can be used later to restore the state of the system store.
/import         Restores the state of the system store using a backup file
created with the /export command.
/sysstore       Sets the system store device (only affects EFI systems, does
not persist across reboots, and is only used in cases where
the system store device is ambiguous).
Commands that operate on entries in a store
/copy           Makes copies of entries in the store.
/create         Creates new entries in the store.
/delete         Deletes entries from the store.
/mirror         Creates mirror of entries in the store.
Run bcdedit /? ID for information about identifiers used by these commands.
Commands that operate on entry options
/deletevalue    Deletes entry options from the store.
/set            Sets entry option values in the store.
Run bcdedit /? TYPES for a list of datatypes used by these commands.
Run bcdedit /? FORMATS for a list of valid data formats.
Commands that control output
/enum           Lists entries in the store.
/v              Command-line option that displays entry identifiers in full,
rather than using names for well-known identifiers.
Use /v by itself as a command to display entry identifiers
in full for the ACTIVE type.
Running "bcdedit" by itself is equivalent to running "bcdedit /enum ACTIVE".
Commands that control the boot manager
/bootsequence   Sets the one-time boot sequence for the boot manager.
/default        Sets the default entry that the boot manager will use.
/displayorder   Sets the order in which the boot manager displays the
multiboot menu.
/timeout        Sets the boot manager time-out value.
/toolsdisplayorder  Sets the order in which the boot manager displays
the tools menu.
Commands that control Emergency Management Services for a boot application
/bootems        Enables or disables Emergency Management Services
for a boot application.
/ems            Enables or disables Emergency Management Services for an
operating system entry.
/emssettings    Sets the global Emergency Management Services parameters.
Command that control debugging
/bootdebug      Enables or disables boot debugging for a boot application.
/dbgsettings    Sets the global debugger parameters.
/debug          Enables or disables kernel debugging for an operating system
/hypervisorsettings  Sets the hypervisor parameters.

4.How to changes the title of the boot menu entry.The following command change the title to Windows XP from “Earlier Windows Version”

C:\windows\system32>bcdedit /set {ntldr} description "Windows XP"
The operation completed successfully.

5.How to change the timeout on showing boot menu

C:\windows\system32>bcdedit /timeout 5
The operation completed successfully.

6.How to change the default OS to boot first with

C:\windows\system32>bcdedit /default {ntldr}
The operation completed successfully.

7.How to delete earlier version of windows eg: Windows xp from windows 7 boot loader

C:\windows\system32>bcdedit /delete {ntldr} /f
The operation completed successfully.

8.How remove linux / ubuntu entry from windows 7 boot loader

C:\windows\system32>bcdedit /delete {identifier}

Note:You can find the identifier of ubuntu from the output of bcdedit,refer above screenshot
9.Add windows xp to windows 7 boot loader using bcdedit

bcdedit /create {ntldr} /d "Windows XP"
bcdedit /set {ntldr} device partition=D:
bcdedit /set {ntldr} path \ntldr
bcdedit /displayorder {ntldr} /addlast

Note:This example assumes your installed xp on Drive D: ,also if you installed windows xp after windows 7 ,you need to repair your boot loader of windows 7 first

26 Responses to “How to use bcdedit in windows 7”

  1. larry g. jones says:

    I use win7 64 bit.

  2. Laurindo says:

    Thank you! Now I know how to edit bcdedit without installing any third part softwares.

  3. Yash says:

    Helped a lot and worked! Thx!!!

  4. FER says:

    Thank you very much! That was easy 🙂

  5. imran says:

    how to remove the entry of linux from the dual boot system

  6. samy007 says:

    thank you very very very much

  7. gmafb says:

    wow you can read for us thanks

  8. Ray says:

    How do I run bcdedit if I cannot start windows 7? I changed the processor number to 4 and the PC won’t boot now. I am sure if I remove the entry it will boot OK. Can I run it from a bootdisk or ubcd?

  9. jefferson olvla sliav says:

    oi April 12,2011 at 3;1

  10. Gulshan says:

    hello canu help me i want to delete the name earlier version of windows . please help me please thank you

  11. says:


  12. športna trgovina says:

    Thanks I could change the timeout to 1 second…

  13. […] your windows 7 dual boot with windows xp or ubuntu and you want to remove xp or ubuntu now,you can use bcdedit to remove xp or ubuntu from boot loader of windows 7,then remove the OS folders even format the […]

  14. Indranil Jana says:

    Thank you very much, I’m really grateful to you.

  15. Riva Gupta says:

    I have 3 Logical disks each of 100GB.I want to add Windows Server 2008 Standard edition as my second operating system which is installed on the second disk. How can I add that using bcdedit.
    My first operating system is Windows server 2008 Enterprise Edition.

  16. tadomika says:

    I installed Windows starter N on my netbook (in D:) where there were already a version of Windows starter (in C). I wanted to delete Windows starter N and I erased all D…now I have to delete the string in the file boot.ini but i can’t do it…can you help me????

  17. […] you can use bcdedit command to verify the boot info is correct,if it’s wrong,step 12 will fix […]

  18. DraftyBeer says:

    I can’t get the BCDEDIT to change description Windows to Windows 7 Home Premium or Windows 7.

    I’m trying to reinstall Windows 7 from the partition.I’ve done it before.
    I go to F8 select computer repair and the screen has
    partition 3

    I looked up 2672dedf in the regedit it is

    Maybe you can see if the BCDEDIT /enum all is correct

    Microsoft Windows [Version 6.1.7601]
    Copyright (c) 2009 Microsoft Corporation. All rights reserved.

    C:\Windows\system32>bcdedit /enum all

    Windows Boot Manager
    identifier {bootmgr}
    device partition=\Device\HarddiskVolume2
    description Windows Boot Manager
    locale en-us
    inherit {globalsettings}
    default {current}
    resumeobject {821c31b5-e7c8-11df-8eaa-d473d3e00b07}
    displayorder {current}
    toolsdisplayorder {memdiag}
    timeout 0

    Windows Boot Loader
    identifier {current}
    device partition=C:
    path \Windows\system32\winload.exe
    description Windows 7
    locale en-us
    inherit {bootloadersettings}
    recoverysequence {821c31b7-e7c8-11df-8eaa-d473d3e00b07}
    recoveryenabled Yes
    optionsedit Yes
    osdevice partition=C:
    systemroot \Windows
    resumeobject {821c31b5-e7c8-11df-8eaa-d473d3e00b07}
    nx OptIn
    bootstatuspolicy IgnoreShutdownFailures

    Windows Boot Loader
    identifier {821c31b7-e7c8-11df-8eaa-d473d3e00b07}
    device ramdisk=[\Device\HarddiskVolume2]\Recovery\WindowsRE\Win
    path \windows\system32\winload.exe
    description Windows Recovery Environment
    inherit {bootloadersettings}
    osdevice ramdisk=[\Device\HarddiskVolume2]\Recovery\WindowsRE\Win
    systemroot \windows
    nx OptIn
    winpe Yes

    Resume from Hibernate
    identifier {821c31b5-e7c8-11df-8eaa-d473d3e00b07}
    device partition=C:
    path \Windows\system32\winresume.exe
    description Windows Resume Application
    locale en-US
    inherit {resumeloadersettings}
    filedevice partition=C:
    filepath \hiberfil.sys
    debugoptionenabled No

    Windows Memory Tester
    identifier {memdiag}
    device partition=\Device\HarddiskVolume2
    path \boot\memtest.exe
    description Windows Memory Diagnostic
    locale en-US
    inherit {globalsettings}
    badmemoryaccess Yes

    EMS Settings
    identifier {emssettings}
    bootems Yes

    Debugger Settings
    identifier {dbgsettings}
    debugtype Serial
    debugport 1
    baudrate 115200

    RAM Defects
    identifier {badmemory}

    Global Settings
    identifier {globalsettings}
    inherit {dbgsettings}

    Boot Loader Settings
    identifier {bootloadersettings}
    inherit {globalsettings}

    Hypervisor Settings
    identifier {hypervisorsettings}
    hypervisordebugtype Serial
    hypervisordebugport 1
    hypervisorbaudrate 115200

    Resume Loader Settings
    identifier {resumeloadersettings}
    inherit {globalsettings}

    Device options
    identifier {821c31b8-e7c8-11df-8eaa-d473d3e00b07}
    description Ramdisk Options
    ramdisksdidevice partition=\Device\HarddiskVolume2
    ramdisksdipath \Recovery\WindowsRE\boot.sdi


  19. Gary says:

    Just reloaed Win7 64bit on mt C partition and the bcdedit does not work now. I check it and I have the correct commands, I have XP on my D parititon and when I pick XP the systems reboots. Tried to load Win7 on the C partition it adds a extra setting to boot list.


  20. […] BCDEdit (Boot Configuration Data Editor) […]

  21. attraction marketing says:

    I am now not positive the place you’re getting your info, but good topic. I must spend some time learning more or understanding more. Thanks for great info I used to be on the lookout for this information for my mission.

  22. shashank says:

    i m getting
    c:\windows\system32> not c:\windows\system32&gt:
    what to do now

  23. Johnb842 says:

    Spot on with this writeup, I actually believe this website needs a great deal more attention. Ill probably be returning to read through more, thanks for the info! cdkggggggakc

  24. Samir Yadav says:

    Its work perfectly…. Simply great….(^_^)(^_^)(^_^)(^_^)(^_^)

  25. […] BCDEdit (Boot Configuration Data Editor) […]

Leave a Reply