Sunday, March 23, 2014

Batch Files To Launch VMWare Workstation 7 and VMWare player Services And Close On Exit

I created batch files to start VMWare Workstation 7.0 and VMWare player. It starts the different VMWare services and stops them when VMWare is closed. This was tested on XP, Vista and later may be different.

Workstation batch file:
net start ufad-ws60
net start VMAuthdservice
net start vmnetdhcp
net start "vmware nat service"
net start vmusbarbservice

f:
cd "\VMWare Workstation 7"
vmware.exe

net stop ufad-ws60
net stop VMAuthdservice
net stop vmnetdhcp
net stop "vmware nat service"
net stop vmusbarbservice

Player batch file:
net start ufad-ws60
net start VMAuthdservice
net start vmnetdhcp
net start "vmware nat service"
net start vmusbarbservice

f:
cd "\VMWare Workstation 7"
vmplayer.exe

net stop ufad-ws60
net stop VMAuthdservice
net stop vmnetdhcp
net stop "vmware nat service"
net stop vmusbarbservice