Password Settings
Paramètres du mot de passe
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.
Configure les paramètres de mot de passe
Complexité du mot de passe : caractères utilisés lors de la génération d’un nouveau mot de passe
Valeur par défaut : grandes lettres + lettres minuscules + chiffres + caractères spéciaux
Longueur du mot de passe
Minimum : 8 caractères
Maximum : 64 caractères
Valeur par défaut : 14 caractères
Âge du mot de passe en jours
Minimum : 1 jour (7 jours lorsque le répertoire de sauvegarde est configuré pour être Azure AD)
Maximum : 365 jours
Valeur par défaut : 30 jours
Longueur de la phrase secrète
Minimum : 3 mots
Maximum : 10 mots
Valeur par défaut : 6 mots
Pour plus d’informations, consultez https://go.microsoft.com/fwlink/?linkid=2188435.
Liste de phrases secrètes extraite de « Deep Dive : New Wordlists for Random Passphrases » par Electronic Border Foundation et utilisée sous une licence d’attribution CC-BY-3.0. Pour plus d’informations, consultez https://go.microsoft.com/fwlink/?linkid=2255471.
Use cases
Sets the complexity, length (8 to 64, 14 by default) and age (1 to 365 days, 30 by default) of the managed password. Microsoft recommends complexity 4 or higher; values 5 to 8 (improved readability, passphrases) require Windows 11 24H2 or Server 2025.
Pitfall: a length or complexity that conflicts with the local password policy makes generation fail (event 10027), and changing the age does not trigger an immediate rotation.
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_PasswordSettings
$k = 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Password Complexity
# Possible options:
# Large letters = 1
# Large letters + small letters = 2
# Large letters + small letters + numbers = 3
# Large letters + small letters + numbers + specials = 4
# Large letters + small letters + numbers + specials (improved readability) = 5
# Passphrase (long words) = 6
# Passphrase (short words) = 7
# Passphrase (short words with unique prefixes) = 8
Set-ItemProperty -Path $k -Name 'PasswordComplexity' -Value 4 -Type DWord
# Password Length
Set-ItemProperty -Path $k -Name 'PasswordLength' -Value 14 -Type DWord # between 8 and 64
# Password Age (Days)
Set-ItemProperty -Path $k -Name 'PasswordAgeDays' -Value 30 -Type DWord # between 1 and 365
# Passphrase Length (words)
Set-ItemProperty -Path $k -Name 'PassphraseLength' -Value 6 -Type DWord # between 3 and 10Disable
# Disable: LAPS/LAPS_PasswordSettings
# No value is written in the "Disabled" state (nothing defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": LAPS/LAPS_PasswordSettings
$k = 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS'
Remove-ItemProperty -Path $k -Name 'PasswordComplexity' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'PasswordLength' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'PasswordAgeDays' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'PassphraseLength' -ErrorAction SilentlyContinueOptions (4)
| Label | Control | Registry value | REG type | Constraints / details | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Password ComplexityComplexité du mot de passeLAPS_PasswordComplexity | Drop-down listenum | PasswordComplexity | REG_DWORD | Default choice (UI): #3
| ||||||||||||||||||
| Password LengthLongueur du mot de passeLAPS_PasswordLength | Numeric boxdecimal | PasswordLength | REG_DWORD | Min: 8 · Max: 64 · Default (UI): 14 | ||||||||||||||||||
| Password Age (Days)Âge du mot de passe (jours)LAPS_PasswordAgeDays | Numeric boxdecimal | PasswordAgeDays | REG_DWORD | Min: 1 · Max: 365 · Default (UI): 30 | ||||||||||||||||||
| Passphrase Length (words)Longueur de phrase secrète (mots)LAPS_PassphraseLength | Numeric boxdecimal | PassphraseLength | REG_DWORD | Min: 3 · Max: 10 · Default (UI): 6 |