How to change the password expiry notice default period in Windows 7

In earlier versions of Windows, the default interval that users were notified of password expiration was 14 days before expiration. In Windows 7 and Windows Server 2008 R2, the default password expiry notice occurs 5 days before the password expiration date.

This is by design. But if you’d like to change this password expiry notice period, you can do so as follows:

Using gpedit.msc, the group policy to alter this default can be found at:

Computer Configuration > Windows Settings > Security Settings > Local Policies > Security Options under Interactive Logon:  Prompt user to change password before expiration.

Using regedit, the registry entry which controls this can be found at:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon

under PasswordExpiryWarning.

Set it to the period you want and Exit.

Source: Technet.

Posted by on , in Category Windows with Tags
Anand Khanse is the Admin of, a 10-year Microsoft MVP Awardee in Windows (2006-16) & a Windows Insider MVP. Please read the entire post & the comments first, create a System Restore Point before making any changes to your system & be careful about any 3rd-party offers while installing freeware.