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

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

1 Answer 1

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.