Hi Robert, Unfortunately after examining this script it works via passing a username to it. I can do this with adminmisc. I need to check ALL users in the domain. Here is a snippet of the code and what it appears to do: $username = $ARGV[0]; Grab the username from ARGV I appreciate the attempt though, Leon
Robert-Jan Mora <[EMAIL PROTECTED]> wrote: Hello Leon, Check the site www.roth.net and look for examples. He has a script which is called lastlogon.pl. Leon wrote: Hi guys (and ladies!), I am trying to write a script to find out the last logon of all users in a domain. I see that with adminmisc I can query a users last logon but this has to be done on every domain controller. That's fine cause I know that I can use netadmin and lanman to get a list of all domain controllers in the domain. My questions is how can I query on all users in the domain? --------------------------------- Do you Yahoo!? Free online calendar with sync to Outlook(TM). --------------------------------- Do you Yahoo!? Free online calendar with sync to Outlook(TM).