E_G_R2 Posted April 8, 2020 Posted April 8, 2020 Has anyone got a definitive answer to this one?Done this as advised in Spice works forum - https://community.spiceworks.com/topic/1214267-changing-a-user-name-in-office-365-hybrid-deployment-situationUsername is O365 still remains '[email protected]'So I believe I need to run this command in Power shell - Run Set-MsolUserPrincipalName –UserPrincipalName [email protected] -NewUserPrincipalName [email protected] run powerShell as admin on workstation and log on with my O365 credentials, however when i go to run Connect-MsolService and then Set-MsolUserPrincipalName -UserPrincipalName [email protected] -NewUserPrincipalName [email protected] tells me that 'is not recognized as the name of a cmdletAnyone ever do this and if so what am i missing on the PowerShell side of things?
Katy Posted April 8, 2020 Posted April 8, 2020 Have you done: (in an elevated powershell) Install-Module MSOnline then Import-Module MSOnline Connect-MSolService Set-MsolUserPrincipalName -UserPrincipalName [email protected] -NewUserPrincipalName [email protected] Although if you are using Azure AD Connect to sync then changing the UPN on premise should automatically change it on Azure AD.
E_G_R2 Posted April 9, 2020 Author Posted April 9, 2020 OK i get as far as Import-Module MsOnline then get this error Import-Module : The specified module 'MsOnline' was not loaded because no valid module file was found in ectory. At line:1 char:14 + Import-Module <<<< MsOnline + CategoryInfo : ResourceUnavailable: (MsOnline:String) [import-Module], FileNotFoundExcepti + FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand
Katy Posted April 12, 2020 Posted April 12, 2020 You definitely did the first step? (Install-Module MSOnline) 1
E_G_R2 Posted April 14, 2020 Author Posted April 14, 2020 Hi Katy, I thought I did but maybe hadn't! However when doing this I then had additional issues but the power of Google and no interruptions and I finally got it working Thanks to everyone for your help
Katy Posted April 14, 2020 Posted April 14, 2020 Hi Katy, I thought I did but maybe hadn't! However when doing this I then had additional issues but the power of Google and no interruptions and I finally got it working Thanks to everyone for your help There’s nothing better than not being constantly interrupted to get problems solved, one of the best things about working from home for me!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now