Skip to content

I need help converting a few commands from msoluser to mguser, to change the immutableid #2951

Closed Answered by NoSubstitute
NoSubstitute asked this question in Q&A
Discussion options

You must be logged in to vote

FOUND IT!
O = old command
N = new command

O Set-MsolUserPrincipalName -UserPrincipalName name.new@edu.lomma.se -NewUserPrincipalName name.new@lomma.onmicrosoft.com
N Update-MgUser -UserId name.new@edu.lomma.se -UserPrincipalName name.new@lomma.onmicrosoft.com
O Set-MsolUser -UserPrincipalName name.new@lomma.onmicrosoft.com -ImmutableId "name.new@edu.lomma.se"
N Update-MgUser -UserId name.new@lomma.onmicrosoft.com -OnPremisesImmutableId name.new@edu.lomma.se
O Set-MsolUserPrincipalName -UserPrincipalName name.new@lomma.onmicrosoft.com -NewUserPrincipalName name.new@edu.lomma.se
N Update-MgUser -UserId name.new@lomma.onmicrosoft.com -UserPrincipalName name.new@edu.lomma.se

So, it wasn't …

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@NoSubstitute
Comment options

@CupOfJoe-L
Comment options

Comment options

You must be logged in to vote
2 replies
@CupOfJoe-L
Comment options

@NoSubstitute
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by NoSubstitute
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants