question

satishchaturvedi-3719 avatar image
0 Votes"
satishchaturvedi-3719 asked KyleXu-MSFT commented

Add additional email addresses to multiple mailboxes

Hi Team,

User mailbox hosted in 0365 and mail user available in Exchange 2013 I need add additional email id in mailbox


Need add additional email id in bulk mailbox

Please share the script and Power shell cmd

office-exchange-server-administration
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@satishchaturvedi-3719
I am writing here to confirm with you any update about this thread now?
If the suggestion below helps, please be free to mark it as an answer for helping more people.

0 Votes 0 ·

1 Answer

KyleXu-MSFT avatar image
0 Votes"
KyleXu-MSFT answered

@satishchaturvedi-3719

You need to prepare a CSV for the mailboxes that you want to add email address to:

95120-qa-kyle-13-29-50.png

Then, you can use script below to add new email address to those mailboxes:

 $Mailboxes = Import-Csv c:/temp/users.csv
    
 foreach($Mailbox in $Mailboxes){
     $temp = $Mailbox.Name
     $temp2 = $temp +"@yourNewdomain.com"
     Set-Mailbox $temp -EmailAddresses @{Add=$temp2}
 }

You can use command below to check whether this new domain name add to your mailbox:

 Get-Mailbox ex3user1 | fl EmailAddresses

Please note: If you want to add a new domain name for Exchange online mailbox, you need to verify this new domain in Office 365 first.


If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.