How to Set Up Windows LAPS with Intune and Entra ID

Shared local administrator passwords are a security risk. When devices share one password for the same account, one leaked credential opens all of them. Windows Local Administrator Password Solution (Windows LAPS) gives each device its own local administrator password, rotates it on a schedule, and stores it in Microsoft Entra ID. Only people with the right role can read it.

A Windows LAPS deployment with Intune gives you:

  • Windows LAPS creates and manages a dedicated local admin account on each device, so you do not have to create one.
  • Windows LAPS generates a passphrase for each device, which a support technician can read out and type without mistakes. Windows LAPS also supports random passwords, so the choice is yours.
  • After someone uses the account, Windows LAPS resets the password, signs the account out, and ends its remaining processes.
  • A custom Microsoft Entra role named LAPS Reader lets your support team read the passwords and nothing more.

Prerequisites

  • Devices that are Microsoft Entra joined or Microsoft Entra hybrid joined. Microsoft Entra registered devices are not supported.
  • Windows 11 24H2 or later for the automatic account, passphrase, and post-authentication sign-out settings in this guide. Older versions that already support Windows LAPS (for example Windows 11 22H2 with the April 2023 update) support a smaller set of settings. See the note on mixed fleets below.
  • Microsoft Intune to deploy the policy. Windows LAPS in Microsoft Entra ID works with any Microsoft Entra ID license, including Free.
  • Microsoft Entra ID P1 or P2 to create the custom LAPS Reader role.
  • An account with at least the Cloud Device Administrator role to enable the feature, and the Endpoint Security Manager role (or a custom role with the Security baselines rights) to create the policy in Intune.

Microsoft lists the full requirements in Windows Local Administrator Password Solution in Microsoft Entra ID.

Step 1: Enable Windows LAPS in Microsoft Entra ID

  1. Sign in to the Microsoft Entra admin center as at least a Cloud Device Administrator.
  2. Go to Entra ID > Devices > Overview > Device settings.
  3. Set Enable Local Administrator Password Solution (LAPS) to Yes and select Save.

This is the tenant-wide switch. Devices can only back up passwords to Microsoft Entra ID after you turn it on, and the Intune policy in the next step is the client-side half.

Step 2: Create the Windows LAPS policy in Intune

Sign in to the Microsoft Intune admin center and go to Endpoint security > Account protection. Select Create Policy, set the platform to Windows, and choose the profile Local admin password solution (Windows LAPS).

Give the policy a clear name and description, for example “Windows LAPS – Entra ID, WLapsAdmin account”. Then configure the settings in this table.

SettingValueWhat it does
Backup DirectoryBack up the password to Microsoft Entra ID onlyStores the password in Microsoft Entra ID.
Password Age Days7Rotates the password after 7 days. With Microsoft Entra ID as the backup directory, 7 days is the minimum.
Password ComplexityPassphrase (short words with unique prefixes)Generates a passphrase instead of a random password. The passphrase options require Windows 11 24H2 or later.
Passphrase Length4The number of words in the passphrase. The range is 3 to 10 words.
Post Authentication ActionsReset the password, sign out the managed account, and terminate any remaining processesRuns after someone signs in with the account and the delay below expires.
Post Authentication Reset Delay1The grace period in hours before the actions run. The range is 0 to 24 hours. A value of 0 disables the post-authentication actions.
Automatic Account Management EnabledEnabledWindows LAPS creates and manages the account.
Automatic Account Management TargetManage a new custom accountManages a new custom account instead of the built-in Administrator account.
Automatic Account Management Name Or PrefixLeave emptyThe default account name is WLapsAdmin.
Automatic Account Management Enable AccountTrueEnables the account. The default is disabled.
Automatic Account Management Randomize NameFalseKeeps the name WLapsAdmin. When set to True, Windows LAPS adds a random six-digit suffix to the name every time it rotates the password.

The setting names follow the Windows LAPS policy documentation. The Intune profile uses the same names or close variants of them.

Why these settings

  • Automatic account management means you do not have to create a local admin account through a script or another policy. Windows LAPS creates the account, enables it, and manages its password. Without automatic account management, Windows LAPS only manages an account that already exists on the device.
  • Passphrases are a recommendation for ease of use. Windows LAPS accepts random passwords too. A passphrase is easier to read over a phone call or a remote session than a long random string, and with Passphrase Length set to 4 the support technician types four words. To use random passwords instead, choose one of the password complexity options (the documented default is large and small letters, numbers, and special characters) and set Password Length between 8 and 64 characters. The Password Length setting is ignored when the complexity is a passphrase option, so this policy does not need it.
  • Post-authentication actions limit how long a revealed password stays usable. When Windows LAPS detects a successful sign-in with the managed account, it waits for the grace period, resets the password, and then ends the account’s sessions and processes. The device keeps the account but the password the technician used is no longer valid.

Sessions get a two-minute warning to save their work and sign out. Ending processes without warning can cause data loss, so tell technicians to finish their work inside the grace period. Microsoft also notes that someone with administrative privileges on a device can prevent or circumvent these actions. Use them to limit exposure and add other controls around them.

Mixed fleets: use an OS filter

Automatic account management, the passphrase options, and the sign-out and terminate action all require Windows 11 24H2 or later. A device on an older version that receives a policy with a value it does not support falls back to the default for that setting, which is complexity 4 and no automatic account. Microsoft recommends separate policies for the older and newer versions.

Create an assignment filter with the rule (device.operatingSystemVersion -ge 10.0.26100.0) for Windows 11 24H2 and later, assign this policy with that filter in include mode, and use a second policy with the settings that your older versions support for the rest. On older devices Windows LAPS manages an account that already exists, because automatic account management is not available there.

Step 3: Assign the policy

  • Assign the policy to device groups. A policy assigned to a user group follows the user from device to device, which can change the managed account and the rotation schedule when a different user signs in.
  • Give each device one Windows LAPS policy. The LAPS configuration service provider supports one configuration per setting, and a device with conflicting policies can fail to process them and fail to back up the password.
  • The device must check in with Intune and process the policy before its account details appear in the admin center.

Step 4: Create the LAPS Reader role

The built-in Cloud Device Administrator and Intune Administrator roles can read local administrator passwords, but they also carry permissions that a support technician does not need. A custom role grants only what the task needs. Microsoft Entra ID P1 or P2 is required for custom roles.

Create the role in the Microsoft Entra admin center under Entra ID > Roles & admins with the name LAPS Reader and these permissions:

PermissionWhat it allows
microsoft.directory/deviceLocalCredentials/password/readRead the local administrator password.
microsoft.directory/deviceLocalCredentials/standard/readRead the password metadata: device name, last password rotation, and next password rotation.

Assign the role to your support team. Microsoft describes the steps in Create a custom role in Microsoft Entra ID. To limit the role to some devices, create an administrative unit, add the devices, and assign the role scoped to that unit.

For comparison, the built-in roles that can read LAPS data:

Built-in roleRead the passwordRead the metadata
Cloud Device AdministratorYesYes
Intune AdministratorYesYes
Helpdesk AdministratorNoYes
Security AdministratorNoYes
Security ReaderNoYes

Conditional Access policies can protect password recovery when they target the built-in roles. Microsoft states that custom roles and administrative unit scoped roles are not supported for this, so apply other controls to the LAPS Reader role, such as a dedicated support group and review of the audit log.

Step 5: Retrieve the password

A technician with the LAPS Reader role has two places to find a password.

  • Microsoft Entra admin center: go to Entra ID > Devices > Overview > Local administrator password recovery. The page lists the devices that back up a password.
  • Microsoft Intune admin center: go to Devices > All devices, select the device, and under Monitor select Local admin password. The technician also needs an Intune role that can open the device.

The page shows the account name, the security ID, the password (hidden until you select Show), the last password rotation, and the next password rotation. Viewing the password creates an audit event.

What happens after use

  1. The technician reveals the password and signs in to the device with the account name shown on the page. With the settings above, that name is WLapsAdmin.
  2. Windows LAPS detects the successful sign-in and starts the grace period of one hour.
  3. When the grace period ends, Windows LAPS resets the password, signs out the account (with a two-minute warning), and ends the remaining processes of the account.
  4. Windows LAPS backs up the new password to Microsoft Entra ID. The old password no longer works.

Rotate a password on demand

To rotate a password before the schedule, select the device in the Intune admin center, open the ellipsis (…) menu, and select Rotate local admin password. The account needs the Intune permissions Managed devices: Read, Organization: Read, and Remote tasks: Rotate Local Admin Password. The device must be online, you can rotate one device at a time, and a rotation on demand resets the schedule for the next rotation.

Audit password access

In the Microsoft Entra admin center, go to Entra ID > Devices > Overview > Audit logs and filter the Activity for Recover device local administrator password or Update device local administrator password.

Verify on the device

Windows LAPS writes to the Microsoft-Windows-LAPS/Operational event log. These events confirm the setup works:

Event IDMeaning
10029Windows LAPS updated Microsoft Entra ID with the new password.
10020Windows LAPS updated the local admin account with the new password.
10041Windows LAPS detected a successful sign-in with the managed account and scheduled the post-authentication actions.
10042The post-authentication grace period expired and Windows LAPS runs the configured actions.
10044Windows LAPS reset the password and completed all post-authentication actions.
10031Windows LAPS blocked an external attempt to change the password of the managed account.

Troubleshooting

  • No password appears in the portal: confirm that LAPS is enabled in Microsoft Entra device settings, the device is Microsoft Entra joined or hybrid joined, and the device checked in and processed the policy.
  • The device ignores part of the policy: check the Windows version. Settings that the version does not support fall back to their defaults.
  • Policy conflicts: look for several LAPS policies assigned to the same device, and for Group Policy settings. The LAPS configuration service provider takes precedence over Group Policy.
  • Password rotation fails: rotation of a Microsoft Entra joined device needs the device to be online. Look for events 10043 and 10048 in the Windows LAPS log.
  • A deleted device: when a device is deleted in Microsoft Entra ID, its LAPS password is lost with it.

Questions or feedback? Leave a comment below.

Related reading: How to Create Assignment Filters in Intune

Leave a Reply

Your email address will not be published. Required fields are marked *