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.
| Attribute | Content | Notes |
|---|---|---|
| msLAPS-Password | Cleartext password and account name | Protected only by access control lists |
| msLAPS-EncryptedPassword | Encrypted password blob | Requires domain functional level 2016 |
| msLAPS-PasswordExpirationTime | Next scheduled rotation | Can be cleared to force a rotation |
| msLAPS-EncryptedPasswordHistory | Previous encrypted passwords | Helps after restoring old backups |
| msLAPS-EncryptedDSRMPassword | Domain controller DSRM password | Encryption is mandatory |
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.
| Setting | Allowed range or values | Default |
|---|---|---|
| BackupDirectory | Disabled, Entra ID or Active Directory | Disabled |
| PasswordAgeDays | 1 to 365 days (minimum 7 for Entra ID) | 30 days |
| PasswordLength | 8 to 64 characters | 14 characters |
| PasswordComplexity | Character sets or passphrase options | All four character classes |
| PostAuthenticationActions | Reset, sign out, reboot combinations | Reset password and sign out |
| PostAuthenticationResetDelay | 0 to 24 hours | 24 hours |
| ADPasswordEncryptionPrincipal | Any user or group | Domain Admins |
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.
| Approach | Password storage | Main limitation |
|---|---|---|
| Windows LAPS | Encrypted in AD or stored in Entra ID | Covers one local account per device |
| Legacy Microsoft LAPS | Cleartext attribute in AD | Deprecated, no encryption or history |
| Shared image password | Same password on every device | One leak compromises the whole fleet |
| Disabled local administrator | No usable local credential | No recovery path when domain trust breaks |
| Privileged access management vault | Central third-party vault | Extra cost and infrastructure |
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.
- Extend the schema once per forest with
Update-LapsADSchema. - Grant devices self-write permission on their organizational unit with
Set-LapsADComputerSelfPermission. - Delegate read rights to a support group with
Set-LapsADReadPasswordPermission. - Configure the backup directory, password encryption and age through Group Policy.
- Verify with
Invoke-LapsPolicyProcessingon a client andGet-LapsADPasswordfrom 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.
| Situation | Recommended choice | Reason |
|---|---|---|
| Cloud-only Intune fleet | Back up to Entra ID | No domain controllers to store the secret |
| On-premises domain at level 2016 | AD backup with encryption | Protects the secret even from broad readers |
| Older domain functional level | AD backup in cleartext mode | Encryption unavailable until the level rises |
| Domain controllers | Enable DSRM password backup | Removes a static recovery password |
| Mixed legacy estate | Migrate, then retire legacy LAPS | Avoids two tools managing one account |
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.
| Symptom | Likely cause | Fix |
|---|---|---|
| Password never appears in AD | Missing self-permission on the OU | Run the self-permission cmdlet for that OU |
| Both tools fight over the account | Legacy LAPS still targets it | Remove legacy policy or the old extension |
| Restored device has unknown password | Image rollback to an older state | Use password history or force rotation |
| Entra backup fails | Feature not enabled at tenant level | Turn on LAPS in device settings |
| Password stays valid after use | No post-authentication action set | Enable reset with a short grace period |
- 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.