Registry data refreshed from vendors: Last vendor change detected: 5 Dec 2026Next refresh: 1st of the monthApp v1.4.0 (5 Dec 2026): Cleanup or tattoo: see what stays behind after a GPO is removed. Release notes
Windows (ADMX) · LAPS.admx

LAPS.admx: 10 policies

Generated from Microsoft Windows Server 2025 Datacenter build 26100 in-box templates + Windows 11 ADMX package (download id 108394) on 2026-12-05. Titles, explanations and "Supported on" text are Microsoft's own, from the en-US ADML file.

Configure authorized password decryptors

Per machine Windows 11Windows Server 2025Windows Server 2022Windows Server 2019Windows Server 2016

Supported on: At least Microsoft Windows 10 or later

When the GPO stops applying: Windows removes the value (it is under a Policies branch). How cleanup works

Registry keyHKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS
OptionValueTypeAllowed values
Authorized password decryptorADPasswordEncryptionPrincipalREG_SZText, up to 128 characters
What it does (vendor explanation)

Configure this setting to control the specific user or group who is authorized to decrypt encrypted passwords.

Configuring this setting has no effect unless password encryption has been enabled.

If this setting is enabled, encrypted passwords will be decryptable by the specified group.

If this setting is disabled or not configured, encrypted passwords will be decryptable by the Domain Admins group.

This setting must be configured with either a domain-qualified name of a group or user, or a SID in string format. Valid examples include:

contoso\LAPSAdmins

lapsadmins@contoso.com

S-1-5-21-2127521184-1604012920-1887927527-35197

Do not enclose the user\group name or SID in enclosing quotes or parentheses.

The specified user or group must be resolvable by the managed device, otherwise passwords will not be backed up.

NOTE: this setting is ignored when Directory Services Repair Mode (DSRM) account passwords are backed up on a domain controller. In that scenario, this setting always defaults to the Domain Admins group of the domain controller's domain.

See https://go.microsoft.com/fwlink/?linkid=2188435 for more information.

Group Policy path: Computer Configuration > Administrative Templates > System > LAPS > Configure authorized password decryptors

PowerShell equivalent (generated from the template)
# Authorized password decryptor
New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS' -Name 'ADPasswordEncryptionPrincipal' -Value <value> -PropertyType String -Force

Group Policy or Intune is the supported way to set policies. Writing the same values directly works like a local policy and is removed by nothing: delete the values to return to "Not configured".

ADMX: LAPS.admx · policy name LAPS_ADPasswordEncryptionPrincipal

Configure automatic account management

Per machine Windows 11Windows Server 2025Windows Server 2022Windows Server 2019Windows Server 2016

Supported on: At least Microsoft Windows 10 or later

When the GPO stops applying: Windows removes the value (it is under a Policies branch). How cleanup works

Registry keyHKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS
Value nameAutomaticAccountManagementEnabled
Enabled writes1 (REG_DWORD)
Disabled writes0 (REG_DWORD)
OptionValueTypeAllowed values
Specify the target account to manage:AutomaticAccountManagementTarget0 (REG_DWORD) = Manage the built-in admin account
1 (REG_DWORD) = Manage a custom admin account
Automatic account name (or name prefix):AutomaticAccountManagementNameOrPrefixREG_SZText, up to 20 characters
Enable the managed accountAutomaticAccountManagementEnableAccountREG_DWORDChecked: 1; unchecked: 0
Randomize the name of the managed accountAutomaticAccountManagementRandomizeNameREG_DWORDChecked: 1; unchecked: 0
What it does (vendor explanation)

This policy configures automatic account management policy options.

Specify the target account to manage: specifies whether the built-in admin account or a custom account should be managed.

Automatic account name (or name prefix): specifies the name, or name prefix, to use for the managed account.

If this policy setting is configured, Windows LAPS will use it as the account name or name prefix for the target account.

If this policy setting is not configured, Windows LAPS will use "WLapsAdmin" as the account name or name prefix.

Note: this name is treated as a prefix when account name randomization is configured, see comments below.

Enable the managed account: specifies whether the managed account should be enabled or not.

If this policy setting is configured, Windows LAPS will enable the specified managed account.

If this policy setting is not configured, Windows LAPS will disable the specified managed account.

Note: Windows LAPS will regularly maintain and rotate the password of the managed account regardless of whether the account is maintained in an enabled\disabled status.

Randomize the name of the managed account: specifies whether the name of the managed account should be randomized with a random numeric suffix.

If this policy setting is configured, Windows LAPS will add an eight digit random numeric suffix to the managed automatic account name, and will re-randomize the name of the managed account every time the password is rotated.

If this policy setting is not configured, Windows LAPS will use the managed automatic account name as configured.

If the managed automatic account name prefix is configured, Windows LAPS will use up to the first twelve (12) characters of that name as a prefix for the random name. If the managed automatic account name is not configured, Windows LAPS will use "WLapsAdmin" as the name prefix.

Note: the DSRM account on domain controllers cannot be configured for automatic account management. This policy has no effect on domain controllers and will be ignored even if configured for a DC.

See https://go.microsoft.com/fwlink/?linkid=2188435 for more information.

Group Policy path: Computer Configuration > Administrative Templates > System > LAPS > Configure automatic account management

PowerShell equivalent (generated from the template)
New-Item -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS' -Name 'AutomaticAccountManagementEnabled' -Value 1 -PropertyType DWord -Force
# Specify the target account to manage:
New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS' -Name 'AutomaticAccountManagementTarget' -Value 0 -PropertyType DWord -Force
# Automatic account name (or name prefix):
New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS' -Name 'AutomaticAccountManagementNameOrPrefix' -Value <value> -PropertyType String -Force
# Enable the managed account
New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS' -Name 'AutomaticAccountManagementEnableAccount' -Value <value> -PropertyType DWord -Force
# Randomize the name of the managed account
New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS' -Name 'AutomaticAccountManagementRandomizeName' -Value <value> -PropertyType DWord -Force

Group Policy or Intune is the supported way to set policies. Writing the same values directly works like a local policy and is removed by nothing: delete the values to return to "Not configured".

ADMX: LAPS.admx · policy name LAPS_AutomaticAccountManagementPolicy

Configure password backup directory

Per machine Windows 11Windows Server 2025Windows Server 2022Windows Server 2019Windows Server 2016

Supported on: At least Microsoft Windows 10 or later

When the GPO stops applying: Windows removes the value (it is under a Policies branch). How cleanup works

Registry keyHKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS
OptionValueTypeAllowed values
Backup directoryBackupDirectory0 (REG_DWORD) = Disabled
1 (REG_DWORD) = Azure Active Directory
2 (REG_DWORD) = Active Directory
What it does (vendor explanation)

Use this setting to configure which directory the local admin account password is backed up to.

The allowable settings are:

0=Disabled (password will not be backed up)

1=Backup the password to Azure Active Directory

2=Backup the password to Active Directory

If not specified, this setting will default to 0 (Disabled).

If this setting is configured to 1, and the managed device is not joined to Azure Active Directory, the local administrator password will not be managed.

If this setting is configured to 2, and the managed device is not joined to Active Directory, the local administrator password will not be managed.

If this setting is disabled or not configured, the local administrator password is not managed.

See https://go.microsoft.com/fwlink/?linkid=2188435 for more information.

Group Policy path: Computer Configuration > Administrative Templates > System > LAPS > Configure password backup directory

PowerShell equivalent (generated from the template)
# Backup directory
New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS' -Name 'BackupDirectory' -Value 0 -PropertyType DWord -Force

Group Policy or Intune is the supported way to set policies. Writing the same values directly works like a local policy and is removed by nothing: delete the values to return to "Not configured".

ADMX: LAPS.admx · policy name LAPS_BackupDirectory

Configure size of encrypted password history

Per machine Windows 11Windows Server 2025Windows Server 2022Windows Server 2019Windows Server 2016

Supported on: At least Microsoft Windows 10 or later

When the GPO stops applying: Windows removes the value (it is under a Policies branch). How cleanup works

Registry keyHKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS
OptionValueTypeAllowed values
Encrypted password history sizeADEncryptedPasswordHistorySizeREG_DWORDNumber 0 to 12
What it does (vendor explanation)

Use this setting to configure how many previous encrypted passwords will be stored in Active Directory.

Configuring this setting has no effect unless 1) the password has been configured to be backed up to Active Directory and 2) password encryption has been enabled.

If this setting is enabled, the specified number of older passwords will be stored in Active Directory.

If this setting is disabled or not configured, zero older passwords will be stored in Active Directory.

This setting has a minimum allowed value of 0 passwords.

This setting has a maximum allowed value of 12 passwords.

See https://go.microsoft.com/fwlink/?linkid=2188435 for more information.

Group Policy path: Computer Configuration > Administrative Templates > System > LAPS > Configure size of encrypted password history

PowerShell equivalent (generated from the template)
# Encrypted password history size
New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS' -Name 'ADEncryptedPasswordHistorySize' -Value <value> -PropertyType DWord -Force

Group Policy or Intune is the supported way to set policies. Writing the same values directly works like a local policy and is removed by nothing: delete the values to return to "Not configured".

ADMX: LAPS.admx · policy name LAPS_ADEncryptedPasswordHistorySize

Do not allow password expiration time longer than required by policy

Per machine Windows 11Windows Server 2025Windows Server 2022Windows Server 2019Windows Server 2016

Supported on: At least Microsoft Windows 10 or later

When the GPO stops applying: Windows removes the value (it is under a Policies branch). How cleanup works

Registry keyHKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS
Value namePasswordExpirationProtectionEnabled
Enabled writes1 (REG_DWORD)
Disabled writes0 (REG_DWORD)
What it does (vendor explanation)

If this setting is enabled or not configured, planned password expiration longer than the password age dictated by the "Password Settings" policy is NOT allowed. When such expiration is detected, the password is changed immediately and password expiration is set according to policy.

If this setting is disabled, password expiration time may be longer than required by "Password Settings" policy.

See https://go.microsoft.com/fwlink/?linkid=2188435 for more information.

Group Policy path: Computer Configuration > Administrative Templates > System > LAPS > Do not allow password expiration time longer than required by policy

PowerShell equivalent (generated from the template)
New-Item -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS' -Name 'PasswordExpirationProtectionEnabled' -Value 1 -PropertyType DWord -Force

Group Policy or Intune is the supported way to set policies. Writing the same values directly works like a local policy and is removed by nothing: delete the values to return to "Not configured".

ADMX: LAPS.admx · policy name LAPS_DontAllowPwdExpirationBehindPolicy

Enable password backup for DSRM accounts

Per machine Windows 11Windows Server 2025Windows Server 2022Windows Server 2019Windows Server 2016

Supported on: At least Microsoft Windows 10 or later

When the GPO stops applying: Windows removes the value (it is under a Policies branch). How cleanup works

Registry keyHKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS
Value nameADBackupDSRMPassword
Enabled writes1 (REG_DWORD)
Disabled writes0 (REG_DWORD)
What it does (vendor explanation)

When you enable this setting, the DSRM administrator account password will be managed and backed up to Active Directory.

Enabling this setting has no effect unless the managed device is a domain controller and password encryption is also enabled.

If this setting is enabled, the password for the DSRM administrator account on the domain controller will be backed up to Active Directory.

If this setting is disabled or not configured, the password for the DSRM administrator account on the domain controller will not be backed up to Active Directory.

See https://go.microsoft.com/fwlink/?linkid=2188435 for more information.

Group Policy path: Computer Configuration > Administrative Templates > System > LAPS > Enable password backup for DSRM accounts

PowerShell equivalent (generated from the template)
New-Item -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS' -Name 'ADBackupDSRMPassword' -Value 1 -PropertyType DWord -Force

Group Policy or Intune is the supported way to set policies. Writing the same values directly works like a local policy and is removed by nothing: delete the values to return to "Not configured".

ADMX: LAPS.admx · policy name LAPS_ADBackupDSRMPassword

Enable password encryption

Per machine Windows 11Windows Server 2025Windows Server 2022Windows Server 2019Windows Server 2016

Supported on: At least Microsoft Windows 10 or later

When the GPO stops applying: Windows removes the value (it is under a Policies branch). How cleanup works

Registry keyHKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS
Value nameADPasswordEncryptionEnabled
Enabled writes1 (REG_DWORD)
Disabled writes0 (REG_DWORD)
What it does (vendor explanation)

When you enable this setting, the managed password is encrypted before being sent to Active Directory.

Enabling this setting has no effect unless 1) the password has been configured to be backed up to Active Directory and 2) the Active Directory domain functional level is at Windows Server 2016 or above.

If this setting is enabled, and the domain functional level is at or above Windows Server 2016, the managed account password is encrypted.

If this setting is enabled, and the domain functional level is less than Windows Server 2016, the managed account password is not backed up to the directory.

If this setting is disabled, the managed account password is not encrypted.

This setting will default to enabled if not configured.

See https://go.microsoft.com/fwlink/?linkid=2188435 for more information.

Group Policy path: Computer Configuration > Administrative Templates > System > LAPS > Enable password encryption

PowerShell equivalent (generated from the template)
New-Item -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS' -Name 'ADPasswordEncryptionEnabled' -Value 1 -PropertyType DWord -Force

Group Policy or Intune is the supported way to set policies. Writing the same values directly works like a local policy and is removed by nothing: delete the values to return to "Not configured".

ADMX: LAPS.admx · policy name LAPS_ADPasswordEncryptionEnabled

Name of administrator account to manage

Per machine Windows 11Windows Server 2025Windows Server 2022Windows Server 2019Windows Server 2016

Supported on: At least Microsoft Windows 10 or later

When the GPO stops applying: Windows removes the value (it is under a Policies branch). How cleanup works

Registry keyHKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS
OptionValueTypeAllowed values
Administrator account nameAdministratorAccountNameREG_SZText, up to 64 characters
What it does (vendor explanation)

This policy setting specifies a custom Administrator account name to manage the password for.

If this policy setting is enabled, LAPS will manage the password for a local account with this name.

If this policy setting is disabled or not configured, LAPS will manage the password for the well known Administrator account.

DO NOT enable this policy setting to manage the built-in administrator account. The built-in administrator account is auto-detected by well-known SID and does not depend on the account name.

See https://go.microsoft.com/fwlink/?linkid=2188435 for more information.

Group Policy path: Computer Configuration > Administrative Templates > System > LAPS > Name of administrator account to manage

PowerShell equivalent (generated from the template)
# Administrator account name
New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS' -Name 'AdministratorAccountName' -Value <value> -PropertyType String -Force

Group Policy or Intune is the supported way to set policies. Writing the same values directly works like a local policy and is removed by nothing: delete the values to return to "Not configured".

ADMX: LAPS.admx · policy name LAPS_AdminName

Password Settings

Per machine Windows 11Windows Server 2025Windows Server 2022Windows Server 2019Windows Server 2016

Supported on: At least Microsoft Windows 10 or later

When the GPO stops applying: Windows removes the value (it is under a Policies branch). How cleanup works

Registry keyHKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS
OptionValueTypeAllowed values
Password ComplexityPasswordComplexity1 (REG_DWORD) = Large letters
2 (REG_DWORD) = Large letters + small letters
3 (REG_DWORD) = Large letters + small letters + numbers
4 (REG_DWORD) = Large letters + small letters + numbers + specials
5 (REG_DWORD) = Large letters + small letters + numbers + specials (improved readability)
6 (REG_DWORD) = Passphrase (long words)
7 (REG_DWORD) = Passphrase (short words)
8 (REG_DWORD) = Passphrase (short words with unique prefixes)
Password LengthPasswordLengthREG_DWORDNumber 8 to 64
Password Age (Days)PasswordAgeDaysREG_DWORDNumber 1 to 365
Passphrase Length (words)PassphraseLengthREG_DWORDNumber 3 to 10
What it does (vendor explanation)

Configures password parameters

Password complexity: which characters are used when generating a new password Default: Large letters + small letters + numbers + special characters

Password length Minimum: 8 characters Maximum: 64 characters Default: 14 characters

Password age in days Minimum: 1 day (7 days when backup directory is configured to be Azure AD) Maximum: 365 days Default: 30 days

Passphrase length Minimum: 3 words Maximum: 10 words Default: 6 words

See https://go.microsoft.com/fwlink/?linkid=2188435 for more information.

Passphrase list taken from "Deep Dive: EFF's New Wordlists for Random Passphrases" by Electronic Frontier Foundation, and is used under a CC-BY-3.0 Attribution license. See https://go.microsoft.com/fwlink/?linkid=2255471 for more information.

Group Policy path: Computer Configuration > Administrative Templates > System > LAPS > Password Settings

PowerShell equivalent (generated from the template)
# Password Complexity
New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS' -Name 'PasswordComplexity' -Value 1 -PropertyType DWord -Force
# Password Length
New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS' -Name 'PasswordLength' -Value <value> -PropertyType DWord -Force
# Password Age (Days)
New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS' -Name 'PasswordAgeDays' -Value <value> -PropertyType DWord -Force
# Passphrase Length (words)
New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS' -Name 'PassphraseLength' -Value <value> -PropertyType DWord -Force

Group Policy or Intune is the supported way to set policies. Writing the same values directly works like a local policy and is removed by nothing: delete the values to return to "Not configured".

ADMX: LAPS.admx · policy name LAPS_PasswordSettings

Post-authentication actions

Per machine Windows 11Windows Server 2025Windows Server 2022Windows Server 2019Windows Server 2016

Supported on: At least Microsoft Windows 10 or later

When the GPO stops applying: Windows removes the value (it is under a Policies branch). How cleanup works

Registry keyHKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS
OptionValueTypeAllowed values
Grace period (hours):PostAuthenticationResetDelayREG_DWORDNumber 0 to 24
Actions:PostAuthenticationActions0 (REG_DWORD) = Disabled - take no actions
1 (REG_DWORD) = Reset the password
3 (REG_DWORD) = Reset the password and logoff the managed account
5 (REG_DWORD) = Reset the password and reboot the device
11 (REG_DWORD) = Reset the password, logoff the managed account, and terminate any remaining processes
What it does (vendor explanation)

This policy configures post-authentication actions which will be executed after detecting an authentication by the managed account.

Grace period: specifies the amount of time (in hours) to wait after an authentication before executing the specified post-authentication actions.

If this setting is enabled and greater than zero, the specified post-authentication actions will be executed upon expiration of the grace period.

If this setting is disabled or not configured, the specified post-authentication actions will be executed after a default 24 hour grace period.

If this setting is equal to zero, no post-authentication actions will be executed.

Actions: specifies the actions to take upon expiration of the grace period.

Reset password: upon expiration of the grace period, the managed account password is reset.

Reset the password and logoff the managed account: upon expiration of the grace period, the managed account password is reset and any interactive logon sessions using the managed account are logged off.

Reset the password and reboot: upon expiration of the grace period, the managed account password is reset and the managed device is rebooted.

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.

(NOTE: after any interactive logon sessions are terminated there may still be other authenticated sessions in use by the managed account. The only robust way to ensure that the previous password is longer in use is to reboot the device.)

If this setting is disabled or not configured, post-authentication actions will default to "Reset the password and logoff the managed account".

Note: the DSRM account on domain controllers cannot be configured for post-authentication actions. This policy has no effect on domain controllers and will be ignored even if configured for a DC.

See https://go.microsoft.com/fwlink/?linkid=2188435 for more information.

Group Policy path: Computer Configuration > Administrative Templates > System > LAPS > Post-authentication actions

PowerShell equivalent (generated from the template)
# Grace period (hours):
New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS' -Name 'PostAuthenticationResetDelay' -Value <value> -PropertyType DWord -Force
# Actions:
New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS' -Name 'PostAuthenticationActions' -Value 0 -PropertyType DWord -Force

Group Policy or Intune is the supported way to set policies. Writing the same values directly works like a local policy and is removed by nothing: delete the values to return to "Not configured".

ADMX: LAPS.admx · policy name LAPS_PostAuthenticationActions