I just ran this and it does what you are looking for:
Chris Bodnar, MCSE Sr. Systems Engineer Distributed Systems Service Delivery - Intel Services Guardian Life Insurance Company of America Email: christopher_bod...@glic.com Phone: 610-807-6459 Fax: 610-807-6003 _____ From: john.hornbuc...@taylor.k12.fl.us [mailto:john.hornbuc...@taylor.k12.fl.us] Sent: Wednesday, March 25, 2009 4:14 PM To: NT System Admin Issues Subject: RE: ADUC Query Question 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.11355 6.1.4.804:=3))(&(objectCategory=person)(!objectSid=*))(&(objectCategory=gr oup)(groupType:1.2.840.113556.1.4.804:=14)))(objectCategory=user)(objectCl ass=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:ericwoodf...@gmail.com] 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 <john.hornbuc...@taylor.k12.fl.us> 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 <http://www.taylor.k12.fl.us/> ~ Finally, powerful endpoint security that ISN'T a resource hog! ~ ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~ ----------------------------------------- This message, and any attachments to it, may contain information that is privileged, confidential, and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, you are notified that any use, dissemination, distribution, copying, or communication of this message is strictly prohibited. If you have received this message in error, please notify the sender immediately by return e-mail and delete the message and any attachments. Thank you. ~ Finally, powerful endpoint security that ISN'T a resource hog! ~ ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~