Pcornel
Browse topics
Options
Recent
Favorites
Windows · Technical reference

Service Accounts

Direct answer

A service account is the security identity under which a Windows service process or service instance runs. That identity determines local privileges, group memberships, file/Registry access and how network authentication is presented to remote systems.

When to use this

Use Service Accounts when a service starts but cannot access a file/share/database/network resource, when credentials have changed, or when you need to minimize privileges for a background service.

First 30 seconds

1. Which account? Win32_Service StartName.

2. LocalSystem / LocalService / NetworkService / gMSA / domain user?

3. Needs network access → NetworkService or a (g)MSA.

4. Password changed for a domain account → service fails to start (Event 7038).

5. Prefer gMSA: Test-ADServiceAccount <gmsa>.

Operational verification

service account → logon as service right → token → access to local and network resources

Evidence · next step

Inspect the exact local/remote authorization boundary for the service identity with least-privilege remediation.

Continue only after interpreting the current observation.
Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common traps

Do not switch to LocalSystem merely to “make it work” without proving a permission boundary. Do not put passwords into scripts/logs. Do not assume a service account has an interactive user profile or the same mapped drives/environment as an interactive session.

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
Scope / prerequisiteUse Service Accounts when a service starts but cannot access a file/share/database/network resource, when credentials h…
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

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

1 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 the configured account, start/restart the service, then confirm process/service token where possible. Reproduce the exact denied operation and capture local/remote authorization evidence. Prefer granting the minimum required permission to the service identity instead of elevating the whole service.

Evidence references

Evidence · 1 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 · 1
Key points
  • Service identity is a security boundary, not just a username field.
  • LocalSystem has extensive local rights and represents the computer to many network resources; it is not a safe default for every workload.
  • LocalService and NetworkService are built-in lower-privilege identities with different network behavior.
  • Managed/virtual service identities reduce password-management burden when supported.
  • Changing a service account changes runtime access and can also affect profiles, SPNs/remote auth and stored credentials.
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 is1 section · depth on demand

Core model

SCM can start a service in a configured account context. The resulting token controls local access and affects how the service authenticates remotely. A service can therefore be fully RUNNING but fail its workload because the account lacks file, registry, certificate, share, database or network rights.

ReferenceImportant terms & boundaries2 sections · depth on demand

Runtime / control boundary

Separate the configured account string from the runtime token. Account changes take effect on a new service logon/start. Built-in service identities have special semantics; do not infer their network identity from the friendly name alone. For directory-backed accounts, password/SPN/delegation behavior adds further dependencies.

In depth

Service account choice:

AccountNetwork identityUse
LocalSystemComputer accountOS services needing full rights (avoid for apps)
LocalServiceAnonymousLow-privilege local services
NetworkServiceComputer accountLow privilege, needs network auth
Virtual account NT SERVICE\xComputer accountPer-service identity (SQL Server default)
gMSA (CORP\svc-app$)Own AD identity, auto-rotated passwordDomain apps, clustered services
Domain userOwn identity, manual passwordLegacy; rotate and protect
New-ADServiceAccount -Name svc-app -DNSHostName svc-app.corp.example.com -PrincipalsAllowedToRetrieveManagedPassword 'APP-Servers'
Install-ADServiceAccount svc-app; Test-ADServiceAccount svc-app
Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
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 → Service Accounts. 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
windows service accountlocalsystem localservice networkserviceservice logon account
Embedded reference data

Quick lookup tables

Windows Services → Service Accounts reference map

Fast lookup boundaries for Windows Services → Service Accounts.

ItemMeaningEvidence boundary
LocalSystemHighly privileged built-in local identityuse only where design requires it
LocalServiceLow-privilege built-in identitylimited local rights; network identity differs from LocalSystem
NetworkServiceLow-privilege built-in identitydesigned for network-capable service scenarios
Virtual/managed accountService-specific managed identityreduces manual password handling
Domain/gMSA identityDirectory-backed service principalremote authorization/Kerberos considerations
Confirmation

Confirm action

Continue?