NET STOP a Service Running on Server from Another Machine
Posted on 2009-05-13
I have a computer (windows 2003 server) from which I want to run a batch file and part of that batch file is to stop a service running on another computer (normally accessed by: \\computersname.) I've tried this syntax:
\\computername net stop "servicename"
and got error message that directory, filename or syntax incorrect
and I've tried
net stop "servicename" \\computername
and get the error message that the synax of this command is:
I can run the net stop command on the server machince locally, but I need to run it from a different computer and am perplexed what I'm doing wrong here.
Anyone with thoughts on this?