Pcornel
Browse topics
Options
Recent
Favorites
Security · Technical reference

Service Accounts

Direct answer

Service accounts run applications and services, often with high privileges and passwords that never change. Use gMSAs, least privilege, deny interactive logon and monitor their use.

When to use this

Use this when reviewing service accounts and their privileges.

First 30 seconds

1. Service accounts run applications.

2. Use gMSA where possible.

3. Long random passwords; no interactive logon.

4. Least privilege; never Domain Admin.

5. Owners and documentation.

Operational verification

service → account → permissions

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Identity, authentication and access control
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.

PlatformIdentity, authentication and access control
Scope / prerequisiteUse this when reviewing service accounts and their privileges.
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.

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 Finding risky service accounts Verify boundary
Get-ADUser -Filter {ServicePrincipalName -like '*'} -Properties ServicePrincipalName,PasswordLastSet,AdminCount

Look for accounts with old passwords, AdminCount=1 (privileged), interactive logon rights, or membership in Domain Admins. Prefer gMSAs; otherwise use 25+ character random passwords and deny interactive logon.

Step 2 Common mistakes Narrow the fault
  • Service accounts with SPNs and weak passwords (Kerberoastable).
  • Service accounts in privileged groups.
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 accounts often have high rights and old passwords.
  • Deny interactive logon.
  • Prefer gMSAs.
Key checks
  • Get-ADUser -Filter {ServicePrincipalName -like '*'} -Properties ServicePrincipalName,PasswordLastSet — service accounts with SPNs
  • Get-ADUser -Filter * -Properties PasswordNeverExpires | ? PasswordNeverExpires — never-expiring passwords
  • Service account inventory with owners — ownership
ReferenceWhy it matters1 section · depth on demand

Securing service accounts

RiskFix
Static, weak passwords (Kerberoasting)gMSA, or 25+ character random passwords
Too many rightsLeast privilege; never Domain Admin
Interactive logonDeny logon locally/through RDP
Unknown accountsInventory with owner and purpose

Find service accounts with SPNs: Get-ADUser -Filter {ServicePrincipalName -like "*"} -Properties ServicePrincipalName.

ReferenceImportant terms & boundaries2 sections · depth on demand

Hardening settings

SettingPurpose
gMSA instead of user accountAutomatic 120-character password rotation
*Deny log on locally / through RDP*No interactive use
AES only (msDS-SupportedEncryptionTypes = 24)Prevent RC4 Kerberoasting
No membership in privileged groupsLimit blast radius
Logon workstations restrictionOnly the servers that run the service

In depth

Service accounts run services, scheduled tasks and applications. In Active Directory they are frequent targets: often highly privileged, rarely monitored, with old passwords that never change and SPNs that expose them to Kerberoasting.

Hardening service accounts:

RiskControl
Weak/old passwordsUse gMSA, or 25+ character random passwords with rotation
Excessive privilegesLeast privilege; never Domain Admin
Interactive logonDeny interactive and RDP logon rights
KerberoastinggMSA, AES-only encryption types
Unknown ownershipInventory with owner and purpose
Get-ADUser -Filter 'ServicePrincipalName -like "*"' -Properties ServicePrincipalName, PasswordLastSet, MemberOf |
  Select-Object Name, PasswordLastSet, @{n='Groups';e={$_.MemberOf.Count}}
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 docIdentity, authentication and access control current

Authoritative/upstream documentation reviewed for bounded claims in Active Directory Security → Service Accounts. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://learn.microsoft.com/en-us/windows/security/ · confidence 94%
Confirmation

Confirm action

Continue?