Use it when a Windows service will not start, repeatedly stops, hangs, or shows Running while clients still fail.
Service Failure
Service Failure narrows a Windows service symptom across Service Control Manager configuration, account/dependencies, process creation, runtime state and the service-specific workload.
1. Get-Service <name>; start and read SCM events.
2. Account/password, dependencies.
3. App logs.
4. Process Monitor for access denied.
5. Fix and restart.
SCM → account → binary → running
Context & applicabilityCommon mistakes · platform/version boundaries
Close with Inspect SCM state plus PID/checkpoint and service-specific events, validate the owned resource such as listener/device/file, then repeat the original client operation. and state what the evidence does not show.
Operational reference
Fast context before you go deeper.
Get-Service -Name <service> | Format-List *Primary Commands
Configuration and operational commands for this Topic.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Troubleshooting path Verify boundary
SCM configuration → start request → account/dependencies → process/PID → service state → endpoint/workload
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Service Running proves only SCM runtime state; it does not prove the service endpoint, dependency, data path or client-visible function is healthy.
- Keep the symptom, observed state and inferred cause as separate statements.
- Prefer evidence from the first failed boundary over broad configuration changes.
- A successful local check does not automatically prove the next dependency or end-to-end workload.
Get-WinEvent -FilterHashtable @{LogName='System';Level=1,2;StartTime=(Get-Date).AddHours(-24)}— system errors last 24hGet-WinEvent -FilterHashtable @{LogName='Application';Level=1,2;StartTime=(Get-Date).AddHours(-24)}— application errorsGet-ComputerInfo -Property OsName,OsBuildNumber,CsDomain— system contextGet-HotFix | Sort InstalledOn -Desc | Select -First 5— recent updates
ReferenceImportant terms & boundaries3 sections · depth on demand
What the evidence shows
Service Running shows only SCM runtime state, but it does not show the service endpoint, dependency, data path or client-visible function is healthy.
In depth
Read the service's definition before changing anything
C:\> sc.exe qc Spooler
SERVICE_NAME: Spooler
TYPE : 110 WIN32_OWN_PROCESS (interactive)
START_TYPE : 2 AUTO_START
ERROR_CONTROL : 1 NORMAL
BINARY_PATH_NAME : C:\Windows\System32\spoolsv.exe
DEPENDENCIES : RPCSS http
SERVICE_START_NAME : LocalSystem
C:\> sc.exe queryex Spooler # state, PID, Win32 exit code
C:\> sc.exe qfailure Spooler # recovery actions
System log events from the Service Control Manager
| Event | Meaning | Next check |
|---|---|---|
| 7000 + 1053 | Did not respond to the start request in time (30 s default) | Slow dependency, missing files; ServicesPipeTimeout only as a last resort |
| 7000 + 1069 | Logon failure | Service account password expired/changed, missing "Log on as a service" right |
| 7001 / 1068 | Dependency failed | sc.exe qc → DEPENDENCIES, start them first |
| 7023 / 7024 | Terminated with an error / service-specific error | Application log of the service itself |
| 7031 / 7034 | Crashed unexpectedly | Recovery actions, crash dumps (WER LocalDumps) |
| 7009 | Timeout waiting to connect | Same as 1053 |
Changing configuration safely with sc.exe config
The sc.exe config reference requires a space after each =:
sc.exe config MyApp start= delayed-auto
sc.exe config MyApp obj= "CORP\gmsa-myapp$" password= ""
sc.exe failure MyApp reset= 86400 actions= restart/60000/restart/60000/""/0
Without the space the command fails. Use delayed-auto for services that depend on network or other services being fully up.
Recovery actions are not a fix
Automatic restarts hide crash loops. Pair them with alerting on event 7031/7034 and investigate the first failure. For services using stored passwords, a group managed service account (gMSA) removes the most common cause of 1069.
Prove the service works, not just runs
Running in Get-Service only means SCM sees a process. Test the function: listening port (Get-NetTCPConnection -OwningProcess <PID>), a client request, or the service's health endpoint.
*The Windows service configuration and state above are illustrative examples, not captured from a lab or production system.*
Method
Service fails to start:
| SCM event / error | Meaning |
|---|---|
| 7000 + error 1053 | Service did not respond in time (default 30 s) |
| 7000 + error 1069 | Logon failure — wrong/expired service account password |
| 7001 / 1068 | Dependency failed |
| 7031 / 7034 | Terminated unexpectedly (crash) |
| 7038 | Could not log on as the configured account |
Get-WinEvent -FilterHashtable @{LogName='System';ProviderName='Service Control Manager'} -MaxEvents 20 | ft TimeCreated,Id,Message -Wrap
sc.exe qc MyService; sc.exe qfailure MyService
sc.exe failure MyService reset= 86400 actions= restart/60000/restart/60000/none/0
Also check the "Log on as a service" right and the application's own log.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Windows Troubleshooting → Service Failure. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/troubleshoot/windows/ · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Windows Troubleshooting → Service Failure reference map
Fast troubleshooting boundaries for Windows Troubleshooting → Service Failure.
| Boundary | Meaning | Evidence limit |
|---|---|---|
| Symptom | What the user/workload reports | Starting point, not root cause |
| Local state | What Windows reports at this boundary | Does not prove adjacent dependency |
| Correlated evidence | Multiple sources agree in one timeline | Strengthens hypothesis, not automatic causation |
| Verification | Original test succeeds after controlled change | Required to close the troubleshooting loop |