Service Troubleshooting
Cheat sheet · https://pcornel.dk/topic.php?topic=3020
Answer
Service troubleshooting turns "the service won't start" into a specific cause: its configuration in the Service Control Manager, the service account and its password, a dependency, the program file, or the application itself. System log events 7000–7038 usually point to which.
Remember
- Start with service name, not only display name.
- Separate configured state from runtime state and application health.
- SCM/start success is not end-to-end proof.
- Service accounts and dependencies are common first boundaries but should be evidenced before changing them.
- Repeated restarts can destroy timing/crash evidence and create misleading secondary errors.
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
start requested → account logon → binary runs → reports Running in time
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 Troubleshooting reference map
| Item | Meaning | Evidence boundary |
|---|---|---|
| Will not start | STOPPED/error after start request | SCM error + account/dependency/binary/log evidence |
| Stuck pending | START/STOP_PENDING too long | service initialization/control path + logs |
| Stops unexpectedly | RUNNING → STOPPED | process exit/service event + application logs |
| RUNNING but broken | SCM healthy, function unhealthy | endpoint/dependency/application test |
| Access/logon failure | Account/token problem | service account + rights/credentials/target authorization |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3020