Exchange Server Share

… Information sharing on Exchange Server …

EMS TitBit: Search/Find Email Addresses

How do you search/find email addresses in Exchange 2007 using wildcard?

Well, Exchange Management Console has capability to filter recipients but it has limited power hence while working in enterprise or big environment when you want to find all kind of recipients, indeed PowerShell gives enrich direction with efficient search terms.

Let’s start with an example, below Exchange Management Shell CmdLet to find all email addresses which are still have smtp address of an old domain.

Get-Recipient -Filter "EmailAddresses -like ‘*’"

Additional Info:

  • Above CmdLet searches…
      • All recipients (including User Mailbox, Mail User, Mail Contact, Universal/nonUniversal Secruity/Dist Group, Dynamic Distribution Group and Public Folders)
      • All the email addresses (including primary, secondary, x400, x500, sip or any custom)
  • You can add more search terms by appending –AND / –OR  logical expression in filter switch to find more specific recipients as per your requirement…

Get-Recipient -Filter "EmailAddresses -like ‘*’ -And RecipientType -eq ‘UserMailbox’"

Get-Recipient -Filter "EmailAddresses -like ‘*’ -And Office -eq ‘OfficeName’"

  • You can add –ResultSize Unlimited switch to eliminate default display limit of 1000 recipients in EMS.

Get-Recipient -ResultSize Unlimited -Filter "EmailAddresses -like ‘*’"

Hope this helps you to search in Enterprise Exchange environment…!!!

Working with Command Output

Written by Amit Tank

January 19, 2009 at 7:56 am

One Response

Subscribe to comments with RSS.

  1. […] EMS TitBit: Search/Find Email Addresses […]

Comments are closed.


Get every new post delivered to your Inbox.

Join 35 other followers

%d bloggers like this: