Searching using Custom Attributes in AD
Hi 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?
September 23rd, 2011 1:08am

On Thu, 22 Sep 2011 22:08:27 +0000, Neil4933 wrote: >Hi 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 get-mailbox -filter 'customattribute1 -eq "marketing"' >2. A list of all Distribution Lists belonging to Marketing get-distributiongroup -filter 'customattribute1 -eq "marketing"' >3. A list of all mailboxes with the name SMITH belonging to Marketing get-mailbox -filter 'customattribute1 -eq "marketing" -and displayname -like "*smith*"' >4. A list of all DL's containing the word CORPORATE that belong to Marketing get-distributiongroup -filter 'customattribute1 -eq "marketing" -and displayname -like "*corporate*"' >Does anyone know how I can do this, using either the Exchange Management Shell or Quest Powershell? Try the stuff above. Syntactically, it's correct. Whether it produces the desired result I don't know because I haven't tried them. --- Rich Matheisen MCSE+I, Exchange MVP --- Rich Matheisen MCSE+I, Exchange MVP
Free Windows Admin Tool Kit Click here and download it now
September 24th, 2011 4:51am

Hi Neil, Any updates? Frank Wang
September 26th, 2011 11:20am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics