![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | 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 Specs![]() |
| | #2 (permalink) |
| | 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 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 Specs![]() |
| | #3 (permalink) |
| | 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 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 Specs![]() |
![]() |
| 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 | |||