Jump to content

Recommended Posts

Posted

Resurrecting an old post as I cannot get the code:

 

Set-MSOlUserPrincipalName -UserPrincipalName "Old Email" -NewUserPrincipalName "New Email"

 

To work.

 

I'm wondering if it's because the account was synced before I had chance to run the code so now it can't find the user with the old email address :/

Posted
As far as I'm aware, you don't have to run that command anymore. Something to do with the unique identifier previously being the UPN/email but I believe Microsoft changed it to a unique identifier within the AD object which meant it would pick up any username/email changes.
  • Thanks 2
Posted
As far as I'm aware, you don't have to run that command anymore. Something to do with the unique identifier previously being the UPN/email but I believe Microsoft changed it to a unique identifier within the AD object which meant it would pick up any username/email changes.

 

Nice one.

Thanks.

Posted

It depends entirely on what your ADConnect is using to match up accounts.

 

Out of 5 of the sites we renamed students at in Oct half term, 3 of the sites automatically picked up the new login name when AD Connect sync'd, where as mine and another I had to run the PS command to rename them.... luck of the draw

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...