Jump to content

Recommended Posts

Posted
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?
Posted

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.

Posted

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

Posted

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 :D

Posted
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 :D

 

There’s nothing better than not being constantly interrupted to get problems solved, one of the best things about working from home for me!

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...