新建批处理.bat文件。在使用vmware之前,打开这些服务,按1开启,不用了之后按2关闭服务
@echo off
cls
echo 用于VMware Workstation V7.1.4-385536,其他版本请修改
echo 按 1 开启
echo 按 2 关闭
echo.
SET slect=0
SET /P slect=输入1 or 2 :
IF /I "%slect:~0,1%"=="1" GOTO 1
IF /I "%slect:~0,1%"=="2" GOTO 2
exit
:1
echo 进行服务设置
sc config ufad-ws60 start= AUTO
sc config VMAuthdService start= AUTO
sc config "VMware NAT Service" start= AUTO
sc config VMnetDHCP start= AUTO
sc config VMUSBArbService start= AUTO
echo 服务设置成功 开始启动服务
net start ufad-ws60 Service
net start VMAuthdService Service
net start "VMware NAT Service"
net start VMnetDHCP Service
net start VMUSBArbService
echo 服务启动成功
echo OK 运行完毕
echo 按任意键退出
pause>nul
exit
:2
echo 开始停止服务
net stop ufad-ws60
net stop VMAuthdService
net stop "VMware NAT Service"
net stop VMnetDHCP
net stop VMUSBArbService
echo 停止服务成功
echo 进行服务设置
sc config ufad-ws60 start= DISABLED
sc config VMAuthdService start= DISABLED
sc config "VMware NAT Service" start= DISABLED
sc config VMnetDHCP start= DISABLED
sc config VMUSBArbService start= DISABLED
echo 服务设置成功 结束vmware-tray.exe 进程
taskkill /f /t /im vmware-tray.exe
echo OK
echo 删除启动项
reg delete HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v “vmware-tray” /f
echo 删除成功
echo OK 运行完毕
echo 按任意键可退出
pause>nul
exit