Professional Windows Server 1002003 Security A Technical Reference [Electronic resources]

Roberta Bragg

نسخه متنی -صفحه : 415/ 275
نمايش فراداده

bootcfg /defaultnew in WS2003

Designates an OS entry as the default.

Syntax

bootcfg /default /id OSEntryLineNum

Options

/id OSEntryLineNum

Specifies line number of OS entry that should be designated as default OS to boot from

Examples

Display current boot menu:

bootcfg
Boot Loader Settings
--------------------
timeout:30
default:multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
Boot Entries
------------
Boot entry ID:    1
OS Friendly Name: WS2003, Enterprise
Path:             multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
OS Load Options:  /fastdetect /noguiboot
Boot entry ID:    2
OS Friendly Name: WS2003 Enterprise
Path:             multi(0)disk(0)rdisk(0)partition(2)\WINDOWS
OS Load Options:  /fastdetect /noguiboot

Note default OS listed in line 4. Now change default OS to boot entry 2:

bootcfg /default /id 2
SUCCESS: Changed the default OS entry in the BOOT.INI.

Verify the result:

bootcfg
Boot Loader Settings
--------------------
timeout:30
default:multi(0)disk(0)rdisk(0)partition(2)\WINDOWS
Boot Entries
------------
Boot entry ID:    1
OS Friendly Name: WS2003 Enterprise
Path:             multi(0)disk(0)rdisk(0)partition(2)\WINDOWS
OS Load Options:  /fastdetect /noguiboot
Boot entry ID:    2
OS Friendly Name: WS2003, Enterprise
Path:             multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
OS Load Options:  /fastdetect /noguiboot

Note the change in line 4 and the reversed boot entries.

Notes

You can also use the GUI to specify which OS entry should be the default for booting:

Control Panel System Advanced Startup and Recovery Settings select default OS

See Also

bootcfg,

Recovery Console