Baseline Info (please complete the following information):
- OS: Windows 11 (24H2+)
- Version: v3.6 (LAPS) & v3.7 (Local Group Membership)
Describe the bug
A critical configuration mismatch exists between the LAPS v3.6 policy and the Local Group Membership v3.7 policy in the repository. When these JSON files are imported manually, the LAPS policy fails to create the managed admin account because the account name is undefined (empty string). However, the Group Membership policy (v3.7) runs a Replace action expecting this account to exist. This results in the removal of all existing administrators (including the current user and Entra Admins) without adding the new one, causing a complete device lockout.
To Reproduce
Steps to reproduce the behaviour:
- Import the JSON policy
Win - OIB - ES - Windows LAPS - D - LAPS Configuration (24H2+) - v3.6.json into Intune.
- Import the JSON policy
Win - OIB - ES - Local Group Membership - D - Local Administrators - v3.7.json into Intune.
- Assign both policies to a fresh Windows 11 (24H2+) device.
- Sync the device and wait for policy application.
- See error: The device local
Administrators group is empty (except for the built-in disabled Administrator). In Intune, the "Local Group Membership" profile reports Error 65000 (Failed).
Expected behaviour
The LAPS configuration JSON (v3.6) should explicitly define the account name as WLapsAdmin in the automaticaccountmanagementnameorprefix setting by default. This would ensure the account is created, matching the hardcoded dependency in the Group Membership (v3.7) policy and preventing the lockout.
Screenshots
N/A (Intune reports Error 65000; Local net localgroup administrators returns an empty list).
Additional context
Root cause analysis based on the JSON files:
- In
Win - OIB - ES - Windows LAPS - D - LAPS Configuration (24H2+) - v3.6.json, the setting for Automatic Account Management Name is initialized with an empty string:
"simpleSettingValue": {
"value": ""
}
- In
Win - OIB - ES - Local Group Membership - D - Local Administrators - v3.7.json, the policy is configured with Group and User Action: Replace and explicitly attempts to add the user "WLapsAdmin".
Because the account is not created (due to the empty value in LAPS config), the Group Membership policy fails to find the user but successfully executes the "Replace" action, wiping all other admins.
Baseline Info (please complete the following information):
Describe the bug
A critical configuration mismatch exists between the LAPS v3.6 policy and the Local Group Membership v3.7 policy in the repository. When these JSON files are imported manually, the LAPS policy fails to create the managed admin account because the account name is undefined (empty string). However, the Group Membership policy (v3.7) runs a
Replaceaction expecting this account to exist. This results in the removal of all existing administrators (including the current user and Entra Admins) without adding the new one, causing a complete device lockout.To Reproduce
Steps to reproduce the behaviour:
Win - OIB - ES - Windows LAPS - D - LAPS Configuration (24H2+) - v3.6.jsoninto Intune.Win - OIB - ES - Local Group Membership - D - Local Administrators - v3.7.jsoninto Intune.Administratorsgroup is empty (except for the built-in disabled Administrator). In Intune, the "Local Group Membership" profile reports Error 65000 (Failed).Expected behaviour
The LAPS configuration JSON (
v3.6) should explicitly define the account name asWLapsAdminin theautomaticaccountmanagementnameorprefixsetting by default. This would ensure the account is created, matching the hardcoded dependency in the Group Membership (v3.7) policy and preventing the lockout.Screenshots
N/A (Intune reports Error 65000; Local
net localgroup administratorsreturns an empty list).Additional context
Root cause analysis based on the JSON files:
Win - OIB - ES - Windows LAPS - D - LAPS Configuration (24H2+) - v3.6.json, the setting for Automatic Account Management Name is initialized with an empty string:Win - OIB - ES - Local Group Membership - D - Local Administrators - v3.7.json, the policy is configured withGroup and User Action: Replaceand explicitly attempts to add the user"WLapsAdmin".Because the account is not created (due to the empty value in LAPS config), the Group Membership policy fails to find the user but successfully executes the "Replace" action, wiping all other admins.