Command Prompt or PowerShell. Supports local and remote service contexts subject to SCM access, RPC/connectivity and authorization.
sc.exe
sc.exe
Windows command-line service control/configuration utility that maps to Service Control Manager functions. It can query, start, stop and modify services; exact subcommand determines whether the operation is read-only or state-changing.
Use `sc.exe query <service>` for low-level SCM state evidence and `sc.exe qc <service>`/related query commands for configuration. Use start/stop/config only after validating impact and exact syntax.
Read the owning component’s state and event evidence, validate the effective resource/property, then repeat the exact operation that originally failed. Repeat the original workload/request before closure.
Privilege Not recordedState impact Changes stateProduction Unknown
Field glossary
Important fields projected from persisted Command guidance.
Service name, state, type, exit codes/checkpoint/wait hint for queriesImportant persisted output field; use surrounding guidance for interpretation.
configuration fields such as start type, binary path, account and dependencies for config operations.Important persisted output field; use surrounding guidance for interpretation.
Used in these Topics
Each relation carries both placement role and operational semantic: verifies, configures, troubleshoots, collects evidence, changes state or general.
Evidence boundary
What this output can establish — and where you must not over-claim.
Supports the state directly exposed by sc.exe for the selected object and execution context.
Does not by itself prove root cause, adjacent dependency health, effective end-to-end behavior, return-path health or workload recovery.
Read the owning component’s state and event evidence, validate the effective resource/property, then repeat the exact operation that originally failed. Repeat the original workload/request before closure.
Command guidance
Execution context
Command Prompt or PowerShell. Supports local and remote service contexts subject to SCM access, RPC/connectivity and authorization.
Use when
Use sc.exe query <service> for low-level SCM state evidence and sc.exe qc <service>/related query commands for configuration. Use start/stop/config only after validating impact and exact syntax.
Important fields
Service name, state, type, exit codes/checkpoint/wait hint for queries; configuration fields such as start type, binary path, account and dependencies for config operations.
Common problems
Using display name instead of service name; forgetting the unusual required spacing in some sc.exe config options; editing service configuration before proving the issue; treating STATE RUNNING as function health.
Operational impact
Mixed. Query operations are low impact; start/stop/config/create/delete and related subcommands change service/system state and can be high impact.
Runtime cautions
Capture query/config before state changes. After a control/config operation, re-query and perform a role-specific functional check.
Technical context
The generic sc.exe leaf represents multiple subcommands, so always reason about the specific operation and safety level.
Variants · known-good and broken output
Read the stored sample against its authored expected state and interpretation, then return to the Command evidence boundary for what the observation can and cannot prove.
Query one serviceObserved · Windows
SERVICE_NAME: Spooler
TYPE : 110 WIN32_OWN_PROCESS (interactive)
STATE : 4 RUNNING
(STOPPABLE, NOT_PAUSABLE, ACCEPTS_SHUTDOWN)
WIN32_EXIT_CODE : 0 (0x0)SCM reports service running
SCM reports the service lifecycle state as RUNNING. Print functionality and dependencies still require separate verification.
Supports the state directly exposed by sc.exe for the selected object and execution context.
Does not prove: Does not by itself prove root cause, adjacent dependency health, effective end-to-end behavior, return-path health or workload recovery.Read the owning component’s state and event evidence, validate the effective resource/property, then repeat the exact operation that originally failed. Repeat the original workload/request before closure.
Known-good state patternKnown-good · Windows / Windows Server / PowerShell
State pattern: expected object is present, identity/scope matches the controlled test, terminal state is healthy and relevant counters/results are internally consistent.healthy/terminal
sc.exe — Known-good. State pattern: expected object is present, identity/scope matches the controlled test, terminal state is healthy and relevant counters/results are internally consistent. Why: this command exposes Windows component/runtime state state. What it proves: only the selected object/context and fields directly returned here. What it does not prove: root cause, adjacent dependency health or end-to-end workload success. Next check: Read the owning component’s state and event evidence, validate the effective resource/property, then repeat the exact operation that originally failed. Then repeat the original workload/request and verify the return path.
Supports the state directly exposed by sc.exe for the selected object and execution context.
Does not prove: Does not by itself prove root cause, adjacent dependency health, effective end-to-end behavior, return-path health or workload recovery.Read the owning component’s state and event evidence, validate the effective resource/property, then repeat the exact operation that originally failed. Repeat the original workload/request before closure.
Transitional state patternTransitional · Windows / Windows Server / PowerShell
State pattern: object exists but negotiation, convergence, reconciliation, retry or recovery is still progressing; timers/counters or stage markers should change between samples.in-progress
sc.exe — Transitional. State pattern: object exists but negotiation, convergence, reconciliation, retry or recovery is still progressing; timers/counters or stage markers should change between samples. Why: this command exposes Windows component/runtime state state. What it proves: only the selected object/context and fields directly returned here. What it does not prove: root cause, adjacent dependency health or end-to-end workload success. Next check: Read the owning component’s state and event evidence, validate the effective resource/property, then repeat the exact operation that originally failed. Then repeat the original workload/request and verify the return path.
Supports the state directly exposed by sc.exe for the selected object and execution context.
Does not prove: Does not by itself prove root cause, adjacent dependency health, effective end-to-end behavior, return-path health or workload recovery.Read the owning component’s state and event evidence, validate the effective resource/property, then repeat the exact operation that originally failed. Repeat the original workload/request before closure.
Broken state patternBroken · Windows / Windows Server / PowerShell
State pattern: expected object is absent, denied, unresolved, failed or divergent from the controlled test; error/result fields identify the directly observed boundary, not automatic root cause.failed/degraded
sc.exe — Broken. State pattern: expected object is absent, denied, unresolved, failed or divergent from the controlled test; error/result fields identify the directly observed boundary, not automatic root cause. Why: this command exposes Windows component/runtime state state. What it proves: only the selected object/context and fields directly returned here. What it does not prove: root cause, adjacent dependency health or end-to-end workload success. Next check: Read the owning component’s state and event evidence, validate the effective resource/property, then repeat the exact operation that originally failed. Then repeat the original workload/request and verify the return path.
Supports the state directly exposed by sc.exe for the selected object and execution context.
Does not prove: Does not by itself prove root cause, adjacent dependency health, effective end-to-end behavior, return-path health or workload recovery.Read the owning component’s state and event evidence, validate the effective resource/property, then repeat the exact operation that originally failed. Repeat the original workload/request before closure.