Re: winnt provider and lastlogin using vbscript




<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. The only thing I can think if is to save the date/time for future use.
Since this is a local account, you could save the information in a text
somewhere on the computer everyone has access to, perhaps in a file named
after the username.

--
Richard Mueller
MVP Directory Services
Hilltop Lab - http://www.rlmueller.net
--


.



Relevant Pages

  • 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: 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)
  • Re: winnt provider and lastlogin using vbscript
    ... provider and the lastlogin attribute. ... However, during the login ... During the user login process, ... logon event, ...
    (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)

Loading