bootcfg debug
适用范围:Windows Server 2022、Windows Server 2019、Windows Server 2016、Windows Server 2012 R2、Windows Server 2012
添加或更改指定操作系统项的调试设置。
注意
如果你尝试调试端口 1394,请改用 bootcfg dbg1394 命令。
语法
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>]
参数
参数 | 说明 |
---|---|
{on | off | edit} |
指定用于端口调试的值,包括:
|
/s <computer> |
指定远程计算机的名称或 IP 地址(请勿使用反斜杠)。 默认为本地计算机。 |
/u <domain>\<user> |
使用由 <user> 或 <domain>\<user> 指定的用户的帐户权限来运行命令。 默认情况下将使用发出命令的计算机上当前已登录用户的权限。 |
/p <password> |
指定 /u 参数中指定的用户帐户的密码。 |
/port {COM1 | COM2 | COM3 | COM4} |
指定要用于调试的 COM 端口。 如果已禁用调试,请勿使用此参数。 |
/baud {9600 | 19200 | 38400 | 57600 | 115200} |
指定要用于调试的波特率。 如果已禁用调试,请勿使用此参数。 |
/id <osentrylinenum> |
在 Boot.ini 文件的 [operating systems] 节中指定添加了操作系统加载选项的操作系统条目行号。 [operating systems] 节标题后面的第一行是 1。 |
/? | 在命令提示符下显示帮助。 |
示例
使用 bootcfg /debug 命令:
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