Implementing Windows LAPS

Earn 25 points (50 with Pro) in two steps

  1. ① Read through the lesson — each section gets a ✓ as you scroll through it.
  2. ② When every section has a ✓, tap Complete lesson.

0 of 10 read · keep scrolling

✦ See fewer ads and earn double points — 50 a lesson instead of 25 — with Pro

Implementing Windows Local Administrator Password Solution (LAPS)

Introduction: Why Managing Local Admin Passwords Matters

In the landscape of enterprise security, few vulnerabilities are as pervasive and dangerous as the "shared local administrator account." For years, IT administrators created a standard local account on every workstation—often named "Administrator" or something similar—and assigned it the same password across the entire fleet. While this provided convenience for troubleshooting and software deployments, it created a massive security liability. If a malicious actor gains administrative access to a single machine, they can extract the password hash for that local account, use "Pass-the-Hash" techniques to move laterally across the network, and eventually compromise the entire domain.

Windows Local Administrator Password Solution (LAPS) was designed to solve this specific problem by automating the management of local administrator passwords. Instead of a static, shared password, LAPS generates a unique, complex, and randomized password for every single device in your organization. These passwords are then stored securely in Active Directory (or Microsoft Entra ID, in modern implementations) and are only accessible by authorized personnel. By ensuring that every device has a unique set of credentials, you effectively stop lateral movement in its tracks. If one machine is compromised, the attacker only gains access to that single machine; they cannot use those credentials to unlock the rest of your infrastructure.

Understanding and implementing LAPS is a fundamental skill for any system administrator or security engineer. It is not merely a tool for convenience; it is a critical defensive layer that mitigates the risk of credential theft and ransomware propagation. In this lesson, we will walk through the architecture, deployment, configuration, and maintenance of Windows LAPS, ensuring you have the knowledge to secure your local administrative accounts effectively.


Not read yet

Understanding the Architecture of Windows LAPS

Before diving into the configuration, it is essential to understand how LAPS interacts with your infrastructure. Traditionally, LAPS was an on-premises solution that relied on Active Directory Domain Services (AD DS). However, Microsoft has recently modernized LAPS (often referred to as "Windows LAPS") to support both on-premises AD and cloud-based management through Microsoft Entra ID.

The Components of LAPS

  • The Client-Side Extension (CSE): This is a small piece of software that runs on each managed device. It is responsible for generating the random password, communicating with the directory service, and rotating the password according to your defined policy.
  • The Directory Service: This acts as the repository for the passwords. In an on-premises environment, this is Active Directory. Attributes are added to the computer object schema to store the password, the expiration time, and the last rotation time.
  • The Management Interface: This is how administrators retrieve the passwords. For on-premises environments, this is typically the LAPS UI (a desktop application) or PowerShell modules. For Entra ID, this is managed through the Microsoft Entra admin center or the Graph API.

Callout: Legacy LAPS vs. Windows LAPS It is important to distinguish between the older "Microsoft LAPS" (a downloadable MSI package) and the modern "Windows LAPS" now built into Windows 10, 11, and Server 2019/2022. The modern version is native to the operating system, requires no additional agent installation, and supports cloud-native scenarios. Always aim to use the modern, built-in Windows LAPS rather than the legacy standalone MSI.


Not read yet

Preparing Your Environment for Deployment

Implementing LAPS requires careful preparation of your directory environment. Whether you are using Active Directory or Entra ID, you must ensure that your schema and permissions are correctly configured to handle the sensitive nature of these passwords.

Preparing Active Directory

If you are using an on-premises Active Directory, you must first update your schema to include the LAPS-specific attributes. This is a one-time operation that extends the schema to support the storage of password data on computer objects.

  1. Schema Extension: Use the Update-LapsADSchema PowerShell command provided by the modern Windows LAPS module. This will add the necessary attributes (like msLAPS-Password and msLAPS-PasswordExpirationTime) to the computer class.
  2. Permissions: By default, you do not want every user to be able to read these passwords. You must configure Access Control Lists (ACLs) on your Organizational Units (OUs) to grant read access only to specific security groups (e.g., "HelpDesk-Tier2").
  3. Authentication: Ensure that the computer accounts themselves have the "Write" permission to their own attributes so they can update their own passwords during the rotation process.

Warning: Schema Changes Modifying the Active Directory schema is a significant operation. Always perform this in a test environment before applying it to your production domain controller. While the LAPS schema extension is generally safe, any schema change should be backed up and documented according to your organization's change management policy.


Not read yet

Implementing Windows LAPS: Step-by-Step

Once the directory is prepared, the actual implementation involves configuring the policy on your client devices. This is typically done using Group Policy Objects (GPO) or Mobile Device Management (MDM) solutions like Microsoft Intune.

Step 1: Configuring the Group Policy

To enable LAPS via GPO, you must first ensure you have the latest Administrative Templates (.admx files) installed on your domain controllers or management workstations.

  1. Open the Group Policy Management Console (GPMC).
  2. Create a new GPO and link it to the OU containing your workstations.
  3. Navigate to Computer Configuration -> Administrative Templates -> System -> LAPS.
  4. Enable the "Enable local admin password management" setting.
  5. Configure the "Name of administrator account to manage" if you are not using the default "Administrator" account.
  6. Configure the "Password Settings" (length, complexity, and age) to meet your organizational security standards.

Step 2: Verifying the Configuration

After the GPO is linked, you need to ensure the clients are receiving the policy and performing the initial password rotation.

  • Run gpupdate /force on a test client machine.
  • Check the Event Viewer on the client machine. Navigate to Applications and Services Logs -> Microsoft -> Windows -> LAPS -> Operational.
  • Look for Event ID 1001, which indicates the policy was successfully applied, and Event ID 1003, which confirms the password was successfully changed and saved to the directory.

Step 3: Retrieving a Password

Once a password has been generated, authorized users can retrieve it. If you are using the PowerShell module, the command is straightforward:

# Retrieve the LAPS password for a specific computer
Get-LapsADPassword -Identity "WS-FINANCE-01"

This command returns the plain-text password for the local administrator account of the specified machine. The output also includes the expiration time, which is useful for audit purposes.


Not read yet

Best Practices and Industry Standards

Implementing LAPS is not a "set it and forget it" task. To maintain a high security posture, you must adhere to specific industry standards regarding password management and access control.

Password Complexity and Rotation

One of the primary benefits of LAPS is the ability to enforce high-entropy passwords. Do not rely on simple passwords just because they are rotated frequently.

  • Length: A minimum of 14 characters is recommended, though 20+ is preferred.
  • Complexity: Ensure the policy mandates a mix of uppercase, lowercase, numbers, and special characters.
  • Rotation Interval: 30 to 90 days is the standard industry recommendation. If a password is used, it should be changed immediately after the task is completed.

Access Control (The Principle of Least Privilege)

The most common mistake administrators make is granting "Domain Admins" or "Help Desk" excessive permissions to read these passwords.

  • Create a Dedicated Group: Create a specific security group (e.g., LAPS-Password-Viewers) in Active Directory.
  • Grant Rights Only Where Necessary: Assign the "Read" permission on the LAPS-specific attributes only to this group, and only on the OUs that actually contain the devices they need to support.
  • Audit Access: Enable auditing on the LAPS attributes in Active Directory. You should be able to see exactly who accessed which password and when.

Callout: The "Just-in-Time" Mindset Consider implementing a process where the LAPS password is only provided to a technician upon an approved ticket. This prevents the "password hoarding" mentality where technicians keep a list of passwords for machines they might need to access in the future.


Not read yet

Common Pitfalls and How to Avoid Them

Even with a solid plan, administrators often encounter hurdles during LAPS deployment. Being aware of these pitfalls can save you hours of troubleshooting.

1. Permission Issues

The most frequent issue is that the computer object lacks the permission to write its own password back to the directory. If you see Event ID 1004 in the LAPS log, it usually indicates an "Access Denied" error. Ensure the "Self" principal has "Write" access to the msLAPS-Password attribute.

2. Time Synchronization

LAPS relies heavily on the system clock for password expiration. If a client machine’s clock is significantly out of sync with the Domain Controller, the LAPS client may incorrectly determine that the password has expired or is not yet due for rotation. Always ensure your environment uses a robust NTP (Network Time Protocol) configuration.

3. Account Name Mismatch

If your organization renamed the default "Administrator" account for security reasons (a common practice), the LAPS policy must be explicitly configured to target the correct account name. If the policy targets "Administrator" but that account is disabled or renamed, LAPS will fail to manage the password.

4. Lack of Monitoring

Many organizations deploy LAPS but never monitor the health of the service. If a client stops reporting password changes, you might not notice until you actually need the password during a critical outage. Configure a monitoring alert in your SIEM or management tool to flag any machine that has not performed a successful password rotation in the last 60 days.


Not read yet

Advanced Scenarios: Entra ID and Cloud Integration

As organizations transition to cloud-first management, Windows LAPS has evolved to support Microsoft Entra ID. This is particularly useful for remote workers who are not connected to the corporate VPN and therefore cannot communicate with on-premises domain controllers.

Entra ID LAPS Workflow

In an Entra ID environment, the password rotation and storage occur entirely within the cloud. The computer joins Entra ID, receives an Intune configuration profile, and then pushes its password directly to the Entra ID device object.

  • Intune Configuration: Create a "Settings Catalog" profile in Microsoft Intune. Search for "LAPS" and you will find the configuration settings that mirror the GPO settings.
  • RBAC Roles: In Entra ID, access to these passwords is controlled via Azure RBAC roles. You can assign the "Local Administrator Password Viewer" role to specific users or groups.
  • Audit Logs: Entra ID provides built-in audit logs that show exactly which user accessed the password for a specific device, providing a clear audit trail without requiring additional configuration.

Comparison Table: On-Premises vs. Cloud LAPS

Feature On-Premises (AD) Cloud (Entra ID)
Primary Directory Active Directory Domain Services Microsoft Entra ID
Policy Source Group Policy (GPO) Microsoft Intune / MDM
Password Storage Computer object attributes Cloud device object
Retrieval Method PowerShell / LAPS UI Microsoft Entra Admin Center / Graph API
Authentication Kerberos/NTLM OAuth 2.0 / Entra ID

Not read yet

Troubleshooting Checklist

When things do not go as planned, follow this systematic approach to isolate the issue:

  1. Check Policy Application: Use rsop.msc or gpresult /h report.html to confirm that the LAPS GPO is actually being applied to the machine.
  2. Verify Service Status: Ensure the "LAPS" service (or the native Windows LAPS functionality) is enabled and running.
  3. Test Connectivity: If on-premises, ensure the client can reach a Domain Controller and that there are no firewall rules blocking the necessary traffic.
  4. Review Event Logs: Always check the Microsoft-Windows-LAPS/Operational log. This is the source of truth for all LAPS-related activity.
  5. Check Schema/Attributes: If the password is not being saved, verify that the computer object has the necessary attributes and that the schema extension was successful.

Integrating LAPS into Incident Response

LAPS is not just a preventative measure; it is a vital tool for incident response. If a security incident occurs, your response team will need to access local administrator accounts to investigate, remediate, or isolate affected machines.

  • Pre-Incident Readiness: Ensure that your incident response team has the appropriate permissions to retrieve LAPS passwords before an emergency happens. Do not wait for a breach to discover that your permissions are misconfigured.
  • Post-Compromise Rotation: If you suspect a machine has been compromised, use the Reset-LapsPassword command (or the equivalent UI action) to force an immediate password rotation. This effectively "kicks" the attacker out of the local admin account, assuming they do not have other persistence mechanisms.
  • Audit Trail Analysis: During a forensic investigation, review the audit logs to see if a LAPS password was retrieved shortly before a malicious action occurred. This can help identify compromised accounts or rogue administrators.

Not read yet

Security Considerations for LAPS Management

While LAPS is highly secure, the way you manage the management tool itself is equally important. If you install the LAPS management UI on a machine that is itself compromised, you have effectively handed the keys to the kingdom to the attacker.

  1. Secure the Management Workstation: Only use dedicated, hardened administrative workstations to manage LAPS. These machines should have restricted internet access and be subject to strict application control policies.
  2. MFA for Password Retrieval: If you are using Entra ID, ensure that users who are authorized to retrieve LAPS passwords are required to use Multi-Factor Authentication (MFA). This prevents a stolen set of credentials from being used to harvest all your local admin passwords.
  3. Documentation: Keep a clear record of which groups have access to which OUs. Review this access list quarterly to ensure that permissions haven't "crept" over time as staff changes occur.

Note: LAPS does not manage the password for the "Domain Admin" account. It only manages local accounts. If you have "Domain Admin" accounts that are also configured as local admins on workstations, you are still at risk. Ensure that your workstation local admin group contains only the LAPS-managed account and not domain-level accounts.


Not read yet

Key Takeaways

Implementing Windows LAPS is one of the highest-value security projects you can undertake. It provides an immediate and measurable reduction in your attack surface by eliminating the risk of lateral movement via shared local credentials.

To ensure a successful and sustainable implementation, keep these points in mind:

  • Standardize on Modern LAPS: Always use the built-in Windows LAPS rather than the legacy standalone version. It is better integrated, easier to maintain, and supports modern cloud workflows.
  • Principle of Least Privilege: Never grant broad access to retrieve passwords. Use specific security groups and apply them only to the necessary Organizational Units or device groups.
  • Automate and Monitor: Use GPOs or Intune to ensure the policy is applied automatically to all new devices. Monitor the LAPS event logs to catch failures before they become problems.
  • Test Before Production: Always perform schema extensions and GPO changes in a sandbox environment. A small mistake in the directory configuration can have widespread consequences.
  • Integrate with Response: Make LAPS access a part of your standard incident response playbook. It is a powerful tool for isolating compromised systems during an investigation.
  • Audit Regularly: Password retrieval is a sensitive action. Ensure that every request for a password is logged and that those logs are reviewed periodically to identify suspicious activity.
  • Address Persistence: Remember that LAPS is a tool for credential management, not a complete security solution. It must be paired with other defenses, such as disabling unnecessary local accounts and enforcing the principle of least privilege for daily user activities.

By following these practices, you transform your local administrator password management from a liability into a robust, automated, and secure system that protects your organization against one of the most common and effective attack vectors in the modern threat landscape.

Not read yet

Each section gets a ✓ as you scroll through it. Tap the button to jump to the next one.