Powershell script to update UPN domain suffix for Azure AD synchronization
Posted on 2016-10-24
We are in the process of migrating users to Office 365 and I would like help updating AD users accounts so they will sync with Azure AD.
Traditionally we have used an internal/non-routeable domain ('company.local') as the domain suffix for our UPN's, but if course now we need to switch you our public/validated domain.
I have already added the alternate domain suffix of 'company.com', manually updated a number of test users and synchronized successfully with Azure AD. What I am looking for now is a Powershell script that has the flexibility to update either all user accounts or all accounts by OU (to allow for testing).
Thanks in advance