Re: winnt provider and lastlogin using vbscript




"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


.



Relevant Pages

  • Re: Strange results from userls
    ... last successful login on the account. ... all accounts that were subject to unsuccessful ... successful login and last unsuccessful login. ... Agreeing with the results from lastlogin. ...
    (comp.unix.sco.misc)
  • Re: Possible compromise ?
    ... the bottom of lastlogin is the oldest. ... Every login gets logged to wtmp, but wtmp gets rotated by newsyslog. ... into the system with the time and date, tty line and remote host of ... int fd, n; ...
    (FreeBSD-Security)
  • winnt provider and lastlogin using vbscript
    ... login script, using vbscript, I need to be able to tell the user when ... provider and the lastlogin attribute. ... However, during the login ... During the user login process, ...
    (microsoft.public.scripting.vbscript)
  • Re: Help needed to get last login info of currently logged user
    ... I have one requirement in which i have to show last login information ... of the administrator after each successful login into system. ... used LastLogin variable but the date time i have got shows current ...
    (microsoft.public.win2000.general)
  • Re: winnt provider and lastlogin using vbscript
    ... login script, using vbscript, I need to be able to tell the user when ... provider and the lastlogin attribute. ... However, during the login ... During the user login process, ...
    (microsoft.public.scripting.vbscript)

Loading