List Services via CMD

1

I am using the wmic service get displayname, name, state command to list Windows services.

I would like to know if it is possible to list one or more specific services via CMD.

In this scenario I want to list the FirebirdServerDefaultInstance and SQLServerAgent Services Status.

    
asked by anonymous 17.05.2018 / 19:14

1 answer

1

You can use the where clause as follows:

wmic service where 'name like "FirebirdServerDefaultInstance " or name like "SQLServerAgent"' get displayname,name,state
    
17.05.2018 / 20:30