This guide shows you how to list, inspect, and manage running Windows services directly from the command line—no extra software needed. You’ll learn the essential commands for sc and net, how to filter for running services, and how to restart or stop them when needed. Nothing special is required; just a standard Windows command prompt or PowerShell window.
What You’ll Need
- A Windows PC (any recent version: Windows 10, 11, or Windows Server).
- Permission to open Command Prompt or PowerShell. To view services, a normal user account works. To start/stop/restart services, you need Administrator privileges.
Step-by-Step
- Open Command Prompt or PowerShell. Press Win + R, type
cmd(orpowershell), and press Enter. For admin actions, right-click the Start button and select “Terminal (Admin)” or “Command Prompt (Admin)”. - List all services with their status. Run the basic command:
sc query
This shows every service, its state (RUNNING, STOPPED, etc.), and its service name (the short name used in commands). - See only running services. Use the
findstrfilter to pick out lines that say “RUNNING”:sc query | findstr /i "SERVICE_NAME STATE RUNNING"
This returns a compact list of service names and their state. The/imakes the search case‑insensitive. - Get details of a specific service. To see the full configuration and current status of one service, use its exact service name (not the display name). For example:
sc query spooler
This shows the state, start type, and more for the Print Spooler service. - Use the older
net startcommand (quick list). If you just want a plain list of running services, run:net start
It outputs only the display names of running services, with no extra columns. - Filter by service name pattern. If you know part of the service name, use
findstrwith a wildcard:sc query | findstr /i "sql"
This shows all services with “sql” in their name (including stopped ones). - Stop a service. From an admin prompt, run:
sc stop <service_name>
For example,sc stop spoolerstops the Print Spooler. Usenet stop <service_name>as an alternative. - Start a service. Similarly, run:
sc start <service_name>
ornet start <service_name>. - Restart a service. There is no one‑line
sc restart. Do it in two steps:sc stop <service_name>thensc start <service_name>.
Alternatively, use PowerShell:Restart-Service <service_name>(run as admin). - Export the full list to a file. To save the output for later review or scripting:
sc query > services.txt
This creates a file in the current folder with all service details.
Common Mistakes
- Using the display name instead of the service name. Commands like
sc stopexpect the short service name (e.g.,spooler), not the display name (“Print Spooler”). Find the service name in theSERVICE_NAMEfield ofsc query. - Forgetting to run as Administrator. Starting or stopping services requires elevated privileges. If you get “Access is denied,” close the window and reopen it as admin.
- Typing the service name with spaces. Service names never contain spaces. If you see a space, you’re probably looking at the display name.
- Using
net startto stop a service.net startonly lists and starts services; to stop, usenet stoporsc stop.
Tips
- Use
sc query state= allto see every service, including disabled ones. The defaultsc queryshows only active services. Addstate= allto see everything. - Combine with
findstrfor powerful filtering. For example,sc query state= all | findstr /i "RUNNING"shows all running services, even those that rarely run. - Learn the service name quickly. Run
sc queryand note theSERVICE_NAMEline under each service. That’s what you’ll use in commands. - Use PowerShell for more advanced queries.
Get-Service | Where-Object {$_.Status -eq 'Running'}gives a clean list with display names and status. - Check dependencies before stopping. Some services rely on others. Use
sc qc <service_name>to see dependencies. Stopping a required service can break other features.
Troubleshooting
“Access is denied” when starting/stopping. You are not running as Administrator. Right‑click the Command Prompt or PowerShell icon and choose “Run as administrator”.
“The specified service does not exist as an installed service.” The service name is wrong. Double‑check the exact service name from sc query. Remember it’s case‑insensitive but must be exact in spelling.
Service won’t stop. Some services have dependencies or are protected by the system. Try sc stop <name> again after a few seconds. If it still fails, check the event log (Event Viewer → Windows Logs → System) for errors. You may need to stop dependent services first.
Output is too long. Use sc query | more to scroll page by page, or redirect to a file as shown above.
Command not recognized. Make sure you’re in the correct environment. sc and net are built into Windows; if they don’t run, your PATH may be broken. Use the full path: C:\Windows\System32\sc.exe
Frequently Asked Questions
How do I see only running services in one line?
Run sc query | findstr /i "RUNNING" — it shows the service name and state lines for running services only.
What’s the difference between sc and net?sc is the modern Service Control tool with more detailed options (query, config, start, stop). net start is older and simpler, mainly for listing and starting services.
Can I restart a service with one command?
Not with sc directly. Use net stop <service> && net start <service> in a single line, or PowerShell’s Restart-Service.
How do I find the service name if I only know the display name?
Run sc query and look for the display name in the DISPLAY_NAME field; the SERVICE_NAME right above it is what you need.
Why can’t I stop a service even as admin?
Some services are critical to Windows and are protected. Also, if the service is stuck, you may need to force stop via Task Manager (which is not recommended unless necessary). Check the service’s dependencies with sc qc.
Is there a way to see services on a remote computer?
Yes, use sc \\computername query (requires appropriate permissions). For example, sc \\server01 query.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- How to Turn Off Shutter Sound on iPhone
- VPN Setup on iPhone SE: Step-by-Step Guide
- Fix Internet Not Working on Windows 11
- Fix Right Click Not Working in Firefox
- Compare Two Columns with Comma Separated Values in Excel
- How to Limit Ad Tracking on iPhone Apps