Dependencies
Cheat sheet · https://pcornel.dk/topic.php?topic=3019
Answer
A service dependency declares that another service or load-order group must be started before the dependent service can start. Dependencies help establish lifecycle ordering but do not guarantee that the prerequisite service is functionally healthy.
Remember
- Dependency means required lifecycle ordering, not end-to-end application health.
- SCM can start required prerequisite services when starting a dependent service.
- A prerequisite can be RUNNING yet still fail the application-level function the dependent needs.
- Stopping a service may be blocked or impact services that depend on it.
- Circular or incorrect dependency design can create startup problems.
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
service requested → required services started first → service starts → dependents can start
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 → Dependencies reference map
| Item | Meaning | Evidence boundary |
|---|---|---|
| Prerequisite service | Must be started first | SCM ordering relation |
| Load-order group | Grouped startup ordering | primarily lower-level/driver scenarios |
| Dependent service | Requires prerequisite | may fail/stop if dependency unavailable |
| RUNNING state | Lifecycle evidence | not functional dependency proof |
| Functional check | Dependency behavior | needed before blaming the dependent service |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3019