Service Control - Manage Windows Services
The sc command (Service Control) is a command-line utility that communicates with the Service Control Manager and services. It's used to query, start, stop, configure, and manage Windows services.
Services are background processes that run without user interaction. The sc command provides administrators with powerful control over these services, making it essential for system administration and troubleshooting.
Advertisement
[ Insert Google AdSense Banner Code Here ]
Diagnose and fix issues with Windows services that won't start.
Set services to start automatically, manually, or be disabled.
Automate service management tasks in batch scripts or PowerShell.
Manage services on remote computers across your network.
sc query Display status of all services or query a specific service.
sc query Spooler Check the current status of the Print Spooler service.
sc qc Spooler Query the configuration details of the Print Spooler service.
sc start Spooler Start the Print Spooler service.
sc stop Spooler Stop the Print Spooler service.
sc config Spooler start= auto Set the Print Spooler to start automatically at boot.
Note the space after the equals sign in sc commands! For example:
sc config Spooler start= auto
This is required syntax for the sc command. Without the space, the command will fail. Also useful: use sc query state= all to list all services regardless of their state.
Practice sc commands in the interactive terminal below: