Alex Rivera | Logout

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

Asked 2008-10-09T15:32:35.680
146

Sometimes while debugging, I need to restart a service on a remote machine. Currently, I'm doing this via Remote Desktop. How can it be done from the command line on my local machine?

Edit
Report

1 Answer

228

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>
answered 2008-10-09T15:36:55.640

Your Answer