Home

 

Standard Application Objects

Boot Applications

BCDEdit ID

Description

GUID

Windows Boot Manager

{bootmgr}

Display a boot selection menu to the uer

9dea862c-5cdd-4e70-acc1-f32b344d4795

Firmware Boot Manager

{fwbootmgr}

Applies only to EFI systems

a5a30fa2-3d06-4e9f-b5f4-a01df9d1fcba

Windows Memory Tester

{memdiag}

A memory diagnostics application

b2721d73-1db4-4c62-bf78-c548a880142d

Windows Resume Application

No alias

Restores Windows to its running state when a computer resumes from hibernation

147aa509-0358-4473-b83b-d950dda00615

Legacy Windows Loader

{ntldr}

Load Windows XP/2003

466f5a88-0af2-4f76-9038-095b170dc21c

Current boot entry

{current}

When an OS is booted, the associated boot loader object is represented by the alias {current}

fa926493-6f1c-4193-a414-58f0b2456d1e

Default boot entry

{default}

The default boot loader object has the alias {default}

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Only Windows 7 is installed onto C drive.

  C:\Users\administrator>bcdedit

  Windows Boot Manager

--------------------

identifier                                                  {bootmgr}

device                                      partition=\Device\HarddiskVolume2

description                               Windows Boot Manager

locale                                       en-US

inherit                                      {globalsettings}

default                                     {current}

resumeobject                                           {4b445260-8b43-11de-be9c-a2cf71fb05e1}

displayorder                                            {current}

toolsdisplayorder                                     {memdiag}

timeout                                    20

 

Windows Boot Loader

-------------------

identifier                                  {current}

device                                      partition=C:

path                                         \Windows\system32\winload.exe

description                               Windows 7

locale                                       en-US

inherit                                      {bootloadersettings}

recoverysequence                    {4b445262-8b43-11de-be9c-a2cf71fb05e1}

recoveryenabled                                      Yes

osdevice                                  partition=C:

systemroot                               \Windows

resumeobject                                           {4b445260-8b43-11de-be9c-a2cf71fb05e1}

nx                                            OptIn

 

C:\Users\administrator>

 


How to create a boot menu?

 

Assuming you has installed Windows XP Professional on E drive.

 

bcdedit /create {ntldr} /d "Legacy OS Loader"

 

bcdedit /displayorder {ntldr} /addlast

bcdedit /set {ntldr} description "Windows XP Professional"

bcdedit /set {ntldr} device partition=e:

bcdedit /set {ntldr} path "\ntldr"

 

You want to show the memory diagnostics utility.

 

bcdedit /displayorder {memdiag} /addlast

 

C:\Users\administrator>bcdedit

 

Windows Boot Manager

--------------------

identifier                     {bootmgr}

device                          partition=\Device\HarddiskVolume2

description                  Windows Boot Manager

locale                           en-US

inherit                          {globalsettings}

default                         {current}

resumeobject               {4b445260-8b43-11de-be9c-a2cf71fb05e1}

displayorder                {current}

                                    {ntldr}

                                    {memdiag}

toolsdisplayorder       {memdiag}

timeout                        20

 

Windows Boot Loader

-------------------

identifier                     {current}

device                           partition=C:

path                             \Windows\system32\winload.exe

description                  Windows 7

locale                           en-US

inherit                          {bootloadersettings}

recoverysequence        {4b445262-8b43-11de-be9c-a2cf71fb05e1}

recoveryenabled         Yes

osdevice                       partition=C:

systemroot                   \Windows

resumeobject               {4b445260-8b43-11de-be9c-a2cf71fb05e1}

nx                                OptIn

 

Windows Legacy OS Loader

------------------------

identifier                     {ntldr}

device                          partition=E:

path                             \ntldr

description                  Windows XP Professional

 

Windows Memory Tester

---------------------

identifier                     {memdiag}

device                          partition=\Device\HarddiskVolume2

path                             \boot\memtest.exe

description                  Windows Memory Diagnostic

locale                           en-US

inherit                          {globalsettings}

badmemoryaccess        Yes

 

C:\Users\administrator>

 

 

Creates an additional Windows 7 boot entry

 

This allows a user, for example, to have separate normal and debug configurations for the same version of the operating system.

 

bcdedit /copy {current} /d "Windows 7 with debug configurations"

The entry was successfully copied to {4b44526a-8b43-11de-be9c-a2cf71fb05e1}.

 

Bcdedit /set {4b44526a-8b43-11de-be9c-a2cf71fb05e1} device partition=C:

Bcdedit /set {4b44526a-8b43-11de-be9c-a2cf71fb05e1} osdevice partition=C:

 

bcdedit /debug {4b44526a-8b43-11de-be9c-a2cf71fb05e1} on

bcdedit /set {4b44526a-8b43-11de-be9c-a2cf71fb05e1} nx "Optout"

 

 

Bcdedit /displayorder {4b44526a-8b43-11de-be9c-a2cf71fb05e1}  /addlast

 

C:\Users\administrator>bcdedit

 

Windows Boot Manager

--------------------

identifier                                {bootmgr}

device                                    partition=\Device\HarddiskVolume2

description                            Windows Boot Manager

locale                                     en-US

inherit                                     {globalsettings}

default                   {current}

resumeobject                        {4b445260-8b43-11de-be9c-a2cf71fb05e1}

displayorder                          {current}

                                                {ntldr}

                                                {memdiag}

                                                {4b44526a-8b43-11de-be9c-a2cf71fb05e1}

toolsdisplayorder                 {memdiag}

timeout                 20

 

Windows Boot Loader

-------------------

identifier                                {current}

device                                     partition=C:

path                                        \Windows\system32\winload.exe

description                            Windows 7

locale                                     en-US

inherit                                     {bootloadersettings}

recoverysequence                {4b445262-8b43-11de-be9c-a2cf71fb05e1}

recoveryenabled                  Yes

osdevice                                partition=C:

systemroot                            \Windows

resumeobject                        {4b445260-8b43-11de-be9c-a2cf71fb05e1}

nx                                           OptIn

 

Windows Legacy OS Loader

------------------------

identifier                                {ntldr}

device                                    partition=E:

path                                        \ntldr

description                            Windows XP Professional

 

Windows Memory Tester

---------------------

identifier                                {memdiag}

device                                    partition=\Device\HarddiskVolume2

path                                        \boot\memtest.exe

description                            Windows Memory Diagnostic

locale                                     en-US

inherit                                     {globalsettings}

badmemoryaccess              Yes

 

Windows Boot Loader

-------------------

identifier                                {4b44526a-8b43-11de-be9c-a2cf71fb05e1}

device                                    partition=C:

path                                        \Windows\system32\winload.exe

description                            Windows 7 With debug configurations

locale                                     en-US

inherit                                     {bootloadersettings}

recoverysequence                {4b445262-8b43-11de-be9c-a2cf71fb05e1}

recoveryenabled                  Yes

osdevice                                partition=C:

systemroot                             \Windows

resumeobject                        {4b445260-8b43-11de-be9c-a2cf71fb05e1}

nx                                           OptOut

debug                                     Yes

 

C:\Users\administrator>

 

 

nx [Optin |OptOut | AlwaysOn |AlwaysOff]

Optin

Enables DEP (Data Execution Prevention) only for operating system components, including the Windows kernel and drivers. Administrators can enable DEP on selected executable files by using the Application Compatibility Toolkit (ACT).

Optout

Enables DEP for the operating system and all processes, including the Windows kernel and drivers. However, administrators can disable DEP on selected executable files by using System in Control Panel.

AlwaysOn

Enables DEP for the operating system and all processes, including the Windows kernel and drivers. All attempts to disable DEP are ignored.

AlwaysOff

Disables DEP. Attempts to enable DEP selectively are ignored.

On Windows Vista, this parameter also disables Physical Address Extension (PAE). This parameter does not disable PAE on Windows Server 2008.

 

 

Create an entry to boot a WIM image from hard disk C:, which has the Windows 7 OS.

 

Copy PE from CD to C drive, first

 

BCDEDIT /create {ramdiskoptions} /d "ramdisk options"

bcdedit /set {ramdiskoptions} ramdisksdidevice partition=C:

bcdedit /set {ramdiskoptions} ramdisksdipath \boot\boot.sdi

bcdedit /create /d "Boot from WIM" /application OSLOADER

The entry {08408e63-86cc-11de-9489-d4df34687acd} was successfully created.

 

bcdedit /set {08408e63-86cc-11de-9489-d4df34687acd} device ramdisk=[c:]\sources\boot.wim, {ramdiskoptions}

bcdedit /set {08408e63-86cc-11de-9489-d4df34687acd} path \windows\system32\winload.exe

bcdedit /set {08408e63-86cc-11de-9489-d4df34687acd} osdevice ramdisk=[c:]\sources\boot.wim, {ramdiskoptions}

bcdedit /set {08408e63-86cc-11de-9489-d4df34687acd} systemroot\windows

bcdedit /set {08408e63-86cc-11de-9489-d4df34687acd} winpe yes

bcdedit /set {08408e63-86cc-11de-9489-d4df34687acd} detecthal yes

bcdedit /displayorder {08408e63-86cc-11de-9489-d4df34687acd} /addlast

 

 

 

Remember to change the GUID accordingly.