Bootcfg /debug


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

Adds or changes the debug settings for a specified operating system entry.

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


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>]





Specifies the value for debugging.

ON - Enables remote debugging support by adding the /debug option to the specified <OSEntryLineNum>.

OFF - Disables remote debugging support by removing the /debug option from the specified <OSEntryLineNum>.

EDIT - Allows changes to port and baud rate settings by changing the values associated with the /debug option for the specified <OSEntryLineNum>.

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

/port {COM1 | COM2 | COM3 | COM4}

Specifies the COM port to be used for debugging. Do not use the /port parameter if debugging is being disabled.

/baud {9600| 19200| 38400| 57600| 115200}

Specifies the baud rate to be used for debugging. Do not use the /baud parameter if debugging is being disabled.

/id <OSEntryLineNum>

Specifies the operating system entry line number in the [operating systems] section of the Boot.ini file to which the debugging options are added. 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 /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

Additional references

Command-Line Syntax Key