Pcornel
Security · Active Directory Security

LAPS

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

Back to the Topic

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 — expiry
  • Find-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

BoundaryKnown-goodFailure signatureFirst next check
PolicyIntended LAPS policy effective on endpointMissing/different effective policyScope, filtering and policy processing
Endpoint rotationManaged account rotates successfullyNo rotation or processing errorAccount eligibility, client state, directory reachability
Directory write-backFresh password/expiry metadata on correct computerMissing/stale metadataWrite permission, identity and replication path
Authorized retrievalApproved identity can retrieveAccess deniedDelegated read rights / group membership
Unauthorized retrievalUnapproved identity is deniedSecret is readableContain and correct ACL/delegation
Endpoint proofRetrieved value works on intended endpointRetrieval works but logon failsCompare 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

Confirmation

Confirm action

Continue?