Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Determine Maximum Password age?

05 Feb 2014   #1
swiftie

Windows 7 Ultimate x64
 
 
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...


My System SpecsSystem Spec
.
05 Feb 2014   #2
Brink

64-bit Windows 10 Pro
 
 

Hello Steve,

You could type net accounts in a command prompt, and press Enter to see the min/max password age.

(Option Two)
Password Expiration - Change MAX and MIN Password Age

Hope this helps.
My System SpecsSystem Spec
05 Feb 2014   #3
swiftie

Windows 7 Ultimate x64
 
 

Quote   Quote: Originally Posted by Brink View Post
You could type net accounts in a command prompt
I'm clearly losing my grip. I'd found that command, and was using it to verify that the Maximum Password Age was changing.
I'm all set now. Thank you.
My System SpecsSystem Spec
.

05 Feb 2014   #4
Brink

64-bit Windows 10 Pro
 
 

You're most welcome mate.
My System SpecsSystem Spec
Reply

 Determine Maximum Password age?




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
How to determine whether a gpu is good or not
hey guys i was just confused on how to determine good graphics in terms of gb or hddr or cores or anything else ....pls help and should i go 4 amd or nvidia
Graphic Cards
How to determine if USB ports are 1.1 or 2.0
I'm interested in buying a USB flash drive that's compatible with USB 1.1/2.0 and I want to know if it's compatible with the ones on my laptop. I attached a screenshot of the USB controllers listed in Device Manager.
Drivers
Want to use maximum RAM
Please help ... I have installed 6 GB ram but not able to fully use it . I want to use it as much as possible.Do I have change OS , motherbord or processor. ____________________________________________ Operating System: Windows 7 Ultimate 32-bit (6.1, Build 7600) System Manufacturer: INTEL_...
Hardware & Devices
bsod please help determine the cause
i have attached the minidump file hope someone could help me read th dmp file. tnx
BSOD Help and Support
maximum password attempts
I have a laptop with windows 7 premium 64bit. I was wondering if there was a default maximum logon attempts when installed. I have been trying to enter my password (or so I thought) and I cannot log on. Also is it also possible that this is a virus because I don't remember changing my password.
General Discussion
Is there a way to determine what causes a UAC warning?
I'm using xnView to display exr files. With the UAC at the hightest level, I always get a warning with starting the program or double clickng on an OpenEXR file. It would seem like there is some action xnView is taking to trigger this. How can I find out what action is is trying to perform that...
System Security


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 19:40.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App