kennysarmy Posted January 3, 2023 Author Posted January 3, 2023 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 :/
adamsund Posted January 3, 2023 Posted January 3, 2023 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. 2
kennysarmy Posted January 3, 2023 Author Posted January 3, 2023 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.
Boredguy Posted January 3, 2023 Posted January 3, 2023 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
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