Searching using Custom Attributes in AD
Posted on 2011-09-22
We are running Exchange 2007/ 2010 and AD 2003.
On our mailboxes and Distribution Groups, we use Custom Attributes to mark which Cost Center the object belongs to for billing purposes. For the sake of this example, the extension attribute 1 marks the Cost Center (Marketing, Corporate, etc).
I need to pull:
1. A list of all mailboxes belonging to Marketing
2. A list of all Distribution Lists belonging to Marketing
3. A list of all mailboxes with the name SMITH belonging to Marketing
4. A list of all DL's containing the word CORPORATE that belong to Marketing
Does anyone know how I can do this, using either the Exchange Management Shell or Quest Powershell?