Learn how to use the Windows Service Controller (SC) command to troubleshoot and investigate Windows services from the command line.
Introduction
Windows services are background processes that perform essential operating system and application functions. Services can start automatically when Windows boots, run on demand, or be launched by applications when required.
When troubleshooting software, networking, printing, authentication, or system performance issues, one of the first things to check is whether the relevant service is running correctly.
The SC (Service Controller) command is a powerful built-in Windows utility that allows administrators and support staff to query, monitor, and manage services directly from the command line.
What Is SC?
SC.exe is included with Windows and provides a command-line interface for interacting with Windows services.
Common uses include:
- Checking service status
- Viewing service configuration
- Starting services
- Stopping services
- Investigating dependencies
- Troubleshooting application failures
View the Status of a Service
To check whether a service is running: sc query spooler
Example output:
SERVICE_NAME: spooler
TYPE : 110 WIN32_OWN_PROCESS
STATE : 4 RUNNING
Common Service States
| State | Meaning |
|---|---|
| RUNNING | Service is operating normally |
| STOPPED | Service is not running |
| START_PENDING | Service is starting |
| STOP_PENDING | Service is stopping |
| PAUSED | Service is temporarily paused |
Find Running Services
To view all active services: sc query
This displays currently running services on the system.
Search for a Specific Service
You may know the display name but not the service name.
For example: sc query | find “print”
Or use PowerShell: Get-Service *print*
View Detailed Service Information
To view service configuration: sc qc spooler
Example output:
SERVICE_NAME: spooler
START_TYPE : AUTO_START
BINARY_PATH_NAME : C:\Windows\System32\spoolsv.exe
This displays:
- Startup type
- Executable path
- Dependencies
- Service account
Check Service Dependencies
Some services rely on other services to function.
To view dependencies: sc qc wuauserv
Look for: DEPENDENCIES
If a dependency is unavailable, the service may fail to start.
Investigating Startup Types
To review startup configuration: sc qc servicename
Common startup types:
| Type | Description |
|---|---|
| AUTO_START | Starts automatically |
| DEMAND_START | Starts manually |
| DISABLED | Cannot start until enabled |
Query Services on Remote Computers
In environments where firewall and permissions allow: sc \\server01 query spooler
This can be useful for remote troubleshooting.
Useful SC Commands
Query a Service
sc query servicename
View Configuration
sc qc servicename
Start a Service
sc start servicename
Stop a Service
sc stop servicename
List Running Services
sc query
Troubleshooting Tips
When investigating an application issue:
- Identify which Windows service supports the application.
- Verify the service is running.
- Check service dependencies.
- Review startup configuration.
- Confirm the service account is valid.
- Review Event Viewer for related errors.
Many application failures can be traced back to a service that has stopped, failed to start, or lost access to a required dependency.
Key Takeaway
The SC command is one of the most useful built-in Windows troubleshooting tools. Whether you’re diagnosing printing issues, application failures, Windows Update problems, or service startup errors, SC provides a fast and reliable way to investigate the health and configuration of Windows services without needing to navigate through graphical management tools.
