Share via


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>or<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 system] 區段標頭後面的第一行是 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