0

I am attempting to start/stop services via a script. The command is
sc stop "service name"
It is failing with this error
{SC} OpenService FAILED 123:

Any assistance would be appreciated.

3
Contributors
4
Replies
5
Views
7 Years
Discussion Span
Last Post by gerbil
0

And be sure to use the Service Name, not the display name. check via ..
sc query

That was it. I used this script several months ago and it worked using the display name. Using the service name as displayed with the query commmand worked. thanks a million.

0

Occasionally it would, because sometimes Service Name is the same as the Display Name, as you would have noticed.
Cheers.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.