Restarting services on a remote domain computer

  • Hi All,

    Got a quick question general question.  How do I stop/start/restart a service on another machine.  I would like a script to stop and start a service on another domain machine through the command prompt.  I can connect to the remote machine through computer management and restart the service.  I need to be able to be able to do this from a command prompt.  If I create a share through net use and connect to the remote machine and use net stop to stop a service, it stops the service on the local machine and not the remote machine that I want to stop it on. 

    Feedback is appreciated.

    Vik.

  • Systernals has PsTools which will allow you to psexec( execute a remote command) on another computer.

    http://www.sysinternals.com

  • Thanks Steve - that was exactly what I was looking for.

  • FYI- If you have windows resource kit installed, you can do it with sc.exe

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply