TechTalkz.com Logo

Go Back   TechTalkz.com Technology & Computer Troubleshooting Forums > Tech Support Archives > Microsoft > Windows Server 2003

Notices

Re: Last login time for a user

Windows Server 2003


Reply
 
Thread Tools Display Modes
Old 02-07-2008, 11:17 AM   #1
Brandon McCombs
Guest
 
Posts: n/a
Re: Last login time for a user

Jorge Silva wrote:
> Actually there's a sublink that is relateds with that attribute, see if
> helps:
>
>


Well I don't know why but the Perl version of the script didn't work but
I was able to get a VBscript version of the script working fine. The
problem I ran into is that the lastLogonTimestamp isn't reliable even
after changing its replication interval to the lowest possible value (1
day). The lastLogon attribute is more accurate but it is updated prior
to my logon script running which means that when my script runs it
always gives back the logon time of current logon which is useless.

So I had to end up making my own attribute which turned out better
because I have to also track the location (hostname) of the last
successful logon. I can control when that attribute is read/written
instead of ADS doing it for me.

This is entirely in VBscript right now but I prefer Perl since another
script to track concurrent logons that is in use on our systems is in
Perl. I can't figure out why MS isn't innovative enough to provide some
of this stuff when other directories and operating systems provide it.
  Reply With Quote
Reply

Thread Tools
Display Modes



< Windows Help - MS Office Help - Hardware Support >


New To Site? Need Help?

All times are GMT +5.5. The time now is 02:33 AM.


vBulletin, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO
Copyright © 2005-2009, TechTalkz.com. All Rights Reserved - Privacy Policy
Valid XHTML 1.0 Transitional