Open in the explorer

Password Settings

Paramètres du mot de passe

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › System › LAPS FR: Configuration ordinateur › Stratégies › Modèles d'administration › Système › LAPS
Supported on
At least Microsoft Windows 10 or later FR: Au moins Microsoft Windows 10 ou version ultérieure
ADMX file
LAPS.admx
Internal name
LAPS/LAPS_PasswordSettings

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.

French text from Windows 11 26H2

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 10

Disable

# 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 SilentlyContinue

Options (4)

LabelControlRegistry valueREG typeConstraints / details
Password ComplexityComplexité du mot de passeLAPS_PasswordComplexityDrop-down listenumPasswordComplexityREG_DWORD
Default choice (UI): #3
LabelValue
Large lettersREG_DWORD = 1
Large letters + small lettersREG_DWORD = 2
Large letters + small letters + numbersREG_DWORD = 3
Large letters + small letters + numbers + specialsREG_DWORD = 4
Large letters + small letters + numbers + specials (improved readability)REG_DWORD = 5
Passphrase (long words)REG_DWORD = 6
Passphrase (short words)REG_DWORD = 7
Passphrase (short words with unique prefixes)REG_DWORD = 8
Password LengthLongueur du mot de passeLAPS_PasswordLengthNumeric boxdecimalPasswordLengthREG_DWORD
Min: 8 · Max: 64 · Default (UI): 14
Password Age (Days)Âge du mot de passe (jours)LAPS_PasswordAgeDaysNumeric boxdecimalPasswordAgeDaysREG_DWORD
Min: 1 · Max: 365 · Default (UI): 30
Passphrase Length (words)Longueur de phrase secrète (mots)LAPS_PassphraseLengthNumeric boxdecimalPassphraseLengthREG_DWORD
Min: 3 · Max: 10 · Default (UI): 6

Availability

Windows 10

— 22H2— 21H2— 21H1— 20H2— 2004— 1909— 1903— 1809— 1803— 1709— 1703— 1607— 1511— 1507

Windows Server

✓ 2025— 2022— 2016