The Role of Windows Services
In Windows 11, background applications that run continuously without a graphical interface are called Services. Everything from the Windows Update engine to the Bluetooth support system and third-party antivirus software operates as a service.
While most users interact with services by pressing Win + R and typing services.msc to open the graphical Service Control Manager, this method is slow and cannot be automated. If you are an IT administrator who needs to write a batch script to remotely restart a frozen print spooler on 50 different computers, you need a command-line solution.
The sc (Service Control) command is the native, built-in tool for querying, starting, stopping, and permanently modifying Windows services directly from the Command Prompt.
Step 1: Open the Command Prompt
Because modifying background services affects the core stability of the operating system, you must run the sc command with elevated privileges.
- Press the Windows Key, type
cmd, right-click on Command Prompt, and select Run as administrator.
Step 2: Query the Status of a Service
Before you stop or start a service, you need to know its exact Service Name (which is often different from its friendly “Display Name”). For example, the Print Spooler service is actually named Spooler, and Windows Update is wuauserv.
To check the current running state of the Print Spooler, type:
sc query Spooler
The output will display the STATE of the service. It will typically say RUNNING, STOPPED, or STOP_PENDING (if it is currently frozen while trying to shut down).
Step 3: Stopping and Starting Services
If a printer is jammed and refusing to clear a document from the queue, the fastest way to fix it is to forcefully stop and restart the Spooler service.
To stop the service, run:
sc stop Spooler
To start it back up again, run:
sc start Spooler
Note: If you receive an “Access Denied” error (Error 5), it means you forgot to open the Command Prompt as an Administrator.
Step 4: Changing the Startup Type
Sometimes you need to permanently prevent a service from booting when Windows starts. For example, if a legacy piece of software installed a background updater service that constantly consumes CPU resources, you can use sc to permanently disable it.
You do this using the config command, followed by the start= parameter. (Crucial Syntax Rule: You must place a space after the equals sign, but no space before it).
To permanently disable the fictitious “BadUpdater” service:
sc config BadUpdater start= disabled
To set it back to start automatically when Windows boots:
sc config BadUpdater start= auto
To set it to Manual (meaning it only runs when a user actively launches the program):
sc config BadUpdater start= demand
Step 5: Safely Deleting a Service
If you uninstalled a program, but its background service was left behind due to a sloppy uninstaller, the service will constantly throw errors in the Windows Event Viewer. You can use sc to completely eradicate the service from the registry.
Warning: Never delete a core Windows service, or your PC will fail to boot.
To completely delete a broken third-party service, run:
sc delete BrokenServiceName
The command prompt will return [SC] DeleteService SUCCESS, and the service will instantly vanish from the services.msc graphical interface.