Pcornel
Security · Active Directory Security

Managed Service Accounts

Cheat sheet · https://pcornel.dk/topic.php?topic=4514

Back to the Topic

Answer

Managed service accounts (sMSA and gMSA) are AD accounts whose long, random passwords are changed automatically by Windows, removing static service account passwords that are often weak and never rotated.

Remember

  • Managed accounts rotate long passwords automatically.
  • sMSA is for one server; gMSA for many.
  • Not every application supports them.

First checks

  • Get-ADServiceAccount -Filter * — MSAs
  • Test-ADServiceAccount <name> — usable on host
  • Install-ADServiceAccount <name> — install on host

Verify in this order

AD manages password → host retrieves → service runs

Where it usually breaks

First mismatch in identity lifecycle → authenticator/credential → IdP/federation/session → authorization policy → target resource → audit trail; preserve identity/policy/pre-state before mutation.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4514

Confirmation

Confirm action

Continue?