I have batch file that launches VMware Workstation Pro and one that fully exists the WS Pro services.
They read as follows: (run as administrator)
Start_VMware.bat
sc config VMUSBArbService start= demand
net start VMUSBArbService
sc config VMAuthdService start= demand
net start VMAuthdService
sc config VMwareHostd start= demand
net start VMwareHostd
sc config VMnetDHCP start= demand
net start VMnetDHCP
sc config "VMware NAT Service" start= demand
net start "VMware NAT Service"
netsh interface set interface "VMware Network Adapter VMnet1" ENABLED
netsh interface set interface "VMware Network Adapter VMnet8" ENABLED
d:
cd VMware
start vmware.exe
-
Stop_VMware.bat
rem taskkill /F /IM "vmware.exe"
taskkill /F /IM "vmware-tray.exe"
net stop VMwareHostd
sc config VMwareHostd start= disabled
net stop VMUSBArbService
sc config VMUSBArbService start= disabled
net stop VMAuthdService
sc config VMAuthdService start= disabled
net stop VMnetDHCP
sc config VMnetDHCP start= disabled
net stop "VMware NAT Service"
sc config "VMware NAT Service" start= disabled
netsh interface set interface "VMware Network Adapter VMnet1" DISABLED
netsh interface set interface "VMware Network Adapter VMnet8" DISABLED
-
I have been using them for years and they work fine.
Obviously I need to change the folder name (last line but one in the start bat) and the name of the exe.
Q: is there anything else that I need to update/change?
Thanks!