Switching primary and secodary SMTP addresses
Hello Exchange Admins.Im having some troubles finding the right method of switching some emailaddresses on some users in several OU's.The case is that some users have a set of emailaddresses, a primary from domain_old.com and a secondary that is domain_new.com.The questionI have is to switch these addresses so that the new domain becomes primary and the secondary is the old one.What I have now is the followingGet-Mailbox -OrganizationalUnit "domain.ad"-resultsize unlimited | select Identity -expand emailaddresses| Where {$_.SMTPAddress -match "domain_old.com" -and $_.IsPrimaryAddress -eq $True} | %{get-mailbox $_.identity} | select identity -expand emailaddresses | where {$_.SMTPAddress -match "domain_new.com"} This gets me the exact list of all the affected mailboxes with these settings.Butfrom here tothe switching Iam at a loss.Any help is very much appriciated
December 9th, 2009 12:47pm

Does this point you in the right direction?http://social.technet.microsoft.com/Forums/en/exchangesvradmin/thread/cbb0c830-cbe1-4200-90bd-c8946bceac22
Free Windows Admin Tool Kit Click here and download it now
December 10th, 2009 2:02am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics