Display last logon time for a user...
- From: "frumshey" <tom1@xxxxxxxxxxxxx>
- Date: 23 Mar 2006 00:15:28 -0800
Hello!
I have the following problem: I have to display the last logon-time of
a user when the user logs on to his Computer (Active Directory-Logon).
So when a user logs on some window opens that says: Your last Logon
time was...
Sounds easy, but isn't... first thing that comes in mind is: Query the
'lastLogon'-Attribute in AD. I know it's not replicated between DCs but
that isn't the problem (yes, it's slow, but i can query all of them..)
- the bigger problem is: When a user logs on the last logon time is
NOW. The attribute is overwritten in the moment the user logs on...
So, another idea was born: We write a Service which runs on each DC,
parses some events from the Security-Eventlog and checks the
logon-events, writes the time of the last logon to a File which is
stored in sysvol, my logon-Script reads this file and displays the
information to the user.
Sounds good, but i didn't find any event that occurs only when a user
is logging on - all logon-events occur again when the user is e.g.
connecting a network-share, accessing a network-share after a while,
when the kerberos-ticket is renewed or when the user is logging off...
Does anybody have an idea how this problem can be solved?! Or is it
just impossible?
Thank you.
Tom.
.
- Follow-Ups:
- RE: Display last logon time for a user...
- From: Brian Delaney
- RE: Display last logon time for a user...
- Prev by Date: Re: Password Complexity
- Next by Date: Re: adprep/ forestprep
- Previous by thread: Re: Automating Local Computer Admin Rights
- Next by thread: RE: Display last logon time for a user...
- Index(es):
Relevant Pages
|