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

Roberta Bragg

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

bootcfg rawnew in WS2003

Adds a specified string to a boot entry in the operating systems section of

boot.ini .

Syntax

bootcfg /raw "OSLoadOptionsString" [/id OSEntryLineNum] [/a]

Options

OSLoadOptionsString

Specifies load options to add to the OS entry specified by OSEntryLineNum (the string must be enclosed in quotes and no validation is performed)

/a

Indicates that the load options being added should be appended to existing load options (if /a switch is omitted, any existing load options associated with the entry are replaced)

Examples

Append the /crashdebug option to OS entry 2:

bootcfg /raw "/crashdebug" /id 2 /a
SUCCESS: Added the switch to OS entry for line "2" in the BOOT.INI file.

Verify the result:

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 /crashdebug

Notes

Use bootcfg /raw to add additional switches to

boot.ini OS entries. Examples of such switches are /fastdetect, /nodebug, /baudrate, /crashdebug, and /sos.

See Also

bootcfg,

Recovery Console