Loans | Loan | Insurance | Mortgage insurance | Loans
Last Login Time [Archive] - ZGeek

PDA

View Full Version : Last Login Time


c:\>_
11-05-2004, 02:43 PM
'ello all.

Using Windows 2000 server / Active Directory do you know of a quick way to check a users last login time.

I'm looking at the users credentials through the MMC but to no avail.

You would think that this would be of prime importance when creating a schema interrogation utility but no. How I long for NDS.


Cheers in advance

MisterBishi
13-05-2004, 05:38 PM
You can get it by using the command 'net user <username>' but that only polls one DC, so you have to do it against each DC that the account could have auth'd against if you want an accurate result.

If I need to do it I usually just use rcmd (remote command) from the NT reskit and chuck it into a batch file.

Note, though, that I work with NT4, so there may be a more elegant solution with 2k & AD, but at least this works and isn't too much trouble (if you only need to do it once).