I need to stop service on remote machine. The problem is that service name contains whitespaces, and I get a message, that such service does not exist. sc \\machine stop "service name" How can I ...
I need to query a windows service for the path to it's executable via the command prompt. I think the way I would do this is:sc qc myServiceName, but when I do that, I get the following error: ...
I have a batch script that looks like: sc stop myservice sc start myservice it errors out because sc doesn't wait till the service is stopped. How do I restart a service with a script?