adfind syntax non expiring last login

Is there anyway using the adfind utility to query all users in a domain, to return, domain name, account status (i.e. open/disabled), lastlogon stamp, lastlogontimestamp (the replicated field), password expires (yes/no).
Please provide syntax if you are familiar with the tool.
Who is Participating?
Mike KlineConnect With a Mentor Commented:
See this question I helped with

I am leaving for work but I'll be back on in about 90 minutes for followups.

You can also use powershell if you want help with that method.


pma111Author Commented:
That solution didnt seem to cover the exact fields I was after...
Sarang TinguriaConnect With a Mentor Sr EngineerCommented:
Chris has a great GUI tool for all theese stuffs why not try it..??

Cjwdev | AD Info - Active Directory Reporting
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Pankaj_401Connect With a Mentor Commented:
Hi Pma,
To know about account status(open/disabled), last logon status and password expires status, you can try this software which seems fit exactly in your environment.
pma111Author Commented:
adfind is free though, not interested in a commcercial product when there are free alternatives.

are you still monitoring this question Mike?
pma111Author Commented:
does adinfo include an accurate last login date (as one of the last login fields is not replicated between DC's).
AD Info will query each DC in the domain to get accurate values for any non-replicated attributes (Last Logon etc).
pma111Author Commented:
aninfo (the version where you can run queries isnt free), hence I was ideally after some assistance on adfind syntax...
pma111Author Commented:
are you still monitoring this Mike?
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.