Ouverture de session interactive : prévenir l’utilisateur qu’il doit changer son mot de passe avant qu’il n’expire : valeur de Registre PasswordExpiryWarningOrdinateurHKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon

Catégorie
Paramètres de sécurité › Stratégies locales › Options de sécurité
Étendue
Configuration ordinateur
Source
Windows 11 (version 26H2 · 26300.9457)

Registre

PasswordExpiryWarning

REG_DWORDOrdinateur
Valeur si activée
Dépend de la valeur de l'option
Élément
Ouverture de session interactive : prévenir l’utilisateur qu’il doit changer son mot de passe avant qu’il n’expire
Type de valeur
REG_DWORD
Appliquer avec .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Winlogon]
"PasswordExpiryWarning"=dword:<saisir la valeur>
CMD
reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "PasswordExpiryWarning" /t REG_DWORD /d "<saisir la valeur>" /f
PowerShell
New-Item -Path 'HKLM:\Software\Microsoft\Windows NT\CurrentVersion\Winlogon' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows NT\CurrentVersion\Winlogon' -Name 'PasswordExpiryWarning' -PropertyType DWord -Value '<saisir la valeur>' -Force | Out-Null