Michael, A quick one: set oOU = GetObject(LDAP://OU=MyOU,DC=company,DC=com) for each objObject in oOU WScript.Echo objObject.Name & vbTab & objObject.Class Next Can this do the work or did you need a query instead? Perhaps you can check if the attribute .msExchMailboxGuid exists to see if it is mail-enabled. (please verify this) Regards, /MS
________________________________ From: [EMAIL PROTECTED] on behalf of Michael B. Smith Sent: Tue 2004-05-04 23:38 To: [EMAIL PROTECTED] Subject: [ActiveDir] Simple LDAP Query I'm obviously missing something simple... How do I construct a query to return all the objects in a particular OU? (To be specific, I want to return everything in an OU that is mail-enabled -- but I can do the rest given the syntax to search only a particular OU.) Thanks
<<winmail.dat>>
