Logon interativo: pedir que o usuário altere a senha antes que ela expire: valor do Registro PasswordExpiryWarningComputadorHKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon

Categoria
Configurações de segurança › Políticas locais › Opções de segurança
Escopo
Configuração do Computador
Fonte
Windows 11 (versão 26H2 · 26300.9457)

Registro

PasswordExpiryWarning

REG_DWORDComputador
Valor habilitado
Depende do valor da opção
Elemento
Logon interativo: pedir que o usuário altere a senha antes que ela expire
Tipo de valor
REG_DWORD
Aplicar com .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Winlogon]
"PasswordExpiryWarning"=dword:<inserir valor>
CMD
reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "PasswordExpiryWarning" /t REG_DWORD /d "<inserir valor>" /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 '<inserir valor>' -Force | Out-Null