Configure Windows LAPS with Microsoft Intune
In this article
Yes, you can configure Local Administrator Password Solution (LAPS) with Microsoft Intune to centrally manage and rotate local administrator passwords on your Windows devices, significantly enhancing security. This prevents the use of default or easily guessable passwords and reduces the risk of unauthorized access. Here’s how to do it, step-by-step.
What You'll Need
- An active Microsoft Intune subscription.
- Windows 10 or later devices enrolled in Intune.
- Global Administrator or Intune Administrator role in Microsoft Entra ID (Azure Active Directory).
- The latest version of the LAPS client installed on your target devices. (Download from Microsoft's website – see Troubleshooting for a link).
- A clear understanding of your organization's password complexity and rotation requirements.
Step-by-Step
- Download the LAPS Client: Download the latest version of the LAPS client from the Microsoft Download Center. Ensure you download the correct version for your architecture (x64 or x86). (https://www.microsoft.com/en-us/download/details.aspx?id=54656)
- Deploy the LAPS Client: There are several ways to deploy the LAPS client. The most common are:
- Microsoft Endpoint Manager (MEM) – formerly SCCM: If you already use MEM, deploy the LAPS client as a Windows application.
- Intune Win32 App Deployment: Package the LAPS client as a Win32 app in Intune and deploy it to your target devices. This is the recommended approach if you are primarily using Intune.
- Group Policy (GPO): If your devices are hybrid-joined (both Entra ID and on-premises AD), you can deploy the LAPS client via GPO.
- Create an Intune Configuration Profile: In the Microsoft Endpoint Manager admin center (endpoint.microsoft.com), navigate to Devices > Configuration profiles > Create profile.
- Choose Platform and Profile Type: Select Windows 10 and later as the platform and Templates > Customization > Registry Customization as the profile type.
- Name and Configure the Profile: Give your profile a descriptive name (e.g., "LAPS Configuration").
- Configure Registry Settings: This is the core of the configuration. You'll need to create multiple registry entries to control LAPS behavior. Here are some essential settings:
- Enable LAPS:
- Item Type:
REG_DWORD - Path:
HKLM\Software\Policies\Microsoft\Windows\System\LAPS - Value name:
EnableLAPS - Value data:
1(Enables LAPS)
- Item Type:
- Password Complexity: (Optional, but highly recommended)
- Item Type:
REG_DWORD - Value name:
PasswordComplexity - Value data:
1(Requires complexity - refer to Microsoft documentation for other values)
- Item Type:
- Password Length: (Optional)
- Item Type:
REG_DWORD - Value name:
PasswordLength - Value data:
12(Sets the minimum password length - adjust as needed)
- Item Type:
- Password History: (Optional)
- Item Type:
REG_DWORD - Value name:
PasswordHistoryCount - Value data:
5(Stores the last 5 passwords – adjust as needed)
- Item Type:
- Rotation Interval: (Optional)
- Item Type:
REG_DWORD - Value name:
RotationIntervalDays - Value data:
90(Rotates passwords every 90 days – adjust as needed)
- Item Type:
- Enable LAPS:
- Assign the Profile: Assign the newly created configuration profile to your target devices or user groups in Intune.
- Verify LAPS is Enabled: After the profile is deployed, check the target devices to ensure that the LAPS client is running and the registry settings have been applied correctly. You can use PowerShell on the device to verify the registry settings (e.g., `Get-ItemProperty -Path "HKLM:\Software\Policies\Microsoft\Windows\System\LAPS"`).
Common Mistakes
- Incorrect Registry Paths: Double-check the registry paths in your Intune configuration profile. Even a small typo can prevent LAPS from functioning correctly.
- Missing LAPS Client Deployment: The configuration profile alone will not work without the LAPS client installed on the devices.
- Conflicting Group Policy: If you are using both Intune and Group Policy, ensure that there are no conflicting settings that could override the Intune configuration.
- Incorrect Value Types: Ensure that the Item Type (REG_DWORD, REG_SZ, etc.) matches the expected type for the registry value.
- Not Testing: Always test your LAPS configuration on a small group of devices before deploying it to your entire organization.
Tips
- Use Variable-Based Configuration: Leverage Intune's variable-based configuration capabilities to customize LAPS settings based on device groups or user roles.
- Monitor LAPS Logs: Regularly monitor the LAPS event logs on your devices to identify any issues or errors.
- Automate Password Retrieval: Consider using PowerShell scripts or other automation tools to retrieve LAPS-managed passwords securely.
- Document Your Configuration: Thoroughly document your LAPS configuration, including the Intune configuration profile settings and any custom scripts or automation tools.
- Keep LAPS Client Updated: Regularly update the LAPS client to benefit from the latest security fixes and features.
Troubleshooting
- LAPS Client Not Installed: Verify the LAPS client is deployed and installed on the target devices. Check the Intune deployment status for the Win32 app.
- Registry Settings Not Applied: Use PowerShell on the device to check if the registry settings have been applied correctly. Restart the device if necessary.
- LAPS Not Functioning: Check the LAPS event logs (Event Viewer > Applications and Services Logs > Microsoft > Windows > System) for any errors.
- Password Rotation Issues: Verify the Rotation Interval setting and ensure that the device has network connectivity to communicate with the LAPS server (if applicable).
- Download LAPS Client: If you are having trouble downloading the LAPS client, try a different browser or download location. Always download from the official Microsoft website: https://www.microsoft.com/en-us/download/details.aspx?id=54656