text
stringlengths
0
4.23k
/id <osentrylinenum>
Specifies the operating system entry line number to which the Emergency Management Services option is added in the [operating systems] section of the Boot.ini file. The first line after the [operating systems] section header is 1. This parameter is required when the Emergency Management Services value is set to on or off.
/?
Displays help at the command prompt.
{on | off | edit}
<osentrylinenum>
<osentrylinenum>
redirect=com<X>
com<X>
<osentrylinenum>
redirect=com<X>
redirect=com<X>
com<X>
/s <computer>
/u <domain>\<user>
<user>
<domain>\<user>
/p <password>
/port {COM1 | COM2 | COM3 | COM4 | BIOSSET}
/baud {9600 | 19200 | 38400 | 57600 | 115200}
/id <osentrylinenum>
Examples
To use the bootcfg /ems command:
bootcfg /ems on /port com1 /baud 19200 /id 2
bootcfg /ems on /port biosset /id 3
bootcfg /s srvmain /ems off /id 2
bootcfg /ems edit /port com2 /baud 115200
bootcfg /s srvmain /u maindom\hiropln /p p@ssW23 /ems off /id 2
bootcfg query
Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012
Queries and displays the [boot loader] and [operating systems] section entries from Boot.ini.
Syntax
bootcfg /query [/s <computer> [/u <domain>\<user> /p <password>]]
Parameters
Parameter
Description
/s <computer>
Specifies the name or IP address of a remote computer (don't 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.
/?
Displays help at the command prompt.
/s <computer>
/u <domain>\<user>
<user>
<domain>\<user>
/p <password>
Sample output
Sample output for the bootcfg /query command:
Boot Loader Settings
----------
timeout: 30
default: multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
Boot Entries
------
Boot entry ID: 1
Friendly Name:
path: multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
OS Load Options: /fastdetect /debug /debugport=com1:
The Boot Loader Settings area shows each entry in the [boot loader] section of Boot.ini.
The Boot Entries area shows more details for each operating system entry in the [operating systems] section of the Boot.ini
Examples
To use the bootcfg /query command:
bootcfg /query
bootcfg /query /s srvmain /u maindom\hiropln /p p@ssW23
bootcfg /query /u hiropln /p p@ssW23
bootcfg raw
Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012
Adds operating system load options specified as a string to an operating system entry in the [operating systems] section of the Boot.ini file. This command overwrites any existing operating system entry options.
Syntax
bootcfg /raw [/s <computer> [/u <domain>\<user> /p <password>]] <osloadoptionsstring> [/id <osentrylinenum>] [/a]
Parameters
Parameter
Description