I bet you??™ve already guessed what??™s coming
next. Yes, the same additional switches that were available in the /bootsequence
switch are all available here as well, specifically /addfirst, /addlast, and /remove.
The syntax is the same, just replace /bootsequence in those commands with /tool
-sdisplayorder.
Backing Up and Restoring the BCD The next critical task an administrator will need to
ensure is the ability to back up and restore the BCD. In pre??“Windows Server 2008 days,
you could simply back up the boot.ini file since it was a simple text file. The BCD, on the
other hand, is a binary file, and the active BCD file is locked and marked as in-use, so it
can??™t be copied outright. The correct way to back up and restore a BCD is through the
/export and /import switches of BCDEdit. This is all very painless, since the /export
switch requires only the destination file name to export the data to, while the /import
switch requires only the source file name to import the data from.
21 Chapter 1: Getting Started with Windows Server 2008
Here is an example of backing up the BCD. It will actually create two files after it
runs??”one is the backup data file and the other is the backup log file:
Bcdedit /export "C:\backup\BCD-backup"
The following is an example for importing the data that was just backed up. Please
be aware that this deletes all the entries in the BCD system store and replaces them with
whatever data is in the import file.
Pages:
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57