Thursday, February 19, 2009

Edit Boot configuration : BCDEDIT

Boot configuration in Windows XP can be modified my editing the boot.ini file. Since Windows Vista, followed by Windows 7 and Windows Server 2008 there aren’t any boot.ini file, it’s being replaced by BCDEDIT options.

BCDEDIT is a command line utility that lets you modify the Boot configuration from an elevated command prompt. bcdedit /? will show all the possible options.

bcdedit /enum will enumerate all the current boot options

Before editing the boot settings EXPORT your boot settings, just in case you want to revert back the changes.

bcdedit /export <path>

<path> is the file system path where you want to save your back-up.

Importing the settings can be done by using /import switch

Create a new boot entry:

bcdedit /copy {current} /d “Windows 7”

A new entry would be created, make sure you copy the GUID displayed or you can get it back from /enum

C:\Windows>bcdedit /copy {current} /d "Windows Seven"
The entry was successfully copied to {abaf4cf1-d937-11dd-b0dc-a58f6476c5bd}

Editing the partition to boot:

C:\Windows>bcdedit /set {abaf4cf0-d937-11dd-b0dc-a58f6476c5bd} systemroot \Windows7

\Windows7 is the partition where my Windows 7 files are located.

If you are craving why isn’t there a UI, well, here is your answer. After creating an entry this would show up in msconfig tool and you can do the rest of the settings via the msconfig tool.

In Run or Start menu search box, type msconfig, to launch the msconfig tool.

image

Now, you can change the timeout before boot, Set a default partition etc.

del.icio.us Tags:

Technorati Tags:

No comments:

Post a Comment