Pcornel
Windows · Windows Services

Dependencies

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

Back to the Topic

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, 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

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

ItemMeaningEvidence boundary
Prerequisite serviceMust be started firstSCM ordering relation
Load-order groupGrouped startup orderingprimarily lower-level/driver scenarios
Dependent serviceRequires prerequisitemay fail/stop if dependency unavailable
RUNNING stateLifecycle evidencenot functional dependency proof
Functional checkDependency behaviorneeded 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

Confirmation

Confirm action

Continue?