Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question
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.


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

share|improve this answer
awesome, thanks!! – Timofei Davydik Jan 13 '12 at 12:35
@GAThrawn awesome name ;) Big fan of the Chiss grand admiral. – Tim Jan 13 '12 at 14:45
@Tim thanks, it's a rare person that spots the reference! – GAThrawn Jan 13 '12 at 14:52
It's worth pointing out that if your service does actually happen to have a name with whitespace then you can use double quotes and it will correctly identify the service. – MrEdmundo Apr 26 '13 at 15:08

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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