The command bootcfg default in Windows

Applies to: Windows Server (Semi-Annual Channel), Windows Server 2016, Windows Server 2012 R2, Windows Server 2012.

The bootcfg default command specifies the operating system entry as the default.

Syntax

 bootcfg / default [/ s [/ u / p]] [/ id] 

Parameters

Parameter Description / s Specifies the name or IP address of the remote computer (do not use a backslash). The default is the local computer. / u Run the command with the user account specified after the sign. Default is the current user login rights on the computer that is issuing the command. / p Specify the password of the user account specified in the / u parameter . / id Specifies the operating system input line number in the [operating systems] section of the Boot.ini file to specify the default. The first line after the [operating systems] section header is 1. /? Show help at the command prompt.

For example

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

 bootcfg / default / id 2 
bootcfg / default / s srvmain / u maindomhiropln / pp @ ssW23 / id 2

See more:

  1. The bootcfg addsw command in Windows
  2. The command bootcfg dbg1394 in Windows
  3. The bootcfg command copies in Windows
3.5 ★ | 2 Vote

May be interested

  • The certutil command in WindowsThe certutil command in Windows
    when the certutil command is run by a ca without additional parameters, it displays the current ca configuration. when the certutil command is run on an unassigned ca, the default command to run is certutil -ump.
  • Diskshadow command in WindowsDiskshadow command in Windows
    by default, the diskshadow command uses an interactive command interpreter, similar to diskraid or diskpart. the diskshadow command also includes a scriptable mode (writeable mode).
  • Instructions to enable Hey Copilot command Windows 11Instructions to enable Hey Copilot command Windows 11
    on windows 11, you can invoke the copilot chatbot with the hey, copilot voice command to communicate with the ai ​​assistant. however, this feature is disabled by default, so users are forced to enable it manually.
  • Dcgpofix command in WindowsDcgpofix command in Windows
    the dcgpofix command recreates the default group policy objects (gpo) for a domain.
  • Cmstp command in WindowsCmstp command in Windows
    the cmstp command installs or deletes the connection manager service configuration. if used without parameters, the cmstp command will install the service configuration with the default settings that are appropriate for the operating system and user rights.
  • Sub-commands in nslookup Windows command (Part 2)Sub-commands in nslookup Windows command (Part 2)
    nslookup set all command, nslookup set class, nslookup set d2, alias ​​nslookup set debug, nslookup set domain, nslookup set port, and nslookup set querytype in windows
  • Sub-commands in the nslookup Windows command (Part 1)Sub-commands in the nslookup Windows command (Part 1)
    nslookup command exit, finger nslookup, nslookup help, nslookup ls, nslookup lserver, nslookup root, commandlooklook server, nslookup set in windows
  • Sub-commands in nslookup Windows command (Part 3)Sub-commands in nslookup Windows command (Part 3)
    nslookup set recurse, nslookup set retry, nslookup set root, nslookup set search, nslookup set srchlist, nslookup set timeout, nslookup set type, nslookup set vc, and nslookup view in windows
  • Command at in WindowsCommand at in Windows
    the at command schedules commands and programs to run on a computer at a specified time with a specific date. you can only use the command at when schedule service is running.
  • Color command in WindowsColor command in Windows
    the color command changes the foreground and background colors in the command prompt window for the current session. if used without parameters, the color command restores the default foreground and background colors of the command prompt window.