装了个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