Pcornel
Browse topics
Options
Recent
Favorites
Windows · Technical reference

Windows Services

Direct answer

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.

When to use this

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.

First 30 seconds

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?

Operational verification

SCM reads config → starts dependencies → starts the service under its account → Running

Evidence · next step

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
Common mistakes
Common traps

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.

Platform / version applicability
Windows execution, automation and observability
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformWindows execution, automation and observability · Windows / Windows Server / PowerShell
Key commandGet-Service
Scope / prerequisiteUse this branch when a background component will not start, stops unexpectedly, runs under the wrong identity, starts i…
Verify · 1Reference · 6
What next?3 suggested next steps
Child topics (this level)6
Catalog command links7
Evidence2
On this pageJump to a specific section
Windows command reference

Primary Commands

Configuration and operational commands for this Topic.

Get-ServiceVerify
Get-Service

PowerShell 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 · mixed
services.mscReference
services.msc

Opens 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 · configuration
sc.exeReference
sc.exe

Windows 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.

Windows / Windows Server / PowerShell · mixed
Start-ServiceReference
Start-Service

PowerShell 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 · mixed
Stop-ServiceReference
Stop-Service

PowerShell 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 · mixed
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

2 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 query for 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 references

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.

observation · 1command output · 1
Drill down

Subtopics

Go one level deeper into this subject.

Key points
  • 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.
Key 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
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.

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
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
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docWindows execution, automation and observability current

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%
Terminology layer

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.

Aliases that resolve here
services & event logswindows servicesservice control managerwindows services & event logsServices & Event Logs troubleshootingwindows service troubleshootingscm services windows
Embedded reference data

Quick lookup tables

Services & Event Logs evidence chain

Configuration, operational state, counters and downstream proof remain separate.

BoundaryQuestionEvidenceDoes not prove
DefinitionWhat is configured or intended?running configuration / controller policylive operation
Local stateIs the feature active at the expected scope?Get-Serviceremote success
CountersDid controlled traffic or an event reach this stage?scoped counters/timestampscomplete return path
Next boundaryWhat consumes or transports this state?computer/domain context → effective policy/configuration → role/service → dependency/replication/network → event evidence → user/service outcomeapplication success

Windows Services reference map

Fast lookup boundaries for Windows Services.

ItemMeaningEvidence boundary
SCM configurationInstalled service recordname, binary, start type, account, dependencies
Runtime stateStopped/Start Pending/Running/etc.lifecycle status reported to SCM
Service processExecutable/PIDruntime container; may host multiple services
Service accountSecurity identitylocal/network access context
Application healthActual provided functionmust be tested beyond service RUNNING state
Confirmation

Confirm action

Continue?