gMSA
Cheat sheet · https://pcornel.dk/topic.php?topic=4515
Answer
A gMSA (group managed service account) is an AD service account whose 240-character password is managed by the domain and retrievable only by authorized hosts, so services across several servers run without stored passwords.
Remember
- Password is 240 characters and rotates automatically.
- Only authorized hosts can retrieve it.
- Requires a KDS root key.
First checks
Get-ADServiceAccount -Filter * -Properties PrincipalsAllowedToRetrieveManagedPassword— gMSA and allowed hostsTest-ADServiceAccount <gmsa>— works on hostGet-KdsRootKey— KDS root key exists
Verify in this order
KDS → gMSA password → allowed hosts
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=4515