対話型ログオン: パスワードが無効になる前にユーザーに変更を促す のレジストリ値 PasswordExpiryWarningコンピューターHKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon

カテゴリ
セキュリティの設定 › ローカル ポリシー › セキュリティ オプション
適用対象
コンピューターの構成
出典
Windows 11 (バージョン 26H2 · 26300.9457)

レジストリ

PasswordExpiryWarning

REG_DWORDコンピューター
有効時の値
オプションの値に依存
要素
対話型ログオン: パスワードが無効になる前にユーザーに変更を促す
値の種類
REG_DWORD
.reg · CMD · PowerShell で適用する
.reg
Windows Registry Editor Version 5.00

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