วิธีที่ 1 . Run gpedit.msc
Computer Configuration > Windows Settings > Security Settings > Local Policies > Security Options.

วิธีที่ 2 Run regedit and navigate to the following key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
Set the value of PasswordExpiryWarning to the period you want and Exit.
