I have a tool, that displays lastLogon attribute of a user object. lastlogon
attribute isn't replicated among DC's so you basically have to query each DC
in domain to get a proper value.
The tool is written with C# in .NET framework 1.1, so you need .NET
framework 1.1 to run this tool (you can get it from Windows Update).
Download Link (executables only) :
http://ladava.com/faq/uploads/ADInactiveObjects.zip
Download Link (source code):
http://ladava.com/faq/uploads/ADInactiveObjects_src.zip
As for currently active users, there is no easy way to find out who is
logged on to domain. One way would be to see the sessions entries in
Computer Management snapin under Shares. Another way would be by using
cconnect tool which is used for limiting concurrent logons, but it keeps a
track of who is currently logged on. Maybe others have different solution.
--
Regards
Matjaz Ladava, MCSE (NT4 & 2000), MVP
(e-mail address removed)
http://ladava.com