Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- echo Start/Stop VMware Workstation services
- echo.
- echo 1. Start
- echo 2. Stop
- echo.
- choice /c:12
- If errorlevel 1 if not errorlevel 2 goto start
- If errorlevel 2 if not errorlevel 3 goto stop
- :start
- echo.
- 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
- goto end
- :stop
- echo.
- 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
- goto end
- :end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement