
Open the Local Security Policy (search from the Start Menu). Navigate to,
Security Settings > Account Policies > Password Policy

Double click on Maximum password age to adjust the maximum days of the password expiry. You can set passwords to expire in between 1 and 999. Put value as 0 if you want to set as never expire. The default value set is 42.

Double click on Minimum password age to adjust the minimum days of password expiry. The value can be set in between 1 and 998 days. It will allow the changes immediately if you set the value to 0. The minimum password age value need to be less than the Maximum password age (unless, if you set the Maximum password age to 0 – then you can set the Minimum password age value in any value of 0 – 998.


