- PowerShell script
Please understand PowerShell script is not supported in Microsoft Q&A, but you could refer to the following articles: Bulk add secondary SMTP address with PowerShell - ALI TAJRAN
4.Anything else to complete? You also need to makes this new domain name could be chosen as UPN when creating mailbox/AD: Add this new domain name as alterative UPN suffixes from Active Directory Domain and Trusts. Then you will could change UPN for those old mailboxes.
Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
If the answer is helpful please click on ACCEPT ANSWER as it could help other members of the Microsoft Q&A community who have similar questions and are looking for solutions.