Windows services

Also known as: services.msc

On this page 7

Windows services are long-running background programs that the operating system starts, stops and supervises through the Service Control Manager, usually without any user being signed in. In Windows administration they provide the plumbing behind networking, printing, updates, security, remote access and many server roles, and the familiar services.msc console is the most common tool for viewing and configuring them.

A service differs from an ordinary application because it has no interactive window, runs under a dedicated security identity and follows a defined lifecycle of start, stop, pause and recovery. Understanding that lifecycle is essential for troubleshooting slow startups, failed updates and security hardening.

How the Service Control Manager runs services

The Service Control Manager (SCM), implemented in services.exe, starts early during boot and reads the service database stored under the registry key HKLM\SYSTEM\CurrentControlSet\Services. Each entry defines the executable path, startup type, dependencies, account and recovery actions for one service or driver.

When a service starts, the SCM launches its process and waits for it to report the running state. A service must answer within a default timeout of about 30 seconds, otherwise the SCM logs an error and may apply recovery actions. Many Microsoft services are not separate processes but DLLs loaded into shared svchost.exe hosts; on systems with enough memory, recent Windows versions split most of them into individual svchost instances for better isolation.

Since Windows Vista, services run in Session 0 isolation, a session separate from interactive users, which blocks services from showing windows on a user desktop and reduces shatter-style privilege attacks.

Dependencies define the start order. If a service depends on another one, the SCM starts the required service first and refuses to start the dependent one when the prerequisite fails, which is why a single broken base service such as Remote Procedure Call can disable many features at once. Stopping a service likewise prompts Windows to stop every service that depends on it.

Startup types and service states

The startup type decides when the SCM starts a service, and choosing it correctly balances boot speed against availability. The following table lists the options shown in services.msc.

Startup typeWhen it startsTypical use
AutomaticDuring boot, before logon completesCritical infrastructure such as event logging
Automatic (Delayed Start)Shortly after other automatic servicesImportant but non-urgent services such as updates
ManualOn demand by a program, user or triggerFeatures used occasionally
DisabledNever, even on requestUnneeded or deliberately blocked functions
Service startup types

Manual services are often trigger-start services, which the SCM starts automatically when a defined event occurs, such as a device arrival, a network change or a Group Policy refresh. This design keeps idle services out of memory while preserving functionality.

At runtime, a service reports states such as Stopped, Start Pending, Running, Stop Pending and Paused. A service that remains in a pending state for a long time usually indicates a hung process or a blocked dependency.

Service accounts and security context

Every service runs under an identity, and the principle of least privilege dictates choosing the weakest account that still works. The account determines which files, registry keys and network resources the service can reach.

AccountLocal privilegesNetwork identity
LocalSystemFull control of the computerComputer account
LocalServiceLimited, similar to a standard userAnonymous credentials
NetworkServiceLimited, similar to a standard userComputer account
Virtual accountPer-service identity named NT SERVICEComputer account
Group managed service accountDomain identity with automatic password rotationDedicated domain account
Common service accounts

Running third-party services as LocalSystem is a frequent hardening finding, because any vulnerability in such a service gives an attacker complete control of the machine. A further classic weakness is an unquoted service path containing spaces, which can let Windows execute an attacker-planted program.

Tools for managing Windows services

Administrators can manage services with graphical consoles, command-line tools, PowerShell and central policy, and the right choice depends on scale. The table below compares the main options.

ToolStrengthLimitation
services.mscClear view of status, accounts and recoveryManual work on one computer at a time
sc.exeFull control including triggers and security descriptorsTerse syntax and easy typing errors
PowerShell cmdletsScriptable with Get-Service and Set-ServiceSome advanced settings still need sc.exe or CIM
Group PolicyEnforces startup type and permissions across a domainRequires Active Directory
Microsoft IntuneCloud-based configuration for managed devicesFewer native service settings than Group Policy
Service management tools

Task Manager also shows a Services tab for quick start and stop actions, and Event Viewer records service events in the System log, where entries such as 7000, 7009 and 7034 indicate failed starts, timeouts and unexpected terminations.

Recovery options and common mistakes

The Recovery tab defines what the SCM does after the first, second and subsequent failures: restart the service, run a program or restart the computer, with a configurable reset period for the failure counter. Sensible recovery settings turn a crashing service into a short interruption instead of an outage.

SymptomLikely causeFix
Error 1053 on startService did not answer within the timeoutCheck dependencies and application logs
Error 1069 logon failureExpired or changed account passwordUpdate credentials or use a managed account
Feature missing after tuningRequired service set to DisabledRestore the default startup type
Slow bootToo many automatic servicesMove non-critical ones to delayed start
Symptoms, causes and fixes

The most damaging habit is disabling services from online tuning lists without understanding dependencies, which can break updates, networking or sign-in. Changes should be documented and tested on a non-production machine first.

A plain-language summary

Windows services are helpers that work quietly in the background. They keep the network running, print documents, install updates and protect the computer, usually before anyone even signs in.

Think of them as the staff behind the scenes of a hotel: guests rarely see them, but rooms get cleaned and lights stay on because they work all the time. The Services window lets an administrator see which helpers are working, start or stop them and decide whether they should start automatically, on request or never.

An example from practice

A system administrator at a regional logistics company notices that a warehouse scanning application stops overnight on a Windows Server machine. Event Viewer shows entry 7034, meaning the vendor service terminated unexpectedly, and nobody restarts it until staff arrive at 6 a.m.

The administrator configures the Recovery tab to restart the service after the first and second failures with a one-minute delay and to run an alert script on the third. The service also moves from LocalSystem to a group managed service account with only the rights it needs. Over the next quarter, crashes still occur twice, but each is recovered within about a minute without manual intervention, and the security audit no longer flags the service.