LDAP Filtering: Is there a way to query my entire domain for all computers but exclude given OUs?

General Discussion about LDAP Administrator

Moderator: Support

LDAP Filtering: Is there a way to query my entire domain for all computers but exclude given OUs?

Postby thepip3r » Wed Jan 12, 2011 12:59 pm

I'm looking for a way to query my entire domain for all computers except the computers that exist in particular OUs. Is this even possible with straight LDAP and filtering? Please advise. I've attempted to use the following filters below but they aren't giving me the information I need. Thanks in advance...

Code: Select all
(&(objectClass=computer) (!(distinguishedName=*,OU=Computers,DC=mydomain,DC=myTLD)))
(&(objectClass=computer) (!distinguishedName=*,OU=Computers,DC=mydomain,DC=myTLD))
(&(objectClass=computer) (!(OU=Computers,DC=mydomain,DC=myTLD)))
(&(objectClass=computer) (!OU=Computers,DC=mydomain,DC=myTLD))
thepip3r
 
Posts: 1
Joined: Wed Jan 12, 2011 12:50 pm

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 6 guests

cron