>> <mtsint@yahoo.com> wrote in message
>> news:eae6a0da-10f0-460b-adf2-2570d6f1e84b@s38g2000prg.googlegroups.com...
>>
>> If you mean who manages the computer, you can search for computers where the
>> managedBy attribute is the DN of the user. Otherwise, the only owner I know
>> of is the owner of the Security Descriptor of the object. I don't know of
>> any way to search for that. It is not saved in AD. You could retrieve the
>> DN's of all computer objects in the domain, bind to each, then check the
>> owner of the security descriptor. The owner will be in the format <NetBIOS
>> name of domain>\<sAMAccountName>, where sAMAccountName is the pre-Windows
>> 2000 name of the user or group. To find the owner of a specified computer,
>> the VBScript code would be:
>>
>> Set objComputer =
>> GetObject("LDAP://cn=MyComputer,ou=West,dc=MyDomain,dc=com")
>> Set objSecurityDescriptor = objComputer.Get("ntSecurityDescriptor")
>> Wscript.Echo "Owner: " & objSecurityDescriptor.Owner
>>
>> You would need to repeat this for every computer in the domain.
>>
>> --
>> Richard Mueller
>> MVP Directory Services
>> Hilltop Lab -
http://www.rlmueller.net
>> --