Reputation: 60938
In system.directoryservices.accountmanagement
the property LastLogon
is the LastLogOnTimeStampValue
replicated on all Domain's Domain Controllers or is the more recent values of LastLogon's property derived from the comparison of all available Domain's DC?
I can't find in MSDN where this property is taked.
Upvotes: 5
Views: 1831
Reputation: 13070
The LastLogon
property of the AuthenticablePrincipal
class reads the lastLogonTimestamp
property from the Active Directory object. You can verify this by following the steps listed below:
lastLogon
and lastLogonTimestamp
attributes.On my test system (.Net Framework 4.0, Active Directory 2008 R2) the LastLogon
property of the AuthenticablePrincipal
class maps to the lastLogonTimestamp
property of the releated Active Directory object.
Hope, this helps.
Upvotes: 0
Reputation: 3360
The answer to your question is: it's not that simple.
If you need better accuracy than +-14 days, you're going to have your work cut out for you.
Upvotes: 3