Re: winnt provider and lastlogin using vbscript
- From: "Al Dunbar" <AlanDrub@xxxxxxxxxxxxxxxxxxx>
- Date: Wed, 30 Jul 2008 20:29:29 -0600
"Richard Mueller [MVP]" <rlmueller-nospam@xxxxxxxxxxxxxxxxxxxx> wrote in
message news:%2321OkDm8IHA.4924@xxxxxxxxxxxxxxxxxxxxxxx
<awrightus@xxxxxxxxxxx> wrote in message
news:1458b1bf-feb4-4074-a313-9ab47eb14458@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I have a Windows 2003 workgroup server. No AD, domain, etc. In my
login script, using vbscript, I need to be able to tell the user when
they last logged on. I thought I had this licked by using the winnt
provider and the lastlogin attribute. However, during the login
process, it appears as if lastlogin has already been updated to the
current time, completely having overwritten what I was trying to
capture. During the user login process, is there any other attribute
that I can grab that will tell me when the user last logged in?
Thanks.
I noticed the same thing some time ago. There is no other attribute you
can use.
I'm surprised to find that anyone is surprised by this behaviour. If you are
logged on now, then when you started this session, that was very likely your
last (more recent) logon. If lastlogon is not updated at the end of each
logon event, when should it be updated?
/Al
.
- References:
- winnt provider and lastlogin using vbscript
- From: awrightus@xxxxxxxxxxx
- Re: winnt provider and lastlogin using vbscript
- From: Richard Mueller [MVP]
- winnt provider and lastlogin using vbscript
- Prev by Date: Re: add value
- Next by Date: Re: Why is my machine blocking this email script
- Previous by thread: Re: winnt provider and lastlogin using vbscript
- Next by thread: update data in MDE project from scripting
- Index(es):
Relevant Pages
|
Loading