Jack 50
asked on
Windows Services start / stop
Trying to create a couple of batch files to start / stop services on a remote server (still on internal network)
Dont want to use PowerShell... just create a normal batch file.
Server its running the batch file from is 2016, and the remote server is 2008r2
Tried to do
sc \\machine stop "service"
but get an error
[SC] ControlService FAILED 1062
The service has not been started.
what have i done wrong?
Dont want to use PowerShell... just create a normal batch file.
Server its running the batch file from is 2016, and the remote server is 2008r2
Tried to do
sc \\machine stop "service"
but get an error
[SC] ControlService FAILED 1062
The service has not been started.
what have i done wrong?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks
The acce0ted comment is not an answer to your question.
You can redirect error output to suppress it by appending >2 nul