Err nope.
 
Mail could be set by other things and for other reasons.
 
If the user has an exchange mailbox they should have HOMEMDB or HOMEMTA attributes set so you should be able to get away with just checking for a value in one or both of those locations. I think I would hit on homemdb personally.
 
If you just want to do all one dump I would say dump all users and dump their homemdb attribute, through it into a spreadsheet so your manager can sort on what he would like to sort on.
 
-------------
http://www.joeware.net   (download joeware)
 
 
 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Creamer, Mark
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