alps said:
Thanks Steve for the information.
But, I am not using Active directory in Windows 2000 and when I tried
to use the Attributes BadPwdCount and LoginWorkstation It give me
error that Directory does not have properties in cache.
For the Last Login it shows the Lastlogin Time for the Current
Session.
I am looking for the Last login time of Previous Session.
So, Any more information will be highly appreciated.
Thanks,
Alps
So, I am really curious, outside of an AD environment, what
is the meaning of "Location of worksation of last login" ?
Is this in a Netware or Kerberos realm?
Else, are not all logins essentially local, at workstation
of the account's definition?
Else, it sounds like you would need to implement something
as LastLogin is not a linked list of prior logins, I mean, there
is LastLogin but not NextToLastLogin. So you would need
to devise that datakeeping. The other could be grepped from
the security log if you are recording failed login attempts
(next to last login may seem obtainable from security event
log also, except for some machine/application confurations
it can be deceptively difficult - ex. log into an IIS website
for authoring is recorded as a local login even though it is
all over http and done from other side of the world).
Roger