Re: Temporarily display dialog box with last login info...
- From: "Richard Mueller [MVP]" <rlmueller-nospam@xxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 26 Nov 2008 07:45:56 -0600
"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
--
.
- References:
- Temporarily display dialog box with last login info...
- From: Jake
- Re: Temporarily display dialog box with last login info...
- From: trading_jacks
- Temporarily display dialog box with last login info...
- Prev by Date: Re: Open a UNC path with different credentials
- Next by Date: Re: Open a UNC path with different credentials
- Previous by thread: Re: Temporarily display dialog box with last login info...
- Index(es):
Relevant Pages
|
Loading