Forum Discussion
Test SharePoint
Oct 11, 2019Brass Contributor
Add email alias to multiple O365 user accounts in bulk
Hello team, We currently have a domain: abc.com We are going to add a new domain: xyz.com users are in-cloud. We want to add email aliases to some of our users as user@xyz.com and set it as p...
VasilMichev
Oct 12, 2019MVP
So simply adapt the script to run against just the users in question, either by using filter or by feeding a CSV file to the script. Here's a simple example:
Import-CSV blabla.csv | % {Set-Mailbox $_.UserPrincipalName -WindowsEmailAddress $_.NewAddress }
where the blabla.csv file has a column UserPrincipalName to identify the users, and a column NewAddress to specify the new primary SMTP address.
ZekeYeager
Sep 24, 2021Copper Contributor
Hi Vasil,
Just wanted to check with you if it is possible to add domain2.com to all users/sharedmailbox/DL/secgroup and Teams that have only domain1.com our tenant has multidomain and we want to update domain1.com only.
Just wanted to check with you if it is possible to add domain2.com to all users/sharedmailbox/DL/secgroup and Teams that have only domain1.com our tenant has multidomain and we want to update domain1.com only.