指定用户帐户的密码,该用户帐户在 /u 参数中指定。
/id OSEntryLineNum
对于 Boot.ini 文件,指定其 [operating systems] 区段中的作为默认委派的操作系统项行号。[operating systems] 标题区域后的首行是 1。
/?
在命令提示符显示帮助。
范例
下述范例显示了如何使用 bootcfg /default 命令:
bootcfg /default /id 2
bootcfg /default /s srvmain /u maindomhiropln /p p@ssW23 /id 2
bootcfg delete
删除 Boot.ini 文件中位于 [operating systems] 区段的某个操作系统项。
语法
bootcfg /delete [/s Computer [/u DomainUser /p Password]] [/id OSEntryLineNum]
参数
/s Computer
指定远程计算机名称或 IP 地址(不能使用反斜杠)。默认值是本地计算机。
/u DomainUser
对于由 user 或 domainuser.指定的用户,运行具有其帐户权限的命令。默认值是当前登录发布命令的计算机的用户权限。
/p Password
指定用户帐户的密码,该用户帐户在 /u 参数中指定。
/id OSEntryLineNum
对于 Boot.ini 文件,指定其 [operating systems] 区段中要删除的操作系统项的行号。[operating systems] 标题区域后的首行是 1。
/?
在命令提示符显示帮助。
范例
下述范例显示了如何使用 bootcfg /delete 命令:
bootcfg /delete /id 1
bootcfg /delete /s srvmain /u maindomhiropln /p p@ssW23 /id 3
bootcfg ems
允许用户添加或更改将 EMS 控制台重定向到远程计算机的设置。通过启用 EMS,可以在 Boot.ini 文件的 [boot loader] 区段添加“redirect=Port#”语句行,并且在指定的操作系统项语句中添加 /redirect 开关。只有在服务器上才可启用 EMS 功能。
语法
bootcfg /ems {ON|OFF|EDIT} [/s Computer [/u DomainUser /p Password]] [/port {COM1|COM2|COM3|COM4|BIOSSET}] [/baud {9600|19200|38400|57600|115200}] [/id OSEntryLineNum]
参数
on | off
指定用于 EMS 重定向的值。 值 说明
ON 为指定的 OSEntryLineNum 启用远程输出。将 /redirect 开关添加到指定 OSEntryLineNum,并且将 redirect=comX 设置添加到 [boot loader] 区段。comX 的值由 /port 参数设置。
OFF 禁用输出到远程计算机。将 /redirect 开关从指定 OSEntryLineNum 删除,并将 redirect=comX 设置从 [boot loader] 区段删除。









