exe (but it??™s not
brain surgery), so unless you have a strict requirement to code
directly, you should stick with BCDEdit.exe whenever possible.
18 Microsoft Windows Server 2008 Administration
The most common changes most administrators will make to the BCD will be around
the Windows Boot Manager, since that controls the boot sequence, default Windows
loader, display order, and timeout before the default selection is made. The help messages
give you all the information you??™ll ever need, but it??™s much easier to understand
this command by looking at some simple examples.
Modifying the Boot Sequence You can do four things with the /bootsequence switch:
?–? List the identifiers for each loader in the order in which you want the boot
sequence to appear.
?– Add a loader to the top of the list, or if it??™s already on the list, move it to the top.
?– Add a loader to the bottom of the list, or if it??™s already on the list, move it to the
bottom.
?–? Remove a loader from the list completely.
Figure 1-11. Output of BCDEdit /enum command
19 Chapter 1: Getting Started with Windows Server 2008
The following example shows how you would define the boot sequence explicitly
with the NT Loader booting first, followed by the OS Loader with the identifier
{0f732d04-e6b2-11da-b631-b722247cd703} (which in this case is an instance of
Windows Server 2008):
Bcdedit /bootsequence {ntldr} {0f732d04-e6b2-11da-b631-b722247cd703}
The example shown here demonstrates how to add or move the OS loader with the identifier
{0f732d04-e6b2-11da-b631-b722247cd703} to the top of the boot sequence:
Bcdedit /bootsequence {0f732d04-e6b2-11da-b631-b722247cd703} /addfirst
The following example shows how to add or move the OS loader with the identifier
{0f732d04-e6b2-11da-b631-b722247cd703} to the bottom of the boot sequence:
Bcdedit /bootsequence {0f732d04-e6b2-11da-b631-b722247cd703} /addlast
Finally, if you want to remove an OS loader from the boot sequence completely??”for
example, if you want to remove NT Loader from the sequence if you no longer use the
older Windows version??” you could run this command:
Bcdedit /bootsequence {ntldr} /remove
Setting the Default Boot Entry To specify which of the boot menu items will be the default
boot selection, you use the /default switch.
Pages:
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54