Exchange 2007 Quick Tip: Searching Email Addresses

A Couple quick tips since I had to do a similar search this morning. First let’s say you need to search all your recipients for an email address. Normally not a big deal since you should know their name and can check the mailbox. But what if its an email address that isn’t obvious and is on a different domain?

get-recipient -ResultSize Unlimited | where {$_.emailaddresses -match “”} | select name,emailaddresses | fl —- (source)

That will get all recipients then filter based on the domain listed. You can also of course just change the file to the full email address and that will work as well.

Unfortunately my search didn’t return what I was looking for so I wanted to check and see if maybe it was someone who was using a forwarding address. Here’s that search as well:

Get-Mailbox | Where {$_.ForwardingAddress -ne $null} |Select Name, ForwardingAddress, DeliverToMailboxAndForward | fl —- (source)