Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I restart a service on a remote machine in Windows? [closed]

People also ask

Can you restart a machine remotely?

Restarting a computer using the command line Log in as an administrator. Open Command Prompt from the Start menu. Type 'shutdown /i' in the Command Prompt window and then press ↵ Enter. A window will open with the option to restart the remote computer.

How do I restart a VM remotely?

Procedure. Use the Restart Desktop command. Select Options > Restart Desktop from the menu bar. Right-click the remote desktop icon and select Restart Desktop.


You can use the services console, clicking on the left hand side and then selecting the "Connect to another computer" option in the Action menu.

If you wish to use the command line only, you can use

sc \\machine stop <service>

You can use mmc:

  1. Start / Run. Type "mmc".
  2. File / Add/Remove Snap-in... Click "Add..."
  3. Find "Services" and click "Add"
  4. Select "Another computer:" and type the host name / IP address of the remote machine. Click Finish, Close, etc.

At that point you will be able to manage services as if they were on your local machine.


You can use System Internals PSEXEC command to remotely execute a net stop yourservice, then net start yourservice


Using command line, you can do this:

AT \\computername time "NET STOP servicename"
AT \\computername time "NET START servicename"