RE: Display last logon time for a user...



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.


.



Relevant Pages

  • Re: "Last logon time" & "Last time the account was authenticated b
    ... I do have a script that extracts last logon details ... the updated Last logon time. ... corresponds to the value of the lastLogon attribute. ...
    (microsoft.public.windows.server.active_directory)
  • Forced logoff after logon hours expire
    ... The force logoff when logon time expires option only ... >hours expire nothing happens to log them off. ...
    (microsoft.public.windowsxp.security_admin)
  • Display last logon time for a user...
    ... So when a user logs on some window opens that says: Your last Logon ... 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, ...
    (microsoft.public.windows.server.active_directory)
  • Re: Logon Time Limits
    ... of logon hours? ... > Subject: Re: Logon Time Limits ... >> Microsoft Corporation ...
    (microsoft.public.win2000.security)
  • Re: Slow logon to Windows 2003 Server
    ... - logon time is the same for both domain users and domain admins? ... What is server's preferred DNS server set to ... >>> Application and System logs for any Errors and Warnings. ...
    (microsoft.public.windows.server.general)