How to update UPN for everyone in a specific OU using PowerShell

If you are running an Office 365 migration for a larger number of users and you would rather not sift through hundreds of user accounts to update their UserPrincipalName Attribute in order to have their username be accurate in Office 365 then have I got the script for you! This script will update UPN for everyone within a specific OU, or all in the directory using PowerShell.

Continue reading “How to update UPN for everyone in a specific OU using PowerShell”