Change O365 Username via PowerShell
TCB Network Solutions Page Other Topics Office 365 Open Windows PowerShell as an Admin and enter the following commands: connect-msolservice –> Enter Global Admin credentials Set-MsolUserPrincipalName -UserPrincipalName “username@xxxxx.onmicrosoft.com” -NewUserPrincipalName “username@correctdomain.com” Note: It is tricky to connect to O365 via powershell using an admin account that has 2FA enabled. As a work-around, search for (or create) …