I need to write code (C# or Java) to retrieve user logon/logoff information from ADAM, but i'm not sure where to start or if it's even possible.

link|improve this question
feedback

2 Answers

up vote 3 down vote accepted

There is a lastLogonTimeStamp attribute in AD that will give you this information. However to have this attribute your domain must be at least Windows Server 2003 Domain Functional Level. Just because you have 2003 DC's, don't assume that your DFL has been raised to that level if you are having problems getting this attribute.

Sam

link|improve this answer
feedback

I think there are is a attribute called lastLogon, but i dont remember ever seeing one for logoff time

link|improve this answer
You may prefer to look at lastLogonTimeStamp as lastLogon is not replicated. – jscott Jun 3 '11 at 9:56
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.