:: Start the necessary services
psservice start VMAuthdService
psservice start VMUSBArbService
psservice start VMnetDHCP
psservice start "VMware NAT Service"
psservice start VMwareHostd
:: Enable network VMWare network adapters
wmic path win32_networkadapter where index=12 call enable
wmic path win32_networkadapter where index=14 call enable
:: Start VMWare
start "" /wait "C:\Program Files (x86)\VMware\VMWare Workstation\vmware.exe"
:: Stop services
psservice stop VMnetDHCP
psservice stop "VMware NAT Service"
psservice stop VMwareHostd
psservice stop VMAuthdService
psservice stop VMUSBArbService
:: Disable our VMWare network adapters
wmic path win32_networkadapter where index=12 call disable
wmic path win32_networkadapter where index=14 call disable
Run 'wmic nic get name, index' and change the value of 'index=' above accordingly.
Save the file as vmware-run.bat or whatever name you prefer.
Go to Windows' Services and set all the services that started with VMWARE* to manual.
Grab the PSTools from http://technet.microsoft.com/en-us/sysinternals/bb897542 as this batch file required it.
psservice start VMAuthdService
psservice start VMUSBArbService
psservice start VMnetDHCP
psservice start "VMware NAT Service"
psservice start VMwareHostd
:: Enable network VMWare network adapters
wmic path win32_networkadapter where index=12 call enable
wmic path win32_networkadapter where index=14 call enable
:: Start VMWare
start "" /wait "C:\Program Files (x86)\VMware\VMWare Workstation\vmware.exe"
:: Stop services
psservice stop VMnetDHCP
psservice stop "VMware NAT Service"
psservice stop VMwareHostd
psservice stop VMAuthdService
psservice stop VMUSBArbService
:: Disable our VMWare network adapters
wmic path win32_networkadapter where index=12 call disable
wmic path win32_networkadapter where index=14 call disable
Run 'wmic nic get name, index' and change the value of 'index=' above accordingly.
Save the file as vmware-run.bat or whatever name you prefer.
Go to Windows' Services and set all the services that started with VMWARE* to manual.
Grab the PSTools from http://technet.microsoft.com/en-us/sysinternals/bb897542 as this batch file required it.
No comments:
Post a Comment