Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - Temporarily display dialog box with last login info...

Reply
 
Old 11-26-2008   #1 (permalink)
Jake


 
 

Temporarily display dialog box with last login info...

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

My System SpecsSystem Spec
Old 11-26-2008   #2 (permalink)
trading_jacks


 
 

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

On Nov 26, 5:32*am, Jake <jak...@xxxxxx> wrote:
Quote:

> 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.
My System SpecsSystem Spec
Old 11-26-2008   #3 (permalink)
Richard Mueller [MVP]


 
 

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


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

> 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
--


My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Login dialog box control PowerShell
'Login process has failed to create the security options dialog' with Vista- Lockups Vista General
How to display or add Color dialog box in asp.net .NET General
Login process has failed to create the security options dialog Vista security
How to get usercode/password/domain login dialog box ? Vista account administration


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46