Put it in a batch file and use dsquery or adfind instead of ADUC. Regards,
Michael B. Smith Consultant and Exchange MVP http://TheEssentialExchange.com -----Original Message----- From: Robert Smith [mailto:[email protected]] Sent: Thursday, February 25, 2010 6:44 PM To: NT System Admin Issues Subject: LDAP Query across Multiple OU's Hello, Is there any way to do an LDAP query for users across multiple OU's via Saved Queries in ADUC? We are able to perform the custom search below with the following LDAP queries, but this is only for one OU at a time, we would like to be able to select a few at a time out of almost a hundred OU's (&(|(&(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)))) Thanks! Bob ~ 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/> ~
