VMware服务及网络需要时再启动,用完之后关闭,避免拖慢电脑:
启动VMware服务及网络连接.bat
@echo off
echo 正在启动VMware服务,请稍等......
:: net start "VMware Workstation Server"
net start "VMware Authorization Service"
net start "VMware USB Arbitration Service"
net start "VMware DHCP Service"
net start "VMware NAT Service"
echo 启动VMware服务完成。
echo 正在启用VMware网络连接,请稍等......
netsh interface set interface "VMware Network Adapter VMnet1" enable
netsh interface set interface "VMware Network Adapter VMnet8" enable
echo 启用VMware网络连接完成。
echo. & pause
停止VMware服务及网络连接.bat
@echo off
echo 正在停止VMware服务,请稍等......
:: net stop "VMware Workstation Server"
net stop "VMware Authorization Service"
net stop "VMware USB Arbitration Service"
net stop "VMware DHCP Service"
net stop "VMware NAT Service"
echo 停止VMware服务完成。
echo 正在禁用VMware网络连接,请稍等......
netsh interface set interface "VMware Network Adapter VMnet1" disable
netsh interface set interface "VMware Network Adapter VMnet8" disable
echo 禁用VMware网络连接完成。
echo. & pause