Unfortunately, I don’t have the luxury of specifying my base. I need a query that I can, specifically, place into an “All Address Lists” object in Exchange System Manager.

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mikael Svennungsson
Sent: Tuesday, May 04, 2004 5:10 PM
To: [EMAIL PROTECTED]
Subject: RE: [ActiveDir] Simple LDAP Query

 

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

 

Reply via email to