禁止VMware虛擬機器開機程式

jianzhanger發表於2011-08-25
 

裝了個VMware,用了幾天,很不爽其開機程式,一大堆.....

寫了個批處理,禁止其開機啟動,浪費機器資源

需要的時候可以自己開起來。

1、複製下面紅色部分到記事本

2、儲存,修改.txt字尾為.bat

3、雙擊即可使用 (PS:那3手動的意思,就是把原本開機啟動的服務改為手動)

4、輸入選項號碼,回車執行。

echo off
title Switch %date% %time%  QQ:365130596
:A
color A
cls
echo                   ++++++++++++++++++++++++++++++++++++++++++++++++
echo                   =          WELCOME  TO  VMware SWITCH          =
echo.                  =                                              =
echo                   =    啟動= 1  關閉= 2  設定手動= 3  退出= 4    =
echo.                  =                                              =
echo.                  =                                              =
echo                   +++++++++++++++++ QQ:365130596 ++++++++++++++++
echo.
echo.
set session=""
set /p session= Select[1/2/3/4]:
if /i "%session%"=="1" (goto:1)
if /i "%session%"=="2" (goto:2)
if /i "%session%"=="3" (goto:3)
if /i "%session%"=="4" (goto:4)

:1
echo "正在啟動VMware相關開機服務..."
net start VMAuthdService
net start VMnetDHCP
net start "VMware NAT Service"
net start VMUSBArbService
echo 服務啟動完畢!
ping 127.0.0.1 /n 2 >nul
goto:A

:2
echo "正在關閉VMware相關開機服務..."
net stop VMAuthdService
net stop VMnetDHCP
net stop "VMware NAT Service"
net stop VMUSBArbService
echo 服務已關閉!
ping 127.0.0.1 /n 2 >nul
goto:A

:3
echo 切換VMware開機啟動服務為手動中,請稍候...
sc config VMAuthdService start= demand
sc config VMnetDHCP start= demand
sc config "VMware NAT Service" start= demand
sc config VMUSBArbService start= demand
echo 成功切換為手動模式!
ping 127.0.0.1 /n 2 >nul
goto:A

:4
cls
echo 謝謝使用...
ping 127.0.0.1 /n 2 >nul
exit

相關文章