Partilhar via


Bootcfg /delete

 

Applies To: Windows Vista, Windows Server 2008, Windows Server 2012, Windows 8

Deletes an operating system entry in the [operating systems] section of the Boot.ini file.

For examples of how this command can be used, see Examples.

Syntax

bootcfg /delete [/s <Computer> [/u <Domain>\<User> /p <Password>]] [/id <OSEntryLineNum>]

Parameters

Term

Definition

/s <Computer>

Specifies the name or IP address of a remote computer (do not use backslashes). The default is the local computer.

/u <Domain>\<User>

Runs the command with the account permissions of the user specified by <User> or <Domain>\<User>. The default is the permissions of the current logged on user on the computer issuing the command.

/p <Password>

Specifies the password of the user account that is specified in the /u parameter.

/id <OSEntryLineNum>

Specifies the operating system entry line number in the [operating systems] section of the Boot.ini file to delete. The first line after the [operating systems] section header is 1.

/?

Displays help at the command prompt.

Examples

The following examples show how you can use the bootcfg /delete command:

bootcfg /delete /id 1
bootcfg /delete /s srvmain /u maindom\hiropln /p p@ssW23 /id 3

Additional references

Command-Line Syntax Key