Bulk change UPN and primary mail address

M

m4xIT

Hi all,
due to a company acquisition of a subsidiary I need to bulk change all the users from company "B" to company "A".

As I know, having an AADSync I need to change the "UserPrincipalName" and "Mailbox" attributes in my domain and launch a full sync in order to have all the new settings.

Company "B" users have already the domain of company "A" in their "ProxyAddresses" attributes as secondary smtp, but now I need to revert as primary keeping the older one in order to keep the mail delivering for about 3 months.
I have to keep all the existing mailboxes from the old domain to the new one.

How can I achive this with a Powershell script?

Regards

Continue reading...
 
Back
Top Bottom