Security Basics mailing list archives

Re: Question about Active Directory and last time user has logged on


From: "Ali, Saqib" <docbook.xml () gmail com>
Date: Tue, 28 Aug 2007 15:55:41 -0700

On 8/28/07, Mary Hendrix <maryhendrix () gmail com> wrote:
Is there a way to find out the last time a user has logged into a domain?

If you have AD, then the following LDAP attribute holds the last logon time:

{lastLogon}

You can extract that using a simple vbscript.

Note: The returned value will be the NT System time. To convert to
regular time use the following:
w32tm /ntte {returned int}

saqib
http://security-basics.blogspot.com/


Current thread: