New
#1
Determine Maximum Password age?
Is there a command I can issue which will display the current system Maximum Password Age?
I'm trying to write a script to display how long I have before my password expires.
I can use nltest.exe to display when my password was last changed, so it's easy to calculate the password age. But without knowing the system maximum age, I cannot calculate how long my password has to live. I have to hard-code the maximum age in my script.
This was working fine, until I decided to change the system maximum password age. I forgot to update my script, and it kept telling me that I had 20 days left...
As a bypass, I changed my script from saying "will expire in 20 days" to "will expire in 20 of 93 days" (max age =93) but it would be nice to be able to automate the extraction of the Maximum Password Age...