Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Can I (How can I) remotely start and stop a Windows Service running on another server from the command line?

My server is running Windows Server 2003.

share|improve this question
up vote 10 down vote accepted

Sure thing. Provided you're logged-on with an account that has "Administrator" rights on the remote server, just do:

sc \\remote-server stop service-name

and

sc \\remote-server start service-name

The sc command runs asynchronously to the service control manager, so you may want to query the service with the command below to insure it actually stopped before you try to start it again:

sc \\remote-server query service-name
share|improve this answer
    
Thank you. That was exactly what I wanted. – Rising Star Jul 6 '10 at 19:04

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.