Super User is a question and answer site for computer enthusiasts and power users. 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

Currently, we have setup a .BAT file which lists all services to start / stop them eg.



We add new services all the time and the list grows and is difficult to maintain the batch file.

Is it possible to use a WILDCARD like 'SC start SERVICE*' or something?

share|improve this question
What windows version? – Endoro Apr 24 '13 at 15:22

You can use wmic and SQL-ish wildcard syntax.

From a cmd console:

wmic service where "name like 'SERVICE%'" call startservice

From a .bat script:

wmic service where "name like 'SERVICE%%'" call startservice

Available verbs include startservice, stopservice, pauseservice, resumeservice, and others. Do wmic service call /? for more info.

share|improve this answer
The query language is called WQL, BTW. It's a subset of SQL. – Bob Apr 25 '13 at 17:58
@Bob - Oh. Ya learn something new every day. :> – rojo Apr 25 '13 at 17:59
Just wanted to add one more thing. I ran into an error where the service name was not recognized. Turns out a service has a Service Name and a Display Name. The Service Name should be used, not the Display Name. You can find the Service Name with sc query – jdramer May 20 '15 at 14:47

Easy, via Powershell:

Get-service SERVICE* | stop-service -force

Get-service SERVICE* | start-service
share|improve this answer

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.