Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Server > Active Directory > Re: Re: search by owner

Reply
Thread Tools Display Modes

Re: Re: search by owner

 
 
john snell
Guest
Posts: n/a

 
      10-21-2011
Actually, the owner is the person that created the account in AD which can be different from the person that joins the account.

> On Friday, March 13, 2009 3:41 PM Lanwench [MVP - Exchange] wrote:


> Hmmm. I did not think computer accounts *had* an owner.



>> On Friday, March 13, 2009 4:03 PM Richard Mueller [MVP] wrote:


>> <> wrote in message
>> news:eae6a0da-10f0-460b-adf2-...
>>
>> 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
>> --



>>> On Saturday, March 14, 2009 9:24 AM mtsin wrote:


>>> How to search AD computers accounts by a particular owner
>>> I want to see how many computer are own by jackwoooo



>>>> On Saturday, March 14, 2009 9:24 AM mtsin wrote:


>>>> When I say owner, I mean the account which was used to join to the
>>>> domain. Isn't that account the owner of the computer object




 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: HOW TO SEARCH FOR FILES ON WINDOWS 2008 Suresh Sistla Windows Server 0 03-08-2011 07:36 AM
Re: DC with "Windows cannot obtain the domain controller name for your computer network" Danny Sanders Active Directory 0 01-21-2010 02:26 PM
File search problem Peter Windows Vista File Management 9 05-20-2008 05:05 PM
Set default search beheviour Dave21 Windows Vista File Management 1 09-25-2007 08:03 PM
Windows Explorer Search Function Gerry Cornell Windows Vista File Management 7 03-29-2007 06:12 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59