Advertisement
DeveshL

vmware services

Jan 28th, 2021
1,458
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 1.19 KB | None | 0 0
  1. @echo off
  2. echo Start/Stop VMware Workstation services
  3. echo.
  4. echo 1. Start
  5. echo 2. Stop
  6. echo.
  7. choice /c:12
  8.  
  9. If errorlevel 1 if not errorlevel 2 goto start
  10. If errorlevel 2 if not errorlevel 3 goto stop
  11.  
  12. :start
  13. echo.
  14. sc config VMUSBArbService start= demand
  15. net start VMUSBArbService
  16. sc config VMAuthdService start= demand
  17. net start VMAuthdService
  18. sc config VMwareHostd start= demand
  19. net start VMwareHostd
  20. sc config VMnetDHCP start= demand
  21. net start VMnetDHCP
  22. sc config "VMware NAT Service" start= demand
  23. net start "VMware NAT Service"
  24. netsh interface set interface "VMware Network Adapter VMnet1" ENABLED
  25. netsh interface set interface "VMware Network Adapter VMnet8" ENABLED
  26. goto end
  27.  
  28. :stop
  29. echo.
  30. net stop VMwareHostd
  31. sc config VMwareHostd start= disabled
  32. net stop VMUSBArbService
  33. sc config VMUSBArbService start= disabled
  34. net stop VMAuthdService
  35. sc config VMAuthdService start= disabled
  36. net stop VMnetDHCP
  37. sc config VMnetDHCP start= disabled
  38. net stop "VMware NAT Service"
  39. sc config "VMware NAT Service" start= disabled
  40. netsh interface set interface "VMware Network Adapter VMnet1" DISABLED
  41. netsh interface set interface "VMware Network Adapter VMnet8" DISABLED
  42. goto end
  43.  
  44. :end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement