Windows LAPS with Intune
Every Windows device has a built-in local administrator account you can’t delete. If it has the same password everywhere, one stolen password opens every machine. Windows LAPS rotates that password and backs it up, and Intune can manage LAPS through policy (opens in a new tab), show the password to the right admins, and rotate it on demand. Intune’s LAPS policy replaces legacy Microsoft LAPS and takes precedence over other LAPS sources.
Before you start
- Licenses: Microsoft Intune Plan 1, and Microsoft Entra ID Free covers all LAPS features (Licensing requirements (opens in a new tab)). Other features around it, such as custom roles and administrative units, have their own license needs (Entra LAPS licensing (opens in a new tab); see custom roles).
- Devices: Windows 11 22H2 (22621.1555 or later, with KB5025239) or 21H2 with KB5025224, Windows 10 22H2, 21H2 or 20H2 with KB5025221, or Windows 10 Enterprise LTSC 2019 and later. Backup to Microsoft Entra ID works for Entra joined and hybrid joined devices; workplace-joined devices aren’t supported (Prerequisites (opens in a new tab)).
- Who can do what: creating the policy needs the Intune Security baselines permissions (built-in Endpoint Security Manager). Reading the password needs the Entra permission
microsoft.directory/deviceLocalCredentials/password/read, which Cloud Device Administrator and Intune Administrator have. Rotating it from Intune needs Remote tasks: Rotate Local Admin Password, which no built-in role includes, so use a custom Intune role (LAPS RBAC (opens in a new tab); Required roles (opens in a new tab)).
Step by step
- Turn on LAPS in Microsoft Entra ID. As at least a Cloud Device Administrator, go to Entra ID > Devices > Overview > Device settings, set Enable Microsoft Entra Local Administrator Password Solution (LAPS) to Yes, and save (Enabling Windows LAPS (opens in a new tab)). Entra joined devices need this; hybrid joined devices don’t (Directory support (opens in a new tab)).
- Create the policy. In the Intune admin center, go to Endpoint security > Account protection > Create Policy, choose platform Windows and profile Local admin password solution (Windows LAPS) (Create a LAPS policy (opens in a new tab)).
- Pick the backup directory. Choose Microsoft Entra ID for cloud-joined devices. A device uses one directory type, and it must match the device’s join type; a non-domain-joined device set to Active Directory accepts the policy but can’t back up (Backup Directory (opens in a new tab)).
- Pick the account. Leave Administrator Account Name blank to manage the built-in local admin. If you name an account that doesn’t exist on the device, nothing is managed (About Intune LAPS policy (opens in a new tab)).
- Set the rotation age (PasswordAgeDays) and review the other settings, then assign the policy.
- Assign to device groups. Give each device a single LAPS policy, through device groups rather than user groups (Avoid conflicts (opens in a new tab)).
Gotchas
- Conflicting LAPS policies on one device can stop it processing policy and stop the backup (Learn (opens in a new tab)).
- Deleting a device in Microsoft Entra ID deletes its stored LAPS password, and there’s no way to recover it (FAQ (opens in a new tab)). Check this before stale-device cleanup.
- Devices that back up to on-premises Active Directory don’t show the password in Intune (View account and password details (opens in a new tab)).
- A manual rotation resets the PasswordAgeDays clock (Manually rotate passwords (opens in a new tab)).
Check it worked
- In Intune, open Devices > All devices, select a device, then Monitor > Local admin password. With the right permission you can reveal the password and see when it last rotated and when it rotates next (View details (opens in a new tab)).
- In Entra, Entra ID > Devices > Overview > Local administrator password recovery lists the devices backing up to Entra ID, and the audit logs record password updates and recoveries (Windows LAPS in Microsoft Entra ID (opens in a new tab)).
Roll back
Unassign the policy from the device group. Learn doesn’t spell out what happens to the current password once the policy is removed, so retrieve and record it first for any device you might need to get into.
Related on EntraReady: the Intune compliance baseline, the Intune device report, and Require compliant devices.
Sources (Microsoft Learn): Intune support for Windows LAPS (opens in a new tab), Deploy Windows LAPS policy with Intune (opens in a new tab), Windows LAPS in Microsoft Entra ID (opens in a new tab).
← All GuidesIs this still accurate?
Spotted something outdated or wrong on this page? Tell us in a sentence. The page address is sent with it.