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 “domain.foo”} | 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)

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s