Implementing Windows LAPS
Earn 25 points (50 with Pro) in two steps
- ① Read through the lesson — each section gets a ✓ as you scroll through it.
- ② 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.
- Schema Extension: Use the
Update-LapsADSchemaPowerShell command provided by the modern Windows LAPS module. This will add the necessary attributes (likemsLAPS-PasswordandmsLAPS-PasswordExpirationTime) to the computer class. - 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").
- 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.
- Open the Group Policy Management Console (GPMC).
- Create a new GPO and link it to the OU containing your workstations.
- Navigate to
Computer Configuration->Administrative Templates->System->LAPS. - Enable the "Enable local admin password management" setting.
- Configure the "Name of administrator account to manage" if you are not using the default "Administrator" account.
- 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 /forceon 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:
- Check Policy Application: Use
rsop.mscorgpresult /h report.htmlto confirm that the LAPS GPO is actually being applied to the machine. - Verify Service Status: Ensure the "LAPS" service (or the native Windows LAPS functionality) is enabled and running.
- Test Connectivity: If on-premises, ensure the client can reach a Domain Controller and that there are no firewall rules blocking the necessary traffic.
- Review Event Logs: Always check the
Microsoft-Windows-LAPS/Operationallog. This is the source of truth for all LAPS-related activity. - 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-LapsPasswordcommand (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.
- 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.
- 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.
- 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.
- Choosing Device Join Types
- Choosing Device Join Types Quiz5q
- Joining Devices to Microsoft Entra ID
- Joining Devices to Microsoft Entra ID Quiz5q
- Registering Devices to Microsoft Entra ID
- Registering Devices to Microsoft Entra ID Quiz5q
- Planning Device Groups in Microsoft Entra ID
- Planning Device Groups in Microsoft Entra ID Quiz5q
- Implementing Dynamic Device Groups
- Implementing Dynamic Device Groups Quiz5q
- Configuring Enrollment Settings
- Configuring Enrollment Settings Quiz5q
- Configuring Automatic Enrollment for Windows
- Configuring Automatic Enrollment for Windows Quiz5q
- Configuring Bulk Enrollment for iOS and Android
- Configuring Bulk Enrollment for iOS and Android Quiz5q
- Configuring Android Enrollment Profiles
- Configuring Android Enrollment Profiles Quiz5q
- Configuring Android Enterprise Work Profiles
- Configuring Android Enterprise Work Profiles Quiz5q
- Managing Roles in Intune
- Managing Roles in Intune Quiz5q
- Implementing Compliance Policies
- Implementing Compliance Policies Quiz5q
- Implementing Conditional Access with Compliance
- Implementing Conditional Access with Compliance Quiz5q
- Configuring Windows Hello for Business
- Configuring Windows Hello for Business Quiz5q
- Implementing Windows LAPS
- Implementing Windows LAPS Quiz5q
- Managing Local Groups Membership
- Managing Local Groups Membership Quiz5q
- Choosing Between Autopilot and Provisioning Packages
- Choosing Between Autopilot and Provisioning Packages Quiz5q
- Choosing Windows Autopilot Deployment Modes
- Choosing Windows Autopilot Deployment Modes Quiz5q
- Applying Device Name Templates
- Applying Device Name Templates Quiz5q
- Implementing Windows Autopilot Deployment
- Implementing Windows Autopilot Deployment Quiz5q
- Creating Enrollment Status Pages
- Creating Enrollment Status Pages Quiz5q
- Implementing Provisioning Packages
- Implementing Provisioning Packages Quiz5q
- Planning Windows 11 Upgrades
- Planning Windows 11 Upgrades Quiz5q
- Implementing Windows 365 Cloud PC
- Implementing Windows 365 Cloud PC Quiz5q
- Configuring Autopilot Device Preparation
- Configuring Autopilot Device Preparation Quiz5q
- Creating Windows Device Configuration Profiles
- Creating Windows Device Configuration Profiles Quiz5q
- Importing ADMX Files
- Importing ADMX Files Quiz5q
- Creating Android Device Profiles
- Creating Android Device Profiles Quiz5q
- Creating iOS and iPadOS Device Profiles
- Creating iOS and iPadOS Device Profiles Quiz5q
- Creating macOS Device Profiles
- Creating macOS Device Profiles Quiz5q
- Targeting Profiles Using Filters
- Targeting Profiles Using Filters Quiz5q
- Creating Windows 11 Enterprise Multi-Session Profiles
- Creating Windows 11 Enterprise Multi-Session Profiles Quiz5q
- Configuring Endpoint Privilege Management
- Configuring Endpoint Privilege Management Quiz5q
- Using Enterprise App Catalog
- Using Enterprise App Catalog Quiz5q
- Implementing Advanced Analytics
- Implementing Advanced Analytics Quiz5q
- Configuring Remote Help
- Configuring Remote Help Quiz5q
- Implementing Microsoft Tunnel for MAM
- Implementing Microsoft Tunnel for MAM Quiz5q
- Understanding Microsoft Cloud PKI
- Understanding Microsoft Cloud PKI Quiz5q
- Syncing and Restarting Devices
- Syncing and Restarting Devices Quiz5q
- Retiring and Wiping Devices
- Retiring and Wiping Devices Quiz5q
- Performing Bulk Remote Actions
- Performing Bulk Remote Actions Quiz5q
- Rotating BitLocker Recovery Keys
- Rotating BitLocker Recovery Keys Quiz5q
- Running Device Queries with KQL
- Running Device Queries with KQL Quiz5q
- Updating Defender Antivirus Definitions
- Updating Defender Antivirus Definitions Quiz5q
- Preparing Applications for Deployment
- Preparing Applications for Deployment Quiz5q
- Deploying Apps Using Intune
- Deploying Apps Using Intune Quiz5q
- Deploying Microsoft 365 Apps
- Deploying Microsoft 365 Apps Quiz5q
- Configuring Policies for Office Apps
- Configuring Policies for Office Apps Quiz5q
- Using Office Deployment Tool with Autopilot
- Using Office Deployment Tool with Autopilot Quiz5q
- Managing Apps in Microsoft 365 Admin Center
- Managing Apps in Microsoft 365 Admin Center Quiz5q
- Deploying Apps from Platform App Stores
- Deploying Apps from Platform App Stores Quiz5q
- Managing Win32 App Dependencies
- Managing Win32 App Dependencies Quiz5q
- Planning App Protection Policies
- Planning App Protection Policies Quiz5q
- Implementing App Protection Policies
- Implementing App Protection Policies Quiz5q
- Implementing Conditional Access for Apps
- Implementing Conditional Access for Apps Quiz5q
- Planning App Configuration Policies
- Planning App Configuration Policies Quiz5q
- Implementing App Configuration Policies
- Implementing App Configuration Policies Quiz5q
- Configuring Selective Wipe for Apps
- Configuring Selective Wipe for Apps Quiz5q
- Creating Antivirus Policies
- Creating Antivirus Policies Quiz5q
- Creating Disk Encryption Policies
- Creating Disk Encryption Policies Quiz5q
- Creating Firewall Policies
- Creating Firewall Policies Quiz5q
- Configuring Attack Surface Reduction
- Configuring Attack Surface Reduction Quiz5q
- Implementing Security Baselines
- Implementing Security Baselines Quiz5q
- Integrating with Defender for Endpoint
- Integrating with Defender for Endpoint Quiz5q
- Onboarding Devices to Defender for Endpoint
- Onboarding Devices to Defender for Endpoint Quiz5q
- Configuring Endpoint Detection and Response
- Configuring Endpoint Detection and Response Quiz5q
- Planning Device Updates
- Planning Device Updates Quiz5q
- Creating Windows Update Rings
- Creating Windows Update Rings Quiz5q
- Managing iOS and macOS Updates
- Managing iOS and macOS Updates Quiz5q
- Managing Android Updates
- Managing Android Updates Quiz5q
- Configuring Delivery Optimization
- Configuring Delivery Optimization Quiz5q
- Monitoring Update Deployments
- Monitoring Update Deployments Quiz5q
- Creating Feature Update Policies
- Creating Feature Update Policies Quiz5q
- Managing Quality Update Expedites
- Managing Quality Update Expedites Quiz5q
- Using Windows Update for Business Reports
- Using Windows Update for Business Reports Quiz5q
Spend your points to unlock exam-style practice questions
Spend points to unlock MD-102 exam-style practice questions.
Practice for MD-102