bootcfg copy
适用范围:Windows Server 2022、Windows Server 2019、Windows Server 2016、Windows Server 2012 R2、Windows Server 2012
创建现有启动项副本,可向其添加命令行选项。
语法
bootcfg /copy [/s <computer> [/u <domain>\<user> /p <password>]] [/d <description>] [/id <osentrylinenum>]
参数
参数 | 说明 |
---|---|
/s <computer> |
指定远程计算机的名称或 IP 地址(请勿使用反斜杠)。 默认为本地计算机。 |
/u <domain>\<user> |
使用由 <user> 或 <domain>\<user> 指定的用户的帐户权限来运行命令。 默认情况下将使用发出命令的计算机上当前已登录用户的权限。 |
/p <password> |
指定 /u 参数中指定的用户帐户的密码。 |
/d <description> |
指定新操作系统条目的说明。 |
/id <osentrylinenum> |
在 Boot.ini 文件的 [operating systems] 节中指定添加了操作系统加载选项的操作系统条目行号。 [operating systems] 节标题后面的第一行是 1。 |
/? | 在命令提示符下显示帮助。 |
示例
复制启动项 1 并输入 \ABC Server\ 作为说明:
bootcfg /copy /d \ABC Server\ /id 1