Use this branch when a background component will not start, stops unexpectedly, runs under the wrong identity, starts in the wrong order, has dependency problems, or when you must separate configured service state from runtime/service health.
Windows Services
Windows Services explains long-running or event-triggered background workloads managed through the Service Control Manager (SCM). The SCM maintains installed-service configuration and controls service start/stop/status; a service can run without an interactive user logon and can execute under a dedicated service identity.
1. Get-Service <name> — status?
2. Start: Start-Service <name>; error?
3. System log, Service Control Manager events (7000, 7009, 7023, 7031, 7034).
4. Account and path: Win32_Service StartName/PathName.
5. Dependencies running?
SCM reads config → starts dependencies → starts the service under its account → Running
Test the service-provided function and the first dependency boundary while correlating service/SCM logs.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
Do not set a failing service to Automatic as a “fix” if it cannot start successfully. Do not disable dependencies or change service accounts broadly. Do not treat RUNNING as evidence that a port, application, database or network dependency is healthy.
Operational reference
Fast context before you go deeper.
Get-ServicePrimary Commands
Configuration and operational commands for this Topic.
Get-ServiceVerifyPowerShell cmdlet that gets Windows service objects and their SCM-reported status. It is a read-oriented starting point for service inventory, filtering and pipeline-based troubleshooting.
Use when: Use to find the exact service name and current state, filter multiple services and feed known service objects into further read/controlled operations.
Quick note: Use service-specific health checks after proving SCM state.
Windows / Windows Server / PowerShell · mixedservices.mscReferenceOpens the Windows Services management console, a GUI for querying installed services and—subject to rights—starting, stopping and configuring service properties.
Use when: Use for interactive service inspection and controlled administration when a GUI is appropriate. Record the service name/properties before making changes.
Quick note: For repeatable evidence/automation, prefer Get-Service/sc.exe plus role-specific health checks.
Windows / Windows Server / PowerShell · configurationsc.exeReferenceWindows command-line service control/configuration utility that maps to Service Control Manager functions. It can query, start, stop and modify services; exact subcommand determines whether the operation is read-only or state-changing.
Use when: Use sc.exe query <service> for low-level SCM state evidence and sc.exe qc <service>/related query commands for configuration. Use start/stop/config only after validating impact and exact syntax.
Quick note: The generic sc.exe leaf represents multiple subcommands, so always reason about the specific operation and safety level.
Start-ServiceReferencePowerShell cmdlet that sends a start request for one or more Windows services. It changes service lifecycle state and should be followed by status plus functional verification.
Use when: Use after checking service identity, current state, startup configuration and dependencies. Prefer one deliberate start attempt while collecting logs for a failing service.
Quick note: Starting prerequisite services can occur as part of service dependency handling; inspect dependency impact first in sensitive environments.
Windows / Windows Server / PowerShell · mixedStop-ServiceReferencePowerShell cmdlet that requests one or more Windows services to stop. It is a state-changing control action whose dependent-service and application impact should be checked first.
Use when: Use for planned maintenance, controlled recovery or isolation after checking dependents and workload impact. Capture troubleshooting evidence before stopping a failing service when possible.
Quick note: If a service cannot stop gracefully, escalate carefully rather than immediately killing a shared host process.
Windows / Windows Server / PowerShell · mixedsc.exe qc <service>ReferenceShows a service's configuration: start type, binary path, dependencies and the account it runs as.
Use when: A service does not start after a change, or runs under the wrong account.
Quick note: An unquoted path with spaces is a known security risk.
Windows / Windows Server / PowerShell · configuration · verifiessc.exe query <service>ReferenceShows the state of a Windows service: running, stopped or pending, and its exit code.
Use when: A service will not start, or hangs in START_PENDING.
Quick note: In PowerShell write sc.exe, because "sc" is an alias for Set-Content. Use the service name, not the display name.
Windows / Windows Server / PowerShell · state · verifiesVerification & 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 Verification path Verify boundary
Read service state and configuration first. Identify the binary/service account and dependencies. If it is running, map it to the process/PID and test the actual provided function. If start fails, correlate the transition and error with Event Viewer/System/Application/service-specific logs before changing startup type or account.
Step 2 Operational verification Verify boundary
Service Control Manager state, Event Viewer channels and evidence-first Windows diagnostics.
Fast verification
- Check
Get-Service/sc.exe queryfor service state and dependencies.
- Query the specific provider/log and timestamp with Get-WinEvent instead of scanning the entire System log.
- Use the first service-control or application error to choose the next dependency check.
Evidence · 2 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
The service name, configured startup/account/dependencies, current SCM state and runtime process/function have been identified.
command output · Documented exampleServices & Event Logs local healthy-state checkpointThe expected object, scope, state and counters match a controlled test.
Subtopics
Go one level deeper into this subject.
Windows Service Control Manager (SCM): installed-service database, startup/control requests, status tracking, remote control surface and security boundary.
Subtopic ServicesWindows service programs and runtime states: service name/display name, process hosting, lifecycle controls and operational health boundaries.
Subtopic Service AccountsWindows service identities: LocalSystem, LocalService, NetworkService, virtual/service accounts and domain/gMSA-style identities as runtime security contexts.
Subtopic Startup TypesWindows service startup types and trigger behavior: Automatic, delayed automatic, Manual/demand and Disabled; configuration versus current state.
Subtopic DependenciesWindows service dependency relationships and startup ordering: prerequisite services/groups, dependent services, state versus health and troubleshooting.
Subtopic Service TroubleshootingEvidence-first Windows service troubleshooting: service identity, state transitions, startup/account/dependency configuration, process mapping, logs and functional verification.
- Installed service ≠ running service ≠ healthy application function.
- Startup type controls how a service may be started; it is not the same as current runtime state.
- A service account defines security context and network/local rights available to the service process.
- Dependencies affect start/order relationships but do not automatically prove dependency health.
- One process can host one or multiple services, so service identity and PID must both be checked.
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
ReferenceWhat it is3 sections · depth on demand
Operational scope
Service Control Manager state, Event Viewer channels and evidence-first Windows diagnostics.
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.
What it is
Service Control Manager state, Event Viewer channels and evidence-first Windows diagnostics.
Core model
The Service Control Manager is the central Windows service-management component. It maintains the installed service database, starts services automatically or on request/trigger, receives status updates and sends control requests. Services are designed for background operation and can run even when no user is logged on.
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.
ReferenceWhy it matters2 sections · depth on demand
When to use it
Use Services & Event Logs when the problem concerns Windows Server, PowerShell, identity, policy, networking, roles or event-driven operations.
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.
Why it matters operationally
The useful outcome is not simply knowing a definition; it is being able to decide whether Services & Event Logs is healthy, misconfigured, missing, or only a symptom of a failure somewhere else.
ReferenceHow it works1 section · depth on demand
How it works
Service Control Manager state, Event Viewer channels and evidence-first Windows diagnostics.
ReferenceImportant terms & boundaries1 section · depth on demand
Runtime / control boundary
Keep configuration and runtime separate. The installed record contains startup type, executable path, service account and dependencies. Runtime status indicates whether the service is stopped, pending, running or paused. A correct configuration can still fail to start because the binary, account, dependency, permission or application initialization fails.
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 Services. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/windows/win32/services/services · 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
Services & Event Logs evidence chain
Configuration, operational state, counters and downstream proof remain separate.
| Boundary | Question | Evidence | Does not prove |
|---|---|---|---|
| Definition | What is configured or intended? | running configuration / controller policy | live operation |
| Local state | Is the feature active at the expected scope? | Get-Service | remote success |
| Counters | Did controlled traffic or an event reach this stage? | scoped counters/timestamps | complete return path |
| Next boundary | What consumes or transports this state? | computer/domain context → effective policy/configuration → role/service → dependency/replication/network → event evidence → user/service outcome | application success |
Windows Services reference map
Fast lookup boundaries for Windows Services.
| Item | Meaning | Evidence boundary |
|---|---|---|
| SCM configuration | Installed service record | name, binary, start type, account, dependencies |
| Runtime state | Stopped/Start Pending/Running/etc. | lifecycle status reported to SCM |
| Service process | Executable/PID | runtime container; may host multiple services |
| Service account | Security identity | local/network access context |
| Application health | Actual provided function | must be tested beyond service RUNNING state |