bootcfg rmsw
适用范围:Windows Server 2022、Windows Server 2019、Windows Server 2016、Windows Server 2012 R2、Windows Server 2012
为指定操作系统条目删除操作系统加载选项。
语法
bootcfg /rmsw [/s <computer> [/u <domain>\<user> /p <password>]] [/mm] [/bv] [/so] [/ng] /id <osentrylinenum>
参数
参数 | 说明 |
---|---|
/s <computer> |
指定远程计算机的名称或 IP 地址(请勿使用反斜杠)。 默认为本地计算机。 |
/u <domain>\<user> |
使用由 <user> 或 <domain>\<user> 指定的用户的帐户权限来运行命令。 默认情况下将使用发出命令的计算机上当前已登录用户的权限。 |
/p <password> |
指定 /u 参数中指定的用户帐户的密码。 |
/mm | 从指定的 <osentrylinenum> 中移除 /maxmem 选项及其关联的最大内存值。 /maxmem 选项指定操作系统可以使用的最大 RAM 容量。 |
/bv | 从指定的 <osentrylinenum> 中移除 /basevideo 选项。 /basevideo 选项指示操作系统对已安装的视频驱动程序使用标准 VGA 模式。 |
/so | 从指定的 <osentrylinenum> 中移除 /sos 选项。 /sos 选项指示操作系统在加载设备驱动程序时显示设备驱动程序名称。 |
/ng | 从指定的 <osentrylinenum> 中移除 /noguiboot 选项。 /noguiboot 选项禁用在 CTRL+ALT+DEL 登录提示前显示的进度栏。 |
/id <osentrylinenum> |
在 Boot.ini 文件的 [operating systems] 节中指定添加了操作系统加载选项的操作系统条目行号。 [operating systems] 节标题后面的第一行是 1。 |
/? | 在命令提示符下显示帮助。 |
示例
使用 bootcfg /rmsw 命令:
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