# Ensure LAPS Configuration Policy is properly set

Ensure at least one Intune LAPS policy is configured to back up local admin passwords to Microsoft Entra ID.

Source: https://maester.dev/docs/tests/MT.1177

<!-- This file is generated by website/scripts/generate-test-docs.mjs. Do not edit manually. -->

<div class="test-byline"><div class="test-byline-avatars"><a class="test-byline-avatar test-byline-avatar--author" href="/contributors/ofirgavish" title="Ofir Gavish · Original author"><img src="https://github.com/OfirGavish.png" alt="Ofir Gavish" width="28" height="28" loading="lazy" decoding="async" /></a></div><div class="test-byline-meta"><span class="test-byline-text">Contributed by <a href="/contributors/ofirgavish">Ofir Gavish</a></span><a class="test-byline-link" href="/contributors">All contributors →</a></div></div>

<p class="test-part">Part of <a href="/docs/tests/maester">Maester</a> · Intune · Endpoint security · <a href="/docs/tests">All checks</a></p>

```powershell title="Run this check"
Invoke-Maester -TestId MT.1177
```

## Overview

Ensure at least one Intune LAPS policy is configured to **back up local admin passwords to Microsoft Entra ID**.

Windows LAPS (Local Administrator Password Solution) automatically rotates and backs up local administrator passwords on managed devices. Without LAPS, local admin accounts often share the same password across all devices — if one device is compromised, an attacker can move laterally to every other device using the same credentials.

Key settings this test evaluates:

- **Backup Directory**: Must be set to **Azure AD only** (Entra ID) to store passwords in the cloud where they can be retrieved by authorized admins.
- **Password Complexity**: Must be `Large + small + numbers + special` (`_4`) or improved (`_8`).
- **Password Length**: Must be **>= 14** characters.
- **Post-Authentication Actions**: Must be set to a defined action (`_1` reset password / `_3` reset password + logoff / `_5` reset password + reboot / `_11` reset password + logoff + terminate processes) so the password rotates after use.
- **Automatic Account Management**: Whether LAPS auto-manages the local admin account lifecycle (informational).

The test passes if **at least one LAPS policy** meets **all** of the criteria above (Entra backup AND complexity is `_4` or `_8` AND length >= 14 AND a defined post-auth action). The Intune Settings Catalog only exposes `_1`..`_4` plus the newer `_8` ("improved 4-class") choice for `PasswordComplexity`, so `_4` and `_8` are the only values that satisfy the 4-character-class requirement. A policy that only sets Backup Directory is no longer sufficient.

#### Remediation action

1. Navigate to [Microsoft Intune admin center](https://intune.microsoft.com).
2. Go to **Endpoint security** > **Account protection**.
3. Click **+ Create policy**.
4. Set **Platform** to **Windows 10 and later** and **Profile** to **Local admin password solution (Windows LAPS)**.
5. Enter a policy name (e.g., "LAPS - Entra ID Backup").
6. Configure the following settings:
   - **Backup Directory**: **Azure AD only**
   - **Password Complexity**: **Large letters + small letters + numbers + special characters**
   - **Password Length**: **21** (or at least 14)
   - **Post-Authentication Actions**: **Reset password and logoff**
   - **Post-Authentication Reset Delay**: **1 hour**
   - **Administrator Account Name**: Leave default or specify custom account
7. Assign the policy to your device groups and click **Create**.

#### Related links

- [Microsoft Intune - Endpoint Security Account Protection](https://intune.microsoft.com/#view/Microsoft_Intune_Workflows/SecurityManagementMenu/~/accountprotection)
- [Microsoft Learn - Windows LAPS with Microsoft Intune](https://learn.microsoft.com/mem/intune/protect/windows-laps-overview)
- [Microsoft Learn - Windows LAPS CSP reference](https://learn.microsoft.com/windows/client-management/mdm/laps-csp)
- [CIS Benchmark - Ensure LAPS is configured for local admin accounts](https://www.cisecurity.org/benchmark/microsoft_intune_for_windows)

## Details

<details>
<summary>Every attribute of this check</summary>

| Field | Value |
| --- | --- |
| Test ID | MT.1177 |
| Severity | Medium |
| Suite | Maester |
| Product | Intune |
| Feature | Endpoint security |
| Area | Privileged access |
| Resource type | Tenant |
| User impact | Low |
| Implementation cost | Medium |
| MITRE ATT&CK | T1078.003 Local Accounts, T1021 Remote Services |
| Supports controls | nist-800-53-r5:IA-5 |
| PowerShell test | [Test-MtIntuneLAPSConfiguration](https://github.com/maester365/maester/blob/main/tests/maester/intune/Test.MT.1177.ps1) |
| Services | Graph |
| Compatible licenses | INTUNE_A |

</details>

## Source

- Test: [`tests/maester/intune/Test.MT.1177.ps1`](https://github.com/maester365/maester/blob/main/tests/maester/intune/Test.MT.1177.ps1)
- Documentation: [`tests/maester/intune/Test.MT.1177.md`](https://github.com/maester365/maester/blob/main/tests/maester/intune/Test.MT.1177.md)
