There is no mapping in AD for the users to the machines they use unless you specify restricted logons to specific machines and that is a manual process.
 
The query below will tell you the computer name of all machines running Service Pack 1. It could W2K machines, XP machines, K3 with Beta SP1 machines, etc....
 
One way of doing this is to set up a logon script that updates a database somewhere or send an email to an alias monitored by a script that then inserts the info into a database. Basically you send the logon time/date, machine name, user name.
 
  joe


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Douglas M. Long
Sent: Monday, December 13, 2004 10:39 AM
To: [EMAIL PROTECTED]
Subject: [ActiveDir] adfind most frequent user

Is there some way with adfind to find the most frequently logged on user to a client machine? What I am trying to do is map machine names to their owner. The only way I would know how to do this is to find the user that most frequently logs on to each machine. Just knowing the last user to logon or logoff would even get me most of the way there, but the only attribute I see for such a thing is lastLogon and lastLogonTimestamp. Here is what I am using right now:

 

>Adfind -b dc=domain,dc=com -f "operatingSystemServicePack=Service Pack 1" sAMAccountName

 

Now if I could only find which user has that machine (I know, I know, I should have documented that).

Reply via email to