Recommended Settings for Windows LAPS with Intune

  • Post author:
  • Post category:Microsoft Intune
  • Post last modified:
  • Reading time:8 mins read
  • Post published:

Recommended LAPS settings

Below is a list of recommended Windows LAPS settings from Intune, configured in the order in which they are enabled in the Intune admin portal.

While some of these recommendations match those in the latest CIS Intune benchmark for Windows 11, some are stronger than the CIS recommendation and are my own recommendations.

Ensure the backup directory is set to Microsoft Entra ID Only

For a hybrid identity architecture with accounts synchronised from your on-premises Active Directory, the recommended approach is to store LAPS passwords only in Microsoft Entra ID. This configuration is a prerequisite for protecting password retrieval with modern security frameworks like Conditional Access. It is also the only supported configuration for devices that are Microsoft Entra-joined.

To configure your LAPS passwords to be stored in Microsoft Entra Only, log in to the Microsoft Intune admin center and follow the steps below:

  1. Select Endpoint security > Account protection.
  2. Click Create policy to edit your existing policy.
  3. Set the Backup Directory to “Backup the password to Azure AD only“.

Ensure 'Password Age Days' is set to 'Configured: 7 or fewer'

The CIS benchmark for password age recommends your leave the default configuration as it is (30 days). I recommended reducing this length to 7 days. The expectation is not that the password will be guessed or cracked. Still, if a user is self-servicing their own LAPS password from the Entra portal or a custom workflow, they cannot use the copy & paste function to enter the password into the UAC password area. Instead, they will likely be forced to write down their password or take a picture on their smartphone. Reducing the password age to 7 days or fewer will help mitigate this risk. 

By default with this setting, password expiration protection is enabled, which ensures that in no event the password can survive longer than the time set in the password age days.

To configure this settings, modify your existing Windows LAPS policy in Microsoft Intune and set Password Age Days to 7.

Ensure 'Password Complexity' is set to 'Large letters + small letters + numbers + special characters (improved readability)'

By default, the password complexity setting is set to 4, which is ‘Large letters + small letters + numbers + special characters‘. However, ‘Large letters + small letters + numbers + special characters (improved readability)‘ improves the readability of generated passwords and helps to reduce confusion and wasted time.

By setting the password complexity of your Windows LAPS deployment to setting 5, the following characters will not be used to generate the password:

  • These letters: ‘I’, ‘O’, ‘Q’, ‘l’, ‘o’
  • These numbers: ‘0’, ‘1’
  • These ‘special’ characters: ‘,’, ‘.’, ‘&’, ‘{‘, ‘}’, ‘[‘, ‘]’, ‘(‘, ‘)’, ‘;’
An alternative solution, which provides similar security and convenience, is setting 8, which is a Passphrase that includes short words with unique prefixes. Microsoft provide a details list of Windows LAPS Passphrase words here.
 
To configure this setting, modify your existing Windows LAPS policy in Microsoft Intune and configure Password complexity to either:
  • Large letters + small letters + numbers + special characters (improved readability)
  • Passphrase (short words with unique prefixes)

Ensure 'Password Length' is set to 'Configured: 15 or more'

While Microsoft has some guidance on Microsoft Learn around the recommended password length for a password policy, this is not enough for our recommendation. You should configure a password length of 15 characters or more. Each additional character will exponentially increase the complexity of your password and the total number of combinations available. Theoretically, it will make the password ever so hard to crack using traditional methods. While the default for this setting is 14 characters, it removes the possibility of an assumption by an attacker.

It is important to know that this setting will only work with Password Complexity settings 1 to 5. Passphrases are not supported with these settings. If you are using Passphrases, you should configure the Passphrase length using the following setting and set it to 6 words (default).

To configure the setting, modify your existing Windows LAPS policy in Microsoft Intune and set the Password Length to 15 or 6, depending on the complexity type.

Ensure 'Post-authentication actions' is set to 'Reset the password, logoff the managed account and terminate any remaining processes' or higher

Upon expiry of the password grace period (the period after which the password is used), an action will be performed as defined in this setting. While a good policy and admin training is critical when using Windows LAPS, if the admin session is still active after the grace period expires, you should configure Windows to reset the password, force log-off on the managed account and terminate any remaining processes. 

Higher settings would include forcing the computer to reboot, which may be necessary in some scenarios. However, generally speaking, you want to avoid the risk of data loss for other users signed into the desktop. Forcing a log-off on the managed account and terminating existing processes will meet most security requirements.

To configure this setting, modify your existing Windows LAPS policy in Microsoft Intune and set Post Authentication Actions to Reset the password, logoff the managed account, and terminate any remaining processes: upon expiration of the grace period, the managed account password is reset, any interactive logon sessions using the managed account are logged off, and any remaining processes are terminated.

Ensure 'Post-authentication Reset Delay' is set to 'Configured: 8 or fewer hours, but not 0'

When a password is used, the system will wait a specific amount of time before triggering the configure post-authentication action. This time is called the Post-authentication reset delay. Again, as mentioned above, good administrator policy and training will ensure the admin logs the managed account off correctly and on time. However, in extenuating circumstances such as a fire alarm or medical emergency, it would be appropriate to immediately leave your desktop as it is. This is where this setting will shine. Configuring this setting to 8 hours will ensure that if the device is left alone for long periods, it will be logged off forcefully and not left active for potential abuse.

I recommend you configure this setting to 1. Modify your existing Windows LAPs policy in Microsoft Intune and set Post Authentication Reset Delay to 1.

Enable automatic account creation

This setting will automatically create a local admin account on your end-user devices. While creating a custom account over the built-in admin account can be argued against (obscurity over security), I recommend you take advantage of this simple feature. If you enable this feature, but do not specify a custom name, a generic account named WLapsAdmin will be created.

To configure Automatic administrator account creation in Microsoft Intune, edit your Windows LAPs policy in Microsoft Intune and configure:

  1. Automatic Account Management Enabled to The target account will be automatically managed.
  2. Automatic Account Management Enable Account to The target account will be enabled.

Randomise your local admin account name (for every device)

The account you manage with Windows LAPS mustn’t be easily guessable, this could delay an attacker and give via you valuable time to respond and mitigate an attack if detected quickly. To do this, you should configure a prefix for your account, such as a three-letter abbreviation of your company name, followed by 6 random numerical characters (by default). Any more than that then it becomes a inconvenience for your support staff.

To customise and randomise the automatically created Windows LAPS account, modify your existing Windows LAPs policy in Microsoft Intune and configure the following settings:

  • Set Automatic Account Management Randomize Name to The name of the target account will use a random numeric suffix.
  • Set Automatic Account Management Target to Manage a new custom administrator account (Default).
  • Set Automatic Account Management Name Or Prefix to Configured and define an account name prefix.

Settings preview

Recommended LAPS settings
Recommended LAPS settings

Summary

Any time is a good time to review your existing LAPS deployment and tighten up some settings that do not meet these recommendations. By adhering to these standards, not only are you securing local admin accounts in your environment in the best way possible, but you are also adhering to standards often used in highly sensitive organisations, which will ultimately help you diversify your customer base as an organisation.

For more detail on new features released in Windows 11 24H2, read my articles:

Daniel Bradley

Daniel Bradley is a UK-based technical architect and Microsoft MVP in Security. He specialises in Microsoft Entra, Intune, and Microsoft Graph PowerShell and is the author of Microsoft Graph PowerShell for Administrators. He writes and edits Our Cloud Network using experience gained from working with Microsoft cloud environments.

This Post Has 2 Comments

  1. Steven L

    Humorously, the Bonus LAPS recommendation will result in a local account being created with the name of ‘leethaxor’, some folks will have a bad day, and all will have a good laugh later.

  2. Glenn

    Thank you very much for such an extensive and yet very clear overview and very well founded recommendations.

Leave a Reply