Here is the deal.
We have company that would like to add the new domain name and change the primary email address for all users to a new domain they have purchased. It has been added to 365 online. They would also like to do the same for distribution lists.
I have found a script that will do so for mailboxes at the following site :
This works well in our test env.
Contoso.com also has many distribution lists. Is there another script that will allow me to do the same for distribution lists in bulk? I was only able to find scripts to do so one at a time. See script syntax below.
Set-DistributionGroup "<Distribution Group Name>" -EmailAddresses SMTP:<Primary Email>,<Alias Email>