This is primarily a note-to-self, as I keep searching for it each time I need it and most references I find through Google are dated, ending up inventing it again and again.
Stopping the VMware services from a command line
Stopping the VMware services requires administrative privileges, so in Windows Vista, 2008 and 7, start the command prompt with right-click > Run As Administrator from the start-menu shortcut. Then, in the command prompt, simply type these five commands (yes, there are five services):
NET STOP "VMware Workstation Server" NET STOP "VMware USB Arbitration service" NET STOP "VMware NAT Service" NET STOP "VMware DHCP Service" NET STOP "VMware Authorization Service"
If you run them in this order, you won’t get a prompt for shutting down other dependent services. You can put these lines in a batch file
@echo off on top, place the batch file in your path and you can simply call it by typing
stop-vmware from the DOS prompt.
start-vmware.batfile in such a way that it starts VMware Workstation at the end
Starting the VMware services from a command line
You can start them best by running the commands in reverse order, this will prevent you’ll get warnings or errors on dependent services:
NET START "VMware Authorization Service" NET START "VMware DHCP Service" NET START "VMware NAT Service" NET START "VMware USB Arbitration service" NET START "VMware Workstation Server"
Just like with stopping the services, you can place these in a batch file, call it
start-vmware.bat, place it in your path and then call it by typing
start-vmware at the command prompt.
Starting or stopping VMware services interactively in Windows
Just do the following:
- Type “services” in the start-button search and click the Local Services it finds
- Rightclick on each of the services that start with the name “VMware” and select “Start” or “Stop”.
That’s all there is to it.