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

link|improve this question
feedback

1 Answer

up vote 4 down vote accepted

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:

sc \\machine stop adobearmservice

enter image description here

link|improve this answer
awesome, thanks!! – Timofei Davydik Jan 13 at 12:35
@GAThrawn awesome name ;) Big fan of the Chiss grand admiral. – Tim Jan 13 at 14:45
@Tim thanks, it's a rare person that spots the reference! – GAThrawn Jan 13 at 14:52
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.