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 fix it? Thanks
|
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.
How can I fix it? Thanks | |||
|
feedback
|
|
If you go into the Services admin console and double-click the service, you should see that the service has a "Service name" that is shorter and has no white space, you can use this name instead of the full display name. Example: For this service below, that has spaces in its display name, you would use this command line:
| |||||||
|
feedback
|