Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Bootcfg /default

Published: April 17, 2012

Updated: April 17, 2012

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

Specifies the operating system entry to designate as the default.

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

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


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.

/id <OSEntryLineNum>

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


Displays help at the command prompt.

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

bootcfg /default /id 2
bootcfg /default /s srvmain /u maindom\hiropln /p p@ssW23 /id 2

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft