Bootcfg configure, query, or change Boot.ini file Settings _dos/bat

Source: Internet
Author: User
Tags change settings knowledge base
Bootcfg configure, query, or change Boot.ini file settings.

To view the command syntax, click the following command:

BOOTCFG addsw

Adds an operating system load option for the specified operating system entry.

Grammar
BOOTCFG/ADDSW [/s Computer [/U domain\user/p Password]] [/mm Maximumram] [/BV] [/so] [/ng]/id OSEntryLineNum

Parameters
/s Computer
Specifies the remote computer name or IP address (you cannot use a backslash). The default value is the local computer.
/u domain\user
For users specified by user or Domain\User, run a command with their account permissions. The default value is the user right of the computer that is currently logged on to the publication command.
/P Password
Specifies the password for the user account that is specified in the/u parameter.
/MM Maximumram
Adds the/maxmem switch to the specified OSEntryLineNum and sets the maximum number of memory that the operating system can use.
/bv
Adds the/basevideo switch to the specified OSEntryLineNum to control the operating system's standard VGA mode using the installed video drive.
/so
Adds the/sos switch to the specified OSEntryLineNum, which controls the operating system to display the device driver name when it loads.
/ng
Add the/noguiboot switch to the specified OSEntryLineNum to disable the Windows XP Professional progress bar that is displayed before the Ctrl+alt+del login prompt.
/ID OSEntryLineNum
For Boot.ini files that add an operating system add-in, specify the line number of the operating system entry in its [operating systems] section. The first line after the [operating systems] heading area is 1.
/?
Display Help at the command prompt.
Example
The following example shows how to use the BOOTCFG/ADDSW command:

BOOTCFG/ADDSW/MM 64/id 2
BOOTCFG/ADDSW/SO/ID 3
BOOTCFG/ADDSW/SO/NG/S srvmain/u hiropln/id 2
BOOTCFG/ADDSW/NG/ID 2
bootcfg/addsw/mm 96/ng/s srvmain/u maindom\hiropln/p p@ssw23/id 2

BOOTCFG copy

Make a copy of the other operating system instance, and you can add a switch to it.

Grammar
bootcfg/copy [/s Computer [/U domain\user/p Password]] [/D Description] [/id OSEntryLineNum]

Parameters
/s Computer
Specifies the remote computer name or IP address (you cannot use a backslash). The default value is the local computer.
/u domain\user
For users specified by user or Domain\User, run the command with their account permissions. The default value is the user right of the computer that is currently logged on to the publication command.
/P Password
Specifies the password for the user account that is specified in the/u parameter.
/d Description
Specifies a description for the new operating system entry.
/ID OSEntryLineNum
Specify the line number of the operating system login in the. ini file in the operating system section under the root. The first line after the [operating systems] heading area is 1.
/?
Display Help at the command prompt.
Example
The following example shows how to use the bootcfg/copy command:

bootcfg/copy/d "\abc server\"/ID 1
bootcfg/copy/s srvmain/u maindom\hiropln/p p@ssw23/d "Windows XP"/ID 2
bootcfg/copy/u hiropln/p p@ssw23/d "AB Ver 1.001"/ID 2

BOOTCFG dbg1394

Configures 1394 port debugging for the specified operating system entry.

Grammar
bootcfg/dbg1394 {on| Off| EDIT} [/s Computer [/U domain\user/p Password]] [/ch channel]/ID osentrylinenum

Parameters
on| Off| EDIT
Specifies the value for 1394-Port debugging. Value Description
On enables remote debugging support by adding the/dbg1394 switch to the specified OSEntryLineNum.
Off disables remote debugging support by removing the/dbg1394 switch from the specified OSEntryLineNum.
EDIT allows port and baud rate settings to change by changing the channel value associated with the/dbg1394 switch for the specified OSEntryLineNum.

/s Computer
Specifies the remote computer name or IP address (you cannot use a backslash). The default value is the local computer.
/u domain\user
For users specified by user or Domain\User, run the command with their account permissions. The default value is the user right of the computer that is currently logged on to the publication command.
/P Password
Specifies the password for the user account that is specified in the/u parameter.
/ch Channel
Specifies the channel for debugging: An integer that has a valid value of 1 through 64. If 1394-port debugging is disabled, do not use the/ch channel parameter.
/ID OSEntryLineNum
For a Boot.ini file with the 1394-port Debugging option added, specify the line number of the operating system entry in its [operating systems] section. The first line after the [operating systems] heading area is 1.
/?
Display Help at the command prompt.
Example
The following example shows how to use the bootcfg/dbg1394 command:

BOOTCFG/DBG1394/ID 2
bootcfg/dbg1394 on/ch 1/id 3
bootcfg/dbg1394 edit/ch 8/id 2
bootcfg/s srvmain/u maindom\hiropln/p p@ssw23/dbg1394 off/id 2

BOOTCFG debug

Add or change the debug settings that specify the operating system entry.

Grammar
Bootcfg/debug {on| Off| EDIT} [/s Computer [/U domain\user/p Password]] [/port {com1| com2| com3| COM4}] [/baud {9600|19200|38400|57600|115200}] [/id OSEntryLineNum]

Parameters
On | Off
Specifies the value to be used for debugging. Value Description
On enables remote debugging support by adding the/debug switch to the specified OSEntryLineNum.
Off disables remote debugging support by removing the/debug switch from the specified OSEntryLineNum.
EDIT allows port and baud rate settings to change by changing the value associated with the/debug switch for the specified OSEntryLineNum.

/s Computer
Specifies the remote computer name or IP address (you cannot use a backslash). The default value is the local computer.
/u domain\user
For users specified by user or Domain\User, run the command with their account permissions. The default value is the user right of the computer that is currently logged on to the publication command.
/P Password
Specifies the password for the user account that is specified in the/u parameter.
/port {com1| com2| com3| COM4}
Specifies the COM port for debugging. If debugging is disabled, do not use the/port parameter.
/baud {9600|19200|38400|57600|115200}
Specifies the baud rate for debugging. If debugging is disabled, do not use the/baud parameter.
/ID OSEntryLineNum
For Boot.ini files that add debug options, specify the line number of the operating system entry in their [operating systems] section. The first line after the [operating systems] heading area is 1.
/?
Display Help at the command prompt.
Comments
If you need 1394-port debugging, use bootcfg/dbg1394.
Example
The following example shows how to use the Bootcfg/debug command:

Bootcfg/debug On/port com1/id 2
Bootcfg/debug Edit/port Com2/baud 19200/id 2
bootcfg/s srvmain/u maindom\hiropln/p p@ssw23/debug off/id 2

bootcfg default

Specifies the operating system entry that is assigned as the default.

Grammar
Bootcfg/default [/s Computer [/U domain\user/p Password]] [/id OSEntryLineNum]

Parameters
/s Computer
Specifies the remote computer name or IP address (you cannot use a backslash). The default value is the local computer.
/u domain\user
For users specified by user or Domain\User, run the command with their account permissions. The default value is the user right of the computer that is currently logged on to the publication command.
/P Password
Specifies the password for the user account that is specified in the/u parameter.
/ID OSEntryLineNum
For the Boot.ini file, specify the operating system item line number in its [operating systems] section as the default delegate. The first line after the [operating systems] heading area is 1.
/?
Display Help at the command prompt.
Example
The following example shows how to use the Bootcfg/default command:

BOOTCFG/DEFAULT/ID 2
bootcfg/default/s srvmain/u maindom\hiropln/p p@ssw23/id 2

BOOTCFG delete

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

Grammar
Bootcfg/delete [/s Computer [/U domain\user/p Password]] [/id OSEntryLineNum]

Parameters
/s Computer
Specifies the remote computer name or IP address (you cannot use a backslash). The default value is the local computer.
/u domain\user
For users specified by user or Domain\User, run the command with their account permissions. The default value is the user right of the computer that is currently logged on to the publication command.
/P Password
Specifies the password for the user account that is specified in the/u parameter.
/ID OSEntryLineNum
For the Boot.ini file, specify the line number of the operating system entry that you want to remove in the [operating systems] section. The first line after the [operating systems] heading area is 1.
/?
Display Help at the command prompt.
Example
The following example shows how to use the Bootcfg/delete command:

BOOTCFG/DELETE/ID 1
bootcfg/delete/s srvmain/u maindom\hiropln/p p@ssw23/id 3

BOOTCFG EMS

Allows users to add or change settings that redirect the EMS console to a remote computer. By enabling EMS, the "redirect=port#" statement line can be added to the [Boot Loader] section of the Boot.ini file, and the/redirect switch is added to the specified operating system item statement. The EMS feature can only be enabled on the server.

Grammar
Bootcfg/ems {on| Off| EDIT} [/s Computer [/U domain\user/p Password]] [/port {com1| com2| com3| com4| Biosset}] [/baud {9600|19200|38400|57600|115200}] [/id OSEntryLineNum]

Parameters
On | Off
Specifies the value to use for EMS redirection. Value Description
On to enable remote output for the specified OSEntryLineNum. Adds the/redirect switch to the specified OSEntryLineNum and adds the REDIRECT=COMX setting to the [boot loader] section. The value of the COMX is set by the/port parameter.
Off disables output to the remote computer. Remove the/redirect switch from the specified OSEntryLineNum and remove the REDIRECT=COMX setting from the [boot loader] section.
EDIT allows you to change the port settings by changing the REDIRECT=COMX setting in the [boot loader] section. The COMx value reverts to the value specified by the/port parameter.

/s Computer
Specifies the remote computer name or IP address (you cannot use a backslash). The default value is the local computer.
/u domain\user
For users specified by user or Domain\User, run the command with their account permissions. The default value is the user right of the computer that is currently logged on to the publication command.
/P Password
Specifies the password for the user account that is specified in the/u parameter.
/port {com1| com2| com3| com4| Biosset}
Specifies the COM port for redirection. Biosset Control EMS obtains BIOS settings to determine the port for redirection. If remote administration output is disabled, do not use the/port parameter.
/baud {9600|19200|38400|57600|115200}
Specifies the baud rate for redirection. If remote administration output is disabled, do not use the/baud parameter.
/ID OSEntryLineNum
Specifies the line number of the operating system item that will add the EMS option in the [operating systems] section of the Boot.ini file. The first line after the [operating systems] heading area is 1. This parameter is required when the value of the EMS is set to on or off.
/?
Display Help at the command prompt.
Comments
For more information about Emergency Management Services (EMS), see Help and Support Center.
Example
The following example shows how 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

Queries and displays the [Boot loader] and [operating systems] section entries from the Boot.ini file.

Grammar
Bootcfg/query [/s Computer [/U domain\user/p Password]]

Parameters
/s Computer
Specifies the remote computer name or IP address (you cannot use a backslash). The default value is the local computer.
/u domain\user
For users specified by user or Domain\User, run the command with their account permissions. The default value is the user right of the computer that is currently logged on to the publication command.
/P Password
Specifies the password for the user account that is specified in the/u parameter.
/?
Display Help at the command prompt.
Comments
The following is an example of bootcfg/query output:
Start Loader settings
--------------------
Timeout:30
Default:multi (0) disk (0) rdisk (0) partition (1) \ Windows

Start Project
------------
Start Project Id:1
Friendly name: "Microsoft Windows XP Professional"
Path: multi (0) disk (0) rdisk (0) partition (1) \ Windows
OS load options:/fastdetect/debug/debugport=com1:
The boot loader settings section of the bootcfg query output shows all the items in the Boot.ini [boot loader] section.
The Startup Items section of the bootcfg query output shows these operating system entries in the [operating systems] section of Boot.ini: The startup item ID, the friendly name, the path, and the OS add-in.
Example
The following example shows how 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

Adds the specified operating system add-in to the operating system entry in the [operating systems] section of the Boot.ini file as a string.

Grammar
bootcfg [/s Computer [/U domain\user/p Password]]/raw osloadoptionsstring [/id OSEntryLineNum]

Parameters
/s Computer
Specifies the remote computer name or IP address (you cannot use a backslash). The default value is the local computer.
/u domain\user
For users specified by user or Domain\User, run the command with their account permissions. The default value is the user right of the computer that is currently logged on to the publication command.
/P Password
Specifies the password for the user account that is specified in the/u parameter.
Osloadoptionsstring
Specifies the operating system add-in to add to the operating system entry. These add-ins replace any existing add-ons that are related to the operating system entry. OsLoadOptions has not been confirmed.
/ID OSEntryLineNum
Specifies the line number of the operating system entry to be updated in the [operating systems] section of the Boot.ini file. The first line after the [operating systems] heading area is 1.
/?
Display Help at the command prompt.
Comments
Bootcfg Raw can add text to the end of an operating system entry that overwrites any existing operating system item options. The text you add should contain valid OS add-ins, such as/debug,/fastdetect,/nodebug,/baudrate,/crashdebug, and/sos. For example, use the following command to add "/debug/fastdetect" to the end of the first operating system entry and replace any previous operating system item options:
Bootcfg/raw "/debug/fastdetect"/ID 1

For more information about optional OS add-ins and how Windows uses Boot.ini files during startup, see the technical article in Microsoft Knowledge Base, numbered Q170756, titled "Windows NT Boot.ini The available switch items for the file. (http://www.microsoft.com/)
Example
The following example shows how to use the Bootcfg/raw command:

Bootcfg/raw "/debug/sos"/ID 2
bootcfg/raw/s srvmain/u maindom\hiropln/p p@ssw23 "/crashdebug"/ID 2

BOOTCFG RMSW

Deletes the operating system add-in for the specified operating system entry.

Grammar
BOOTCFG/RMSW [/s Computer [/U domain\user/p Password]] [/mm] [/BV] [/so] [/ng]/id OSEntryLineNum

Parameters
/s Computer
Specifies the remote computer name or IP address (you cannot use a backslash). The default value is the local computer.
/u domain\user
For users specified by user or Domain\User, run the command with their account permissions. The default value is the user right of the computer that is currently logged on to the publication command.
/P Password
Specifies the password for the user account that is specified in the/u parameter.
/mm
Deletes the/maxmem switch and the maximum memory value associated with it from the specified OSEntryLineNum. The/maxmem switch specifies the maximum amount of memory the operating system can use.
/bv
Deletes the/basevideo switch from the specified OSEntryLineNum. The/basevideo switch controls the operating system using the standard VGA mode of the installed video drive.
So
Deletes the/sos switch from the specified OSEntryLineNum. /sos switch controls the operating system displays these names when the device driver name is loaded.
/ng
Deletes the/noguiboot switch from the specified OSEntryLineNum. The/noguiboot switch disables the Windows XP Professional progress bar that appears before the Ctrl+alt+del login prompt.
/ID OSEntryLineNum
Specifies the line number of the operating system entry from which the OS add-in will be removed in the [operating systems] section of the Boot.ini file. The first line after the [operating systems] heading area is 1.
/?
Display Help at the command prompt.
Example
The following example shows how to use the BOOTCFG/RMSW command:

BOOTCFG/RMSW/MM 64/id 2
BOOTCFG/RMSW/SO/ID 3
BOOTCFG/RMSW/SO/NG/S srvmain/u hiropln/id 2
BOOTCFG/RMSW/NG/ID 2
bootcfg/rmsw/mm 96/ng/s srvmain/u maindom\hiropln/p p@ssw23/id 2

bootcfg timeout

Change the operating system timeout value.

Grammar
Bootcfg/timeout TimeOutValue [/s Computer [/U domain\user/p Password]]

Parameters
TimeOutValue
Specifies the timeout value that is located in the [boot loader] section. This value indicates the number of seconds that the user can select the operating system from the boot loader screen before NTLDR loads the default operating system. If the value is 0, NTLDR will start the default operating system directly without displaying the boot loader screen.
/s Computer
Specifies the remote computer name or IP address (you cannot use a backslash). The default value is the local computer.
/u domain\user
For users specified by user or Domain\User, run a command with their account permissions. The default value is the user right of the computer that is currently logged on to the publication command.
/P Password
Specifies the password for the user account that is specified in the/u parameter.
/?
Display Help at the command prompt.
Example
The following example shows how to use the Bootcfg/timeout command:

Bootcfg/timeout 30
bootcfg/s srvmain/u maindom\hiropln/p p@ssw23/timeout 50

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.