Windows LAPS

Also known as: LAPS · Local Administrator Password Solution

On this page 7

Windows LAPS, the Local Administrator Password Solution, is a Windows security feature that automatically sets a unique, random password for a local administrator account on each managed device and backs that password up to a directory, either Windows Server Active Directory or Microsoft Entra ID. Its purpose is to remove the shared, rarely changed local administrator password that lets an attacker who compromises one machine move laterally to every other machine with the same credential.

Within Windows security, Windows LAPS sits beside protections such as Credential Guard and BitLocker: it does not block attacks on its own, but it limits the blast radius of a stolen local credential. It is built into supported editions of Windows 10, Windows 11 and Windows Server 2019 and later, and it replaces the older downloadable tool now called legacy Microsoft LAPS.

How Windows LAPS rotates and stores passwords

Windows LAPS works as a policy-driven background process inside the operating system. Roughly once an hour, and whenever a policy change triggers it, the device evaluates its configuration, checks whether the current password has expired, and if so generates a new one, writes it to the directory first and only then changes the local account password. Writing to the directory before changing the account prevents a state in which nobody knows the new password.

The directory acts as the single source of truth. In Active Directory the password is stored as an attribute of the computer object; in Microsoft Entra ID it is stored with the device object. Authorized administrators retrieve it with role-based permissions, and every retrieval can be audited. The device itself writes its own password through a self-permission on its computer object, so no privileged service account is needed.

The following table lists the main Active Directory attributes and what each one holds.

AttributeContentNotes
msLAPS-PasswordCleartext password and account nameProtected only by access control lists
msLAPS-EncryptedPasswordEncrypted password blobRequires domain functional level 2016
msLAPS-PasswordExpirationTimeNext scheduled rotationCan be cleared to force a rotation
msLAPS-EncryptedPasswordHistoryPrevious encrypted passwordsHelps after restoring old backups
msLAPS-EncryptedDSRMPasswordDomain controller DSRM passwordEncryption is mandatory
Active Directory attributes used by Windows LAPS

Key Windows LAPS policy settings

Windows LAPS is configured through Group Policy, the LAPS configuration service provider in Microsoft Intune or another MDM, or local registry settings. When several sources exist, CSP policy takes precedence over Group Policy, which takes precedence over local configuration, and a separate legacy emulation mode honors old LAPS settings only when no newer policy is present.

The settings below define how strong passwords are, how often they change and where they go.

SettingAllowed range or valuesDefault
BackupDirectoryDisabled, Entra ID or Active DirectoryDisabled
PasswordAgeDays1 to 365 days (minimum 7 for Entra ID)30 days
PasswordLength8 to 64 characters14 characters
PasswordComplexityCharacter sets or passphrase optionsAll four character classes
PostAuthenticationActionsReset, sign out, reboot combinationsReset password and sign out
PostAuthenticationResetDelay0 to 24 hours24 hours
ADPasswordEncryptionPrincipalAny user or groupDomain Admins
Core policy settings and typical values

Post-authentication actions are an important hardening step. After someone signs in with the managed account, Windows LAPS waits for the grace period and then rotates the password and optionally signs the session out or restarts the device, so a password that was revealed to a technician does not stay valid indefinitely. Newer releases, starting with Windows 11 version 24H2 and Windows Server 2025, add passphrase generation, a readability option that avoids confusable characters, and automatic account management that can create, rename and disable the managed account.

Windows LAPS compared with legacy LAPS and other approaches

Windows LAPS differs from legacy Microsoft LAPS mainly in where it runs and how it protects the stored secret. The legacy tool required a separately installed client-side extension and stored passwords in cleartext in the ms-Mcs-AdmPwd attribute, relying entirely on attribute permissions. Windows LAPS is native, supports encryption, keeps password history and adds cloud backup.

ApproachPassword storageMain limitation
Windows LAPSEncrypted in AD or stored in Entra IDCovers one local account per device
Legacy Microsoft LAPSCleartext attribute in ADDeprecated, no encryption or history
Shared image passwordSame password on every deviceOne leak compromises the whole fleet
Disabled local administratorNo usable local credentialNo recovery path when domain trust breaks
Privileged access management vaultCentral third-party vaultExtra cost and infrastructure
Windows LAPS against related approaches

Windows LAPS also complements rather than replaces other controls in the topic. Credential Guard protects domain credentials in memory, UAC separates elevated from standard sessions, and Windows LAPS ensures that the local fallback credential is unique and short-lived.

Deploying Windows LAPS in practice

A typical Active Directory deployment follows a short sequence of PowerShell cmdlets from the built-in LAPS module, combined with a Group Policy object.

  1. Extend the schema once per forest with Update-LapsADSchema.
  2. Grant devices self-write permission on their organizational unit with Set-LapsADComputerSelfPermission.
  3. Delegate read rights to a support group with Set-LapsADReadPasswordPermission.
  4. Configure the backup directory, password encryption and age through Group Policy.
  5. Verify with Invoke-LapsPolicyProcessing on a client and Get-LapsADPassword from a management host.

For cloud-managed devices, the administrator enables LAPS in the Entra ID device settings and assigns an Intune account protection policy. The device must be Microsoft Entra joined or hybrid joined; merely registered devices are not supported. The following decision table summarizes common choices.

SituationRecommended choiceReason
Cloud-only Intune fleetBack up to Entra IDNo domain controllers to store the secret
On-premises domain at level 2016AD backup with encryptionProtects the secret even from broad readers
Older domain functional levelAD backup in cleartext modeEncryption unavailable until the level rises
Domain controllersEnable DSRM password backupRemoves a static recovery password
Mixed legacy estateMigrate, then retire legacy LAPSAvoids two tools managing one account
Choosing a Windows LAPS configuration

Limitations and common mistakes

Windows LAPS is effective only when its read permissions are tightly scoped. If too many accounts can read the password attribute, or if the encryption principal is set to a broad group, the feature merely moves the shared secret into the directory.

SymptomLikely causeFix
Password never appears in ADMissing self-permission on the OURun the self-permission cmdlet for that OU
Both tools fight over the accountLegacy LAPS still targets itRemove legacy policy or the old extension
Restored device has unknown passwordImage rollback to an older stateUse password history or force rotation
Entra backup failsFeature not enabled at tenant levelTurn on LAPS in device settings
Password stays valid after useNo post-authentication action setEnable reset with a short grace period
Frequent problems and their fixes
  • Windows LAPS manages only one local account per device under a given policy.
  • It does not protect against an attacker who already holds SYSTEM rights on the device, because such an attacker can read memory or reset the account.
  • Event logs under Microsoft-Windows-LAPS/Operational should be monitored, since silent backup failures leave devices with stale passwords.

Understanding it simply

Every Windows computer has a local administrator account, a master key that works even when the network is down. Many organizations used to give every computer the same master key, so a thief who copied one key could open every door in the building.

Windows LAPS gives each computer its own random key and changes it on a schedule. A copy of the current key is locked in a central safe, the company directory, where only approved staff can look it up. The key is unique, changes often and is always recoverable, which makes a single stolen password far less useful.

Applied in practice

A regional hospital runs about 2,500 domain-joined workstations that were all built from one image with the same local administrator password. After a penetration test showed that one captured password unlocked every clinical workstation, the infrastructure team deployed Windows LAPS with Active Directory backup, encryption enabled and a 30-day password age and an eight-hour post-authentication grace period, granting read access only to a tier-two support group.

When a nurse station later lost its domain connection, a technician retrieved that single device’s password with Get-LapsADPassword, signed in locally and repaired the trust. Eight hours after the sign-in, the post-authentication policy rotated the password and signed the session out. The next penetration test found that a harvested local password no longer worked on any other machine, closing the lateral movement path.