Let's say I have a group policy that sets the maximum password age at 90 days. Some user doesn't change their password for 91 days, so their password should be expired.
If I then remove that group policy to make the max password age not defined, will that account still be expired? In other words, when that user logs in again, should they still be required to change their password?
I would think not, but I seem to be observing the exact opposite behavior on our domain controller; that is, after I change the group policy setting and login with an account whose password had expired, I still get prompts about it.
Does anyone know for sure either way, or is there something else I'm missing?
Once a password is expired that is it. They will be prompted to change it. Even if you change the group policy. The reason is because the account has a flag get set that says "change password on next login"
You could go into the User & Groups Manager and set the user back to not expired password.
This stumped me and was hard to google for, so I'm posting the answer I found on this question because it was one of the only results.
My issue was very similar to the OP, whereby I was trying to disable password expiry completely, and attempted to do so by setting
Default Domain Policy > Computer Configuration > Policies > Windows Settings > Security Settings > Account Policy > Password Policy > Max Password Age
toUndefined
in the Default Domain Policy. Over the next couple of months, user passwords were still expiring, and I double checked group policy results andrsop.msc
numerous times to try track it down.In the end I found that to disable password expiry, you need to set
Max Password Policy
toEnabled
with value0 days
(instead ofUndefined
) (as per the documentation on the Explain tab - derp).What helped me reach this conclusion was checking the expiry of all account passwords using this query:
the results looked like this
After updating the policy to
Enabled - 0 days
, I ran the query again, and this time results showed no expiry on any account.