ad users and computers days since last login

IS ther days since last login information in ad users and computers accurate? Or is it specific to a certain domain controller (or is it checking through all DC's for this data?)
Who is Participating?
Joseph MoodyConnect With a Mentor Blogger and wearer of all hats.Commented:
Depends on your definition of accurate and how timely you want your data to be. For your reading pleasure:
Mike KlineConnect With a Mentor Commented:
lastlogontimestamp is replicated and is accurate between 9-14 days.  More on that here

lastlogon is accurate but it is not replicated so there are tools and scripts that will query lastlogon on each DC and get the most recent date.


pma111Author Commented:
Is lastlogontimestamp what aduc is using when querying "days since last logon"
Get 10% Off Your First Squarespace Website

Ready to showcase your work, publish content or promote your business online? With Squarespace’s award-winning templates and 24/7 customer service, getting started is simple. Head to and use offer code ‘EXPERTS’ to get 10% off your first purchase.

pma111Author Commented:
pma111Author Commented:
are you still monitoring this question, I was unsure whether you are saying ADUC uses the lastlogintimestamp when using the "days since last login" query option,
ssmith81Connect With a Mentor Commented:
There are two value you can check:


The problem with lastlogon is that it is an attribute that does not replicate. So you would need to check the value on all domain controllers and retain the latest value.
Lastlogontimestamp is an attribute that does replicate but is not updated unless the previous login was more than 14 days earlier.
The above link looks good to understand the concern.
pma111Author Commented:
which attribute is ADUC using?
pma111Author Commented:
I still dont know which attribute ADUC is reporting on, can anyone confirm? The question was specific to ADUC which nobody has covered as yet.
So, Have you checked user accounts attribute ?
pma111Author Commented:
I can see the date related fields in the users "attribute editor" tab, but dont see how I can include those fields in an ADUC query?

And back to the quetion, when defining a new query in ADUC, there is a "days since last logon" option, where you can select 30, 90, 120 etc. I want to no which field its basing that on, is it lastlogon, or lastlogontimestamp
michaelalphiConnect With a Mentor Commented:
Hi Pma,
Though the link suggested by smith has very nice explained about.
However, You can access ArcFM utility tools by right-clicking features in the Attribute Editor.
Check this :
For your second concern, yes it is lastlogon.
This article determine better to understand the difference between both "lst logon" and "lastlogontimestamp " :
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.