Windows Command #37 – sc config (Windows OS)

IT professional operating a workstation beside server hardware in a data center.

sc config changes how a Windows service is configured. After learning how to sc query a service, sc start it, and sc stop it, the next step is changing settings such as whether the service starts automatically, manually, with a delay, or not at all.

Engineer using a laptop while monitoring server racks in a data center.
A Windows service is background software managed by the Service Control Manager; administrators commonly work with those services while maintaining systems and servers. Photo: Christina Morillo / Pexels.

Basic Syntax

The everyday form is sc.exe config ServiceName start= mode. Microsoft’s current sc.exe config reference says the command modifies a service’s entries in the registry and Service Control Manager database. The important beginner detail is unusual: the equals sign belongs to the option name, and there must be a space before the value.

sc.exe config ExampleService start= auto
sc.exe config ExampleService start= demand
sc.exe config ExampleService start= delayed-auto
sc.exe config ExampleService start= disabled
Secure2Cyber — changing a Windows service startup type with Services Manager and the sc config command.

The Four Startup Types You Will Use Most

  • start= auto — start the service automatically during normal system startup.
  • start= delayed-auto — start automatically, but after the main automatic-start services.
  • start= demand — manual/on-demand startup.
  • start= disabled — prevent the service from starting until its configuration is changed again.

Changing the startup type does not necessarily change the service’s current running state. A service can be running while configured for manual startup, or stopped while configured for automatic startup. Use sc query ServiceName to inspect the current state and use sc start or sc stop when you actually need to change whether it is running.

Use the Service Name

sc.exe expects the service’s internal service name, which may differ from the friendly display name shown in the Services app. Before changing anything, query the service or inspect its properties. Microsoft’s broader SC service-configuration documentation explains that Sc.exe communicates with the Service Control Manager and can query or modify installed-service configuration.

Example: Change a Service to Manual

sc.exe query Spooler
sc.exe config Spooler start= demand
sc.exe query Spooler

The first command confirms that the service exists and shows its current state. The second changes the saved startup type to Manual. The third checks the service again. Remember that sc query reports the running state, not every stored configuration field; for deeper configuration inspection, a later Windows Command lesson can cover sc qc.

A directly relevant Windows discussion shows sc config <servicename> start=demand as the command-line way to switch a service from Automatic to Manual.

The Space After = Matters

This is one of the easiest sc.exe syntax mistakes to make. Write start= auto, not start=auto. Microsoft specifically documents that each option includes the equals sign and that a space is required between the option and its value. If a command fails unexpectedly, check the spacing before troubleshooting anything more complicated.

Run Elevated and Change Services Carefully

Service configuration commonly requires an elevated Command Prompt. More importantly, do not disable unfamiliar Windows services just to experiment. Services can support networking, authentication, storage, security, updates, printing, remote management, and other parts of the operating system. Practice on a lab VM or with a service whose purpose and dependencies you understand. For broader troubleshooting, review OSITC.003 — Windows Process Troubleshooting.

Quick Lab

  1. Open Command Prompt as Administrator on a Windows lab machine.
  2. Choose a noncritical test service whose purpose you understand.
  3. Run sc.exe query ServiceName.
  4. Change its startup type with sc.exe config ServiceName start= demand.
  5. Change it back to its original setting when finished.
  6. Do not assume changing the startup type started or stopped the service; verify the running state separately.

Knowledge Check + Answers

  1. What does sc config change? Stored Windows service configuration.
  2. What does start= auto mean? The service is configured for automatic startup.
  3. What does start= demand mean? Manual/on-demand startup.
  4. What does start= disabled mean? The service cannot start until its configuration is changed.
  5. Does sc config automatically start or stop the service? No. Configuration and current running state are separate.
  6. What easy syntax detail causes failures? Forgetting the required space after the equals sign.

Previous Windows Commands

Editor’s Note

The featured image uses approved realistic editorial photography with one clear subject and no poster-style typography, UI boxes, fake infographic layout, or dashboard composition. The body image is a separate relevant photograph. The YouTube and Reddit embeds are directly about Windows service startup configuration and sc config.

BitcoinVersus.Tech is not a financial advisor. Content is provided for informational and educational purposes.

4 responses to “Windows Command #37 – sc config (Windows OS)”

  1. […] qc asks Windows for the stored configuration of a service. It is the natural read-only follow-up to Windows Command #37 — sc config. Where sc config changes settings, sc qc lets you inspect important settings such as the startup […]

    Like

  2. […] type, or replace its executable path. Those are separate operations handled by commands such as sc config, sc start, and sc […]

    Like

Leave a comment