RE: Display last logon time for a user...
- From: Brian Delaney <bdelaney01@xxxxxxxxx>
- Date: Thu, 23 Mar 2006 13:59:01 -0800
why don't you just write a logon script that checks a text file on a network
share and displays the last logon time, then writes another line to the text
file to record this logon.
--
Brian Delaney, MCSE
"frumshey" wrote:
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.
- References:
- Display last logon time for a user...
- From: frumshey
- Display last logon time for a user...
- Prev by Date: RE: Upgrading from Win2000 domains to Win2003 domains: ROLL BACK !
- Next by Date: Re: why did these not change?
- Previous by thread: Display last logon time for a user...
- Next by thread: Re: adprep/ forestprep
- Index(es):
Relevant Pages
|