LAPS
Cheat sheet · https://pcornel.dk/topic.php?topic=4516
Answer
LAPS (Windows LAPS) gives every computer a unique, regularly rotated local administrator password stored in AD or Entra ID, stopping lateral movement with one shared local admin password.
Remember
- Shared local admin passwords enable lateral movement.
- Windows LAPS stores passwords in AD or Entra ID.
- Control who can read the passwords.
First checks
Get-LapsADPassword -Identity <computer> -AsPlainText— retrieve (Windows LAPS)Get-ADComputer <c> -Properties msLAPS-PasswordExpirationTime— expiryFind-LapsADExtendedRights -Identity <OU>— who can read
Verify in this order
LAPS client → random password → stored in directory
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.
LAPS operational decision reference
| Boundary | Known-good | Failure signature | First next check |
|---|---|---|---|
| Policy | Intended LAPS policy effective on endpoint | Missing/different effective policy | Scope, filtering and policy processing |
| Endpoint rotation | Managed account rotates successfully | No rotation or processing error | Account eligibility, client state, directory reachability |
| Directory write-back | Fresh password/expiry metadata on correct computer | Missing/stale metadata | Write permission, identity and replication path |
| Authorized retrieval | Approved identity can retrieve | Access denied | Delegated read rights / group membership |
| Unauthorized retrieval | Unapproved identity is denied | Secret is readable | Contain and correct ACL/delegation |
| Endpoint proof | Retrieved value works on intended endpoint | Retrieval works but logon fails | Compare rotation time/account state; avoid blind re-reset |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4516