Just having data in the mail attribute is not neccessarily an indication that they have a mailbox.  That could have been put in manually or that object could be a contact or a non-mailbox-enabled user entity etc.
 
Look for a search criteria that looks for more than one attribute such as homeMDB & mail both having an attribute and an objectcategory of person & objectClass of User.  You may want to add in there that the search criteria must also find msExchHomeServerName must have data as well.  
 
You may then want to return the users that match the criteria, the homeMDB and or the msExchHomeServerName in the report.
 
Here's the default GAL search criteria for building all users (mailbox-enabled user objects) in Exchange for reference.
 
(& (mailnickname=*) (| (&(objectCategory=person)(objectClass=user)(!(homeMDB=*))(!(msExchHomeServerName=*)))(&(objectCategory=person)(objectClass=user)(|(homeMDB=*)(msExchHomeServerName=*))) ))
 


From: Creamer, Mark [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 17, 2004 2:33 PM
To: [EMAIL PROTECTED]
Subject: [ActiveDir] running a user query

I need to get some information on all of our users for a manager here. I have a script I can alter to get the information, but can I assume that if the user has a value in the "mail" attribute that he or she has an Exchange account? What the manager ultimately wants is a list of all users, and whether or not there is a mailbox associated with them. Thanks!

 

Mark Creamer

Systems Engineer

Cintas Corporation

Honesty and Integrity in Everything We Do

 

Reply via email to