Re: ADSI Query to filter out machine accounts in the domain
From: Willy Denoyette [MVP] (willy.denoyette_at_pandora.be)
Date: 03/08/04
- Next message: Brian Strelioff: "Making events nonserializable"
- Previous message: Tom Porterfield: "Re: RequiredField Validator"
- In reply to: Marc Scheuner [MVP ADSI]: "Re: ADSI Query to filter out machine accounts in the domain"
- Next in thread: Prasad Karunakaran: "Re: ADSI Query to filter out machine accounts in the domain"
- Reply: Prasad Karunakaran: "Re: ADSI Query to filter out machine accounts in the domain"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 8 Mar 2004 20:29:12 +0100
Marc,
No the objectCategories are:
builtinDomain, computer, contact, container, domain, domainDNS,
lostAndFound,
group,organizationalUnit, organizationalPerson, person, secret, user and a
few more which I can't remember for now), but "domain controllers" and
"domain computers" are account groups ; respectively - 'security enabled
universal group' and 'security enabled account group' types (see, there is
no difference between computer accounts and user accounts in AD).
So, when using group as filter all group types will be returned in the
collection, to exclude some group types you will have to use some constraint
based on a group property like cn.
When using "(&(objectCategory=group)(!cn=domain computers)(!cn=domain
controllers))"; as filter the SearchResultCollection will contain all groups
except the groups cn=domain computers and cn=domain controller.
Willy.
"Marc Scheuner [MVP ADSI]" <m.scheuner@inova.SPAMBEGONE.ch> wrote in message
news:j13p409l6q26vsv2fuogfgt0f7hk811qrj@4ax.com...
> >Not really, "DomainCoputers" and "Domain controllers" are no
>>objectCategories.
>
> Okay - there is one for server or domain controllers, no?
>
> Then - what good does the !cn=domain controllers filter really do?
> Will this exclude all the subobjects in that container?
>
> Marc
> ================================================================
> Marc Scheuner May The Source Be With You!
> Bern, Switzerland m.scheuner(at)inova.ch
- Next message: Brian Strelioff: "Making events nonserializable"
- Previous message: Tom Porterfield: "Re: RequiredField Validator"
- In reply to: Marc Scheuner [MVP ADSI]: "Re: ADSI Query to filter out machine accounts in the domain"
- Next in thread: Prasad Karunakaran: "Re: ADSI Query to filter out machine accounts in the domain"
- Reply: Prasad Karunakaran: "Re: ADSI Query to filter out machine accounts in the domain"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|