Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 have a commercial software that installed a lot of service started with the same prefix, i.e

Product Service A, Product Service B ...

Now I need to stop all these services, but sc doesn't seem to support wildcard, is there any workaround?

share|improve this question
up vote 1 down vote accepted

Use Powershell and toy around with get-service, start-service and stop-service. It should be possible to either feed a complete list to stop-service, either via a pipe or a loop over from the output from get-service.

share|improve this answer
That's cool, I'm going to deploy it today – warl0ck Nov 19 '12 at 3:40

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.