Pcornel
Windows · Windows Services

Service Troubleshooting

Cheat sheet · https://pcornel.dk/topic.php?topic=3020

Back to the Topic

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, dependencies
  • Get-CimInstance Win32_Service -Filter "Name='<name>'" | Select StartName,PathName,StartMode — account, path and mode
  • sc.exe qc <name> — configuration in CMD
  • Get-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

ItemMeaningEvidence boundary
Will not startSTOPPED/error after start requestSCM error + account/dependency/binary/log evidence
Stuck pendingSTART/STOP_PENDING too longservice initialization/control path + logs
Stops unexpectedlyRUNNING → STOPPEDprocess exit/service event + application logs
RUNNING but brokenSCM healthy, function unhealthyendpoint/dependency/application test
Access/logon failureAccount/token problemservice 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

Confirmation

Confirm action

Continue?