TechBuzzPro

Configure Windows LAPS in Active Directory Guide

· 6 min read · Windows & PC

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Windows Local Administrator Password Solution (LAPS) is configured by extending the Active Directory schema to include password attributes and then deploying a Group Policy Object (GPO) to manage the rotation and storage of local admin passwords. This achieves a secure environment where every computer has a unique, randomized local administrator password that is automatically rotated and backed up to Active Directory, preventing attackers from using a single compromised password to move laterally across your network.

What You'll Need

  • A Windows Server acting as a Domain Controller with Schema Admin and Domain Admin privileges.
  • Active Directory Domain Services (AD DS) installed and healthy.
  • Administrative access to the Group Policy Management Console (GPMC).
  • Windows 10 or Windows 11 client machines (or Windows Server 2019/2022) joined to the domain.
  • A clear understanding of which local administrator account you intend to manage (the built-in account or a custom one).

Step-by-Step

Note: Menu labels and paths may differ slightly depending on your specific version of Windows Server or regional settings.

  1. Extend the Active Directory Schema
    The first requirement is to ensure your AD schema can store the passwords. For the modern version of Windows LAPS (integrated into the OS), you must use PowerShell to update the schema. Open PowerShell as an Administrator on your Domain Controller. Run the command Update-LapsADSchema. This command adds the necessary attributes to the computer objects in Active Directory. If you are using the legacy LAPS, you would have run a specific .msp installer, but for the integrated version, the PowerShell module is the standard method. Verify the command completes without errors before proceeding.
  2. Configure Permissions for Password Access
    By default, not everyone should be able to read the local administrator password. You must decide which users or groups (such as your Help Desk team) are allowed to retrieve these passwords. Use the Set-LapsADPermission PowerShell cmdlet to grant the appropriate permissions. For example, you can grant 'Read' permissions to a specific security group for all computer objects in the domain. This ensures that only authorized personnel can view the password in the Active Directory Users and Computers (ADUC) console or via PowerShell.
  3. Create a New Group Policy Object (GPO)
    Open the Group Policy Management Console (GPMC). Right-click your target Organizational Unit (OU) containing the computers you want to manage and select "Create a GPO in this domain, and Link it here..." Name the GPO something clear, such as "Windows LAPS Policy". This ensures the policy is applied only to the intended machines and does not affect servers or controllers that may require different management.
  4. Configure LAPS Settings in the GPO
    Right-click the new GPO and select "Edit". Navigate to Computer Configuration > Administrative Templates > System > LAPS. Here, you will find several critical settings:
    • Configure password complexity: Define the length and character requirements (uppercase, lowercase, numbers, symbols) for the generated passwords.
    • Password age: Set the number of days before the password is automatically rotated. A common standard is 30 days.
    • Administrator account name: If you are managing the built-in local administrator account, you can leave this blank. If you have created a custom local admin account for LAPS, enter the exact name of that account here.
    • Enable password backup to Active Directory: Ensure this is enabled so the client machines can send the randomized password back to the AD computer object.
  5. Force Policy Update on Client Machines
    To test the configuration immediately, go to a target workstation and open a Command Prompt as Administrator. Run gpupdate /force. This tells the machine to pull the new LAPS policy from the Domain Controller. You can verify the policy is applied by running gpresult /r and checking that the "Windows LAPS Policy" is listed under Applied Group Policy Objects.
  6. Verify Password Storage in Active Directory
    Open Active Directory Users and Computers (ADUC). Go to View > Advanced Features to ensure the attribute editor is visible. Locate a computer object that should be managed by LAPS, right-click it, and select Properties. Navigate to the Attribute Editor tab and look for the LAPS password attributes (such as msLAPS-Password). If the configuration is successful, you will see a randomized string of characters stored there.

Common Mistakes

One of the most frequent errors is forgetting to enable "Advanced Features" in ADUC. Without this, the Attribute Editor tab is hidden, leading administrators to believe the password was never backed up when it actually was. Another common mistake is applying the GPO to the root of the domain. This can lead to the local administrator accounts on Domain Controllers being managed by LAPS, which is generally unnecessary and can cause confusion during disaster recovery.

Incorrect permissions are also a major hurdle. Administrators often grant the "Domain Users" group read access to the LAPS attributes for convenience, which completely defeats the security purpose of the tool. If any user can read the password, an attacker who compromises a standard user account can instantly gain local admin rights on every machine in the network. Always use a dedicated, restricted security group for LAPS password retrieval.

Tips

To enhance security, combine LAPS with a strict "Least Privilege" model. Instead of using the LAPS account for daily tasks, use it only as a "break-glass" account for when all other administrative access methods fail. Additionally, consider setting the password rotation period to a shorter window (e.g., 14 days) for high-risk machines, such as those used by executives or those that are frequently connected to public networks.

For larger environments, use a separate OU for different tiers of assets. Create different GPOs for workstations and servers, as servers may require longer password rotation cycles or different complexity requirements to avoid interfering with legacy service accounts that might rely on local admin permissions.

Troubleshooting

If the password is not appearing in Active Directory, the first step is to check the Event Viewer on the client machine. Navigate to Windows Logs > Application and look for events sourced from "LAPS". The logs will explicitly tell you if the machine failed to contact the Domain Controller or if it lacked the permissions to write the password to its own computer object in AD.

If the client machine reports a "Permission Denied" error when trying to update the password, verify the permissions on the computer objects in AD. The computer account itself (the system identity) must have the right to write to its own LAPS attributes. If you have modified the default permissions on your OUs, you may need to manually add the "Self" principal with "Write" permissions for the LAPS attributes.

If the local administrator password is not changing on the machine, check for conflicting GPOs. Use gpresult /h report.html to generate a detailed HTML report. Search for the LAPS settings to see if another policy is overriding your configuration. If a higher-priority GPO is setting a different password or disabling LAPS, your changes will not take effect.

Frequently Asked Questions

Does LAPS replace my existing admin passwords?

Yes, once the policy is applied, LAPS will randomize the password for the specified account and overwrite whatever password was previously set manually.

Can I use LAPS for multiple local admin accounts on one machine?

No, a single LAPS policy can only manage one local administrator account per computer. If you need multiple admin accounts, you must manage the others through different security means.

What happens if a computer is offline for a long time?

The password remains the same as the last successful update. Once the computer reconnects to the network and refreshes its Group Policy, it will rotate the password based on the age setting.

Is LAPS available on Windows Home editions?

No, LAPS requires Windows Pro, Enterprise, or Education editions because it relies on Active Directory and Group Policy, which are not available in the Home edition.

Can I recover a password if the Domain Controller is down?

No, because the passwords are stored exclusively in Active Directory. You must have a functional Domain Controller to retrieve the current local administrator password.

Does LAPS work with Azure AD (Entra ID)?

Yes, there is a cloud-native version of Windows LAPS that integrates directly with Microsoft Entra ID for devices that are not joined to a traditional on-premises Active Directory domain.