Configure size of encrypted password history
Configurer la taille de l’historique des mots de passe chiffrés
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.
Utilisez ce paramètre pour configurer le nombre de mots de passe chiffrés précédents stockés dans Active Directory.
La configuration de ce paramètre n’a aucun effet sauf si 1) le mot de passe a été configuré pour être sauvegardé sur Active Directory et 2) le chiffrement de mot de passe a été activé.
Si ce paramètre est activé, le nombre spécifié de mots de passe plus anciens sera stocké dans Active Directory.
Si ce paramètre est désactivé ou n’est pas configuré, aucun mot de passe plus ancien ne sera stocké dans Active Directory.
Ce paramètre a une valeur minimale autorisée de zéro mot de passe.
Ce paramètre a une valeur maximale autorisée de 12 mots de passe.
Consultez https://go.microsoft.com/fwlink/?linkid=2188435 pour plus d’informations..
Use cases
Keeps from 0 to 12 previous encrypted passwords in AD (0 by default). The history helps recover a machine restored from a backup or snapshot whose local password predates the current one.
It is ignored unless password encryption is enabled.
Microsoft source: Configure policy settings for Windows LAPS
Registry
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS- Value name
- not defined in the ADMX
Enable / disable values: not defined in the ADMX (see the options below).
PowerShell
PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.
Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.
Enable
# Enable: LAPS/LAPS_ADEncryptedPasswordHistorySize
$k = 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Encrypted password history size
Set-ItemProperty -Path $k -Name 'ADEncryptedPasswordHistorySize' -Value 0 -Type DWord # between 0 and 12Disable
# Disable: LAPS/LAPS_ADEncryptedPasswordHistorySize
# No value is written in the "Disabled" state (nothing defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": LAPS/LAPS_ADEncryptedPasswordHistorySize
$k = 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS'
Remove-ItemProperty -Path $k -Name 'ADEncryptedPasswordHistorySize' -ErrorAction SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| Encrypted password history sizeTaille de l’historique du mot de passe chiffréLAPS_ADEncryptedPasswordHistorySize_INT | Numeric boxdecimal | ADEncryptedPasswordHistorySize | REG_DWORD | Min: 0 · Max: 12 · Default (UI): 0 |