Windows Server 2003 in a Nutshell

bootcfg /delete new in WS2003

Deletes an OS entry.

Syntax

bootcfg /delete /id OSEntryLineNum

Options

/id OSEntryLineNum

Deletes the OS entry with line number OSEntryLineNum in the operating systems section of boot.ini file

Examples

Display current boot.ini info :

bootcfg Boot Loader Settings -------------------- timeout:0 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

Delete the second boot entry:

bootcfg /delete /id 2 SUCCESS: OS entry "2" has been deleted.

Verify the result:

bootcfg Boot Loader Settings -------------------- timeout:0 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

See Also

bootcfg , Recovery Console

Категории