Service Control Manager
Cheat sheet · https://pcornel.dk/topic.php?topic=3015
Answer
The Service Control Manager is the Windows component that maintains the database of installed services and driver services and provides the control interface used to enumerate, start, stop, query and configure them. It begins early in system startup and exposes service-management operations through Windows service APIs.
Remember
- SCM stores/manages service configuration; applications should use service APIs/tools rather than editing the service database directly.
- SCM state is reported by the service/driver lifecycle, not an application-level health probe.
- Service controls are access-checked operations.
- The SCM can manage local and, through supported APIs/tools, remote service contexts.
- Pending states and timeouts are important evidence during start/stop troubleshooting.
First checks
Get-Service <name> | fl *— status, start type, dependenciesGet-CimInstance Win32_Service -Filter "Name='<name>'" | Select StartName,PathName,StartMode— account, path and modesc.exe qc <name>— configuration in CMDGet-WinEvent -FilterHashtable @{LogName='System';ProviderName='Service Control Manager'} -MaxEvents 20— SCM events
Verify in this order
SCM (services.exe) loads service config → starts/stops services → logs events
Where it usually breaks
First mismatch in definition/configuration → security context → service/task/process creation → runtime state → output/side effect → event/performance evidence; preserve identity/native error/pre-state before mutation.
Windows Services → Service Control Manager reference map
| Item | Meaning | Evidence boundary |
|---|---|---|
| Installed database | Service configuration records | query/configure through SCM APIs/tools |
| Control request | Start/stop/pause/etc. | request can be accepted before workload is healthy |
| Status | Pending/running/stopped/etc. | reported lifecycle state |
| Access check | SCM/service rights | management permission boundary |
| Event/log | Failure context | captures startup/control errors and timeouts |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3015