Freigeben über


Bootcfg /copy

 

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

Makes a copy of an existing boot entry, to which you can add command-line options.

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

Syntax

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

Parameters

Parameter

Description

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

/d <Description>

Specifies the description for the new operating system entry.

/id <OSEntryLineNum>

Specifies the operating system entry line number in the [operating systems] section of the Boot.ini file to copy. 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 /copy command to copy boot entry 1 and enter "\ABC Server\" as the description:

bootcfg /copy /d "\ABC Server\" /id 1

Additional references

Command-Line Syntax Key