Domain user password expiry date check
Primary domain controller = Windows NT4
How do I get a report on all my user account in my domain controller as when they have changed their password since the 1st day their user account was created?
Windows Forum
Primary domain controller = Windows NT4
How do I get a report on all my user account in my domain controller as when they have changed their password since the 1st day their user account was created?
by awfernald
Do it programatically....
If you use Kix32 or VB or some type of scripting language, you can do this as follows (from an NT4 domain controller):
1. execute "NET USERS" outputting the results to a file.
2. readline in from the file parsing each one out to develop a list of all the user accounts on the machine (since it's domain controller, it will be the domain account listing). Output the results of this to a new file.
3. read this file in, one line at a time, to get the user names, then execute "NET USERS ", outputting this to a tempfile.
4. Open this tempfile, then scan it for the line that starts "Password Last Set", and read in the rest of that line.
5. Output the useraccount name and the results from step 4 to a userlist.txt file (put a delimiter in there)
6. Go back to step 2 until you reach EOF.
7. At this point in time, your userlist.txt should be importable into excel or whatever you wish.
This discussion is closed to new replies.
Sort by Trending