Friday, August 27, 2010

Who's using that email address?

At work, we sometimes need to find out which account is using an email address. Now this may sound simple to find by just doing a query of all the primary email addresses of all the users. The issue in our environment, and I'd wager yours as well, is that users and groups never seem to only have just one email address. They've either been with the company long enough for us to have changed the "Standard" from flast@work.com to first.last@work.com, or maybe they got married/divorced/both. Any way I look at it, most of my users have more than one email address because they don't want to give up the old one because their existing contact know/use it.

So we give them additional email addresses, but at some point we have an issue that requires us to find out who's using that email address.

If you use powershell with the exchange plugins, it's an easy search to find the account/group using a secondary address.

Try this:

get-mailbox -resultsize unlimited where { $_.emailaddresses -like "smtp:elmer.fudd@work.com" }

Just substitute the address you need to find in the like section. Be sure to leave the smtp: or it wont find it.

Happy searching.

No comments: