Windows: List Services – CMD & PowerShell

The services in Windows can be listed using the Service Manager tool.

To start the Service Manager GUI, press Win keybutton to open the start menu, type in services to search for the Service Manager and press Enter to launch it.

The services can also be listed using the command-line prompt (CMD) or the PowerShell.

In this note i am showing how to list the services and how to search for a specific service in Windows using the command-line prompt (CMD) or the PowerShell.

Cool Tip: List processes in Windows from the CMD! Read more →

List Services Using Command Line (CMD)

List all services:

C:\> sc queryex type=service state=all

List service names only:

C:\> sc queryex type=service state=all | find /i "SERVICE_NAME:"

Search for specific service:

C:\> sc queryex type=service state=all | find /i "SERVICE_NAME: myService"

Get the status of a specific service:

C:\> sc query myService

Get a list of the running services:

C:\> sc queryex type=service
- or -
C:\> sc queryex type=service state=active
-or -
C:\> net start

Get a list of the stopped services:

C:\> sc queryex type=service state=inactive

Cool Tip: Start/Stop a service in Windows from the CMD & PowerShell! Read more →

List Services Using PowerShell

List all services:

PS C:\> Get-Service

Search for specific service:

PS C:\> Get-Service | Where-Object {$_.Name -like "*myService*"}

Get the status of a specific service:

PS C:\> Get-Service myService

Get a list of the running services:

PS C:\> Get-Service | Where-Object {$_.Status -eq "Running"}

Get a list of the stopped services:

PS C:\> Get-Service | Where-Object {$_.Status -eq "Stopped"}

4 Replies to “Windows: List Services – CMD & PowerShell”

  1. In
    “sc queryex type=service state=all”
    needs to be space after the “type=” and the “state=” to be:
    “sc queryex type= service state= all”

  2. Hello everyone
    If i want to run all the services by one command in cmd is that possible ?
    Or i have to run one by one by run it like this

    sc config “service name” start=auto

    Or
    Net start “service name”

  3. yes ,it possible do this:
    for %%s in (
    “BitLocker Drive Encryption Service”
    “Bluetooth Audio Gateway Service”
    “Bluetooth Support Service”
    “Connected Devices Platform Service”
    “Data Usage”
    “Diagnostic Policy Service”
    “Diagnostic Service Host”
    “Diagnostic System Host”
    “Diagnostic Execution Service”
    “Distributed Link Tracking Client”
    “Downloaded Maps Manager”
    “Encrypting File System (EFS)”
    “Fax”
    “File History Service”
    “Geolocation Service”
    “Language Experience Service”
    “Offline Files”
    “Phone Service”
    “Plug and Play”
    “Print Spooler”
    “Printer Extensions and Notifications”
    “Program Compatibility Assistant Service”
    “Parental Controls”
    “Payments and NFC/SE Manager”
    “Recommended Troubleshooting Service”
    “Remote Desktop Configuration”
    “Remote Desktop Services”
    “Remote Desktop Services UserMode Port Redirector”
    “Routing and Remote Access”
    “Retail Demo Service”
    “Smart Card”
    “Smart Card Device Enumeration Service”
    “Smart Card Removal Policy”
    “Secondary Logon”
    “Telephony”
    “Touch Keyboard and Handwriting Panel Service”
    “WalletService”
    “Windows Biometric Service”
    “Windows Error Reporting Service”
    “Windows Event Collector”
    “Windows Image Acquisition (WIA)”
    “Windows Insider Service”
    “Windows Push Notifications System Service”
    “Windows PushToInstall Service”
    “Windows Search”
    “Windows Update”
    “Windows Update Medic Service”
    “Xbox Accessory Management Service”
    “Xbox Live Auth Manager”
    “Xbox Live Game Save”
    “Xbox Accessory Management Service”
    “Xbox Live Networking Service”

    )do (for /F “tokens=1,* delims== ” %%a in (‘ sc GetKeyName %%s ^| find “=” ‘) do (set “serviceName=%%b” & sc config %%b start=Auto & net start %%b))

  4. bAtCh gUrUs!!!! lol

Leave a Reply