Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm looking for an Exchange 2010 command that would do the following:

  1. Given an email address (fully-qualified with domain and all) check if the email address is associated to some mailbox or group in the system;
  2. (Ideally) show which entity owns that email address

This would be very helpful for me to check my migration and make sure all of our aliases were moved correctly.

share|improve this question
add comment

3 Answers 3

up vote 4 down vote accepted

This should do the trick:

get-mailbox -an user@domain.com 
share|improve this answer
    
Perfect, of course. Thank you! –  tacos_tacos_tacos Feb 3 '12 at 16:08
3  
This will not work for accounts with multiple SMTP aliases; only the primary email address will return a record. Aliases will return nothing (falsely indicating the account is available). –  Myrddin Emrys Mar 29 '12 at 21:49
1  
Does not work for secondary addresses on a mailbox. –  user174970 May 23 '13 at 10:59
add comment

Get-Recipient -Identity user@domain.com

This will return the recipient object for whoever has the given email address (including aliases). Since emails are guaranteed to be unique this should never return more than one record (I believe).

Get-Recipient -ANR user

You can use -ANR to search using Ambiguous Name Resolution (so you can type their first, last, username, etc), but while ANR will match a user's primary email address, it will not match their other SMTP aliases. ANR can return multiple matches (so ensure your code handles this case).

Get-Mailbox is not sufficient to confirm that an email address is unique, as it will not necessarily return contacts, or records from external or legacy systems. It returns mailboxes... and while all mailboxes have an email address, not all email addresses are a mailbox.

share|improve this answer
    
This doesnt bring back any aliases of a mailbox –  Brian Mitchell Jan 28 '13 at 13:19
add comment

Get-Recipient should do the trick

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.