How do I restart a service on a remote machine in Windows? [closed]
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:
- Start / Run. Type "mmc".
- File / Add/Remove Snap-in... Click "Add..."
- Find "Services" and click "Add"
- 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"
I would suggest you to have a look at RSHD
You do not need to bother for a client, Windows has it by default.