You can't use the group name, but need to put the Distinguished name of the
group into the query. The blog post simply says were to find and/or how to
build it.

On Wed, Mar 25, 2009 at 1:13 PM, John Hornbuckle <
[email protected]> wrote:

>  That one doesn’t quite apply to what I’m looking for, unless I’m just
> misreading.
>
>
>
> Here’s what my query is looking like so far:
>
>
>
>
> (&(&(|(&(objectCategory=person)(objectSid=*)(!samAccountType:1.2.840.113556.1.4.804:=3))(&(objectCategory=person)(!objectSid=*))(&(objectCategory=group)(groupType:1.2.840.113556.1.4.804:=14)))(objectCategory=user)(objectClass=user)(!memberOf=Some\Group)))
>
>
>
> Where “Some Group” is the group I’m looking at. But this query isn’t
> working; it’s giving me a list of all users rather than just the users who
> are not members of “Some Group.”
>
>
>
>
>
>
>
>
>
> *From:* Eric Woodford [mailto:[email protected]]
> *Sent:* Wednesday, March 25, 2009 3:18 PM
> *To:* NT System Admin Issues
> *Subject:* Re: ADUC Query Question
>
>
>
> Check out my blog post on a similar topic. Thanks to Google's Cached Pages,
> you can read the post even though the server is being rebuilt.
>
>
>
>  http://tinyurl.com/cwj4zy
>
>
>
>
>
> On Wed, Mar 25, 2009 at 9:22 AM, John Hornbuckle <
> [email protected]> wrote:
>
> Being a small shop, I don't use ADUC queries very often--so forgive my
> ignorance!
>
> I need a query of all users who are NOT in a certain group. For the life of
> me, I can't quite figure out how to get that one. Can someone point me in
> the right direction?
>
>
>
> John Hornbuckle
> MIS Department
> Taylor County School District
> 318 North Clark Street
> Perry, FL 32347
>
> www.taylor.k12.fl.us
>
>
>
>
> ~ Finally, powerful endpoint security that ISN'T a resource hog! ~
> ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~
>
>
>
>
>
>
>
>
>
>
>
>
>

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

Reply via email to