How to update multiple SMTP addresses using PowerShell
December 6, 2010 1 Comment
Hello out there in Live@EDU land!! Recently I have had several requests for more information on updating multiple SMTP addresses via PowerShell. In response I have put together a short video that outlines the guidance given on help.outlook.com and shows you how to put that to use in the real world. The video will cover how to connect to a .csv file to pull the new SMTP addresses then connect to Live@EDU and update the user accounts. I hope you find this information useful!
-Chris
I do it this way to give a user multiple SMTP addresses in different domains. The Last Add seems to determine the Primary SMTP Address. Not saying this is the best way but it works for me.
foreach($User in $Users) {
$User.EmailAddresses.Clear()
$User.EmailAddresses.Add(“SMTP:”+$User.Alias+”@secondarydomain.edu”)
$User.EmailAddresses.Add(“SMTP:”+$User.Alias+”@yourprimarydomain.edu”)
set-mailbox -Identity $User.WindowsLiveID -EmailAddresses $User.EmailAddresses
}
}