I need to change the UPN for all users so I can migrate to office 365. I accidentally ran a powershell command on the entire domain instead of the test OU. Now all users UPN is just the @ symbol. When I go to Properties / Accounts, user logon name is correct but instead of the .local or .com domain, I just have the @ Symbol.
I can not figure out how to replace @ with their internet domain.