Re: Temporarily display dialog box with last login info...




"trading_jacks" <MARKFERGASON@xxxxxxxxx> wrote in message
news:bbc43c67-40d9-4679-8b0a-a94d467a0bf3@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On Nov 26, 5:32 am, Jake <jak...@xxxxxxxxx> wrote:
Hi,

I want to display a dialog displaying:

"Your last logon to MyDomain's domain controller:
Tuesday June 23rd 11:34 AM"

I have enabled auditing on logon events, would it be possible to extract
the above data from the domain controller audit file, or does it exist
more elegant ways to retrieve the above information...?

regards

jake

never used auditing on logon events for scripting... you can write a
script that would read and write to a database each time a user logs
in. to keep it trimmed to only the last login stored, you could have
only two columns:

username, login_time

read that data at the start of the script, display the message and
then write the new login time to the db.

Also, aren't those events stored in the DC's security event log? Is
it also written to a file? Either way, it would seem easier to write
a login script to use a db to track logins.

Another option might be to use ADSI? It might have a last logon
entry, but that also might be reset when the user logs in to the
current session. Not sure about this option.
------
The lastLogon attribute is indeed overwritten with the new value before the
logon script runs.

--
Richard Mueller
MVP Directory Services
Hilltop Lab - http://www.rlmueller.net
--


.



Relevant Pages

  • Re: .Popup method in logon script in Vista
    ... Let the popup come up as per settings aka 'backward to win32'. ... time-out of 0 seconds will display. ... logon script time-out), and does not display on Vista. ...
    (microsoft.public.scripting.wsh)
  • Re: Temporarily display dialog box with last login info...
    ... I want to display a dialog displaying: ... I have enabled auditing on logon events, would it be possible to extract ... script that would read and write to a database each time a user logs ... then write the new login time to the db. ...
    (microsoft.public.scripting.vbscript)
  • Re: Tracking logons
    ... Audit Logon Events and Audit Account Logon Events are both set to ... I have an example VBScript logon script that logs information to a shared ... The log file can be ...
    (microsoft.public.windows.server.active_directory)
  • Re: Users last logon info from logon script
    ... I put this line in the users logon script: ... If I run the script manually, it shows the last logon time. ... I guess it is because Windows update the lastlogon attribute once a user ... Then, for each Domain Controller, ADO is used to search the ...
    (microsoft.public.security)
  • Re: slow logon
    ... in the logon time have been reduced so far. ... update the time for the clients that talk to the dc as the logon server. ... start up script in AD to apply updates to the clients machines which is ...
    (microsoft.public.windows.server.active_directory)

Loading