CentralTechnology / lms-agent

License Monitoring System
1 stars 1 forks source link

Use the LastLogon Active Directory property instead of LastLogonTimestamp #99

Closed tjackadams closed 6 years ago

tjackadams commented 6 years ago

http://msdn.microsoft.com/en-us/library/ms676824(VS.85).aspx Last-Logon-Timestamp Attribute This is the time that the user last logged into the domain. Whenever a user logs on, the value of this attribute is read from the DC. If the value is older [ current_time - msDS-LogonTimeSyncInterval ], the value is updated. The initial update after the raise of the domain functional level is calculated as 14 days minus random percentage of 5 days.

http://msdn.microsoft.com/en-us/library/ms676823(VS.85).aspx Last-Logon Attribute The last time the user logged on. This value is stored as a large integer that represents the number of 100 nanosecond intervals since January 1, 1601 (UTC). A value of zero means that the last logon time is unknown.