SOLVED

How to change a Mailbox Id,Identity, Name ?

%3CLINGO-SUB%20id%3D%22lingo-sub-1004649%22%20slang%3D%22en-US%22%3EHow%20to%20change%20a%20Mailbox%20Id%2CIdentity%2C%20Name%20%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1004649%22%20slang%3D%22en-US%22%3E%3CP%3EFor%20whatever%20reason%2C%20one%20mailbox%20in%20an%20Office%20365%20tenant%20has%20the%20name%2FId%2FIdentity%2FCN%20set%20as%20%22admin%22.%20I%20would%20like%20to%20change%20that%20to%20be%20like%20the%20other%20mailboxes.%20How%20can%20I%20do%20this%3F%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EGet-Mailbox%20-Identity%20admin%20%7C%20fl%20*name*%2CId*%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESamAccountName%20%3A%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3Badmin56315-149665953%3CBR%20%2F%3EUserPrincipalName%20%3A%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20firstname.lastname%40domain.com%3CBR%20%2F%3EDisplayName%20%3A%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3BFirstname%20Lastname%3CBR%20%2F%3ESimpleDisplayName%20%3A%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%3CBR%20%2F%3E%3CFONT%20color%3D%22%23FF0000%22%3E%3CSTRONG%3EName%20%3A%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20admin%3C%2FSTRONG%3E%3C%2FFONT%3E%3CBR%20%2F%3EDistinguishedName%20%3A%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3BCN%3D%3CFONT%20color%3D%22%23FF0000%22%3E%3CSTRONG%3Eadmin%3C%2FSTRONG%3E%3C%2FFONT%3E%2COU%3Ddomain.onmicrosoft.com%2COU%3DMicrosoft%20Exchange%20Hosted%20Organizations%2CDC%3Dredacted%2CDC%3DPROD%2CDC%3DOUTLOOK%2CDC%3DCOM%3CBR%20%2F%3E%3CFONT%20color%3D%22%23FF0000%22%3E%3CSTRONG%3EIdentity%20%3A%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20admin%3C%2FSTRONG%3E%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20color%3D%22%23FF0000%22%3E%3CSTRONG%3EId%20%3A%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3Badmin%3C%2FSTRONG%3E%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESee%20further%20below%20what%20all%20the%20other%20mailboxes%20look%20like.%3C%2FP%3E%3CP%3EProblem%20is%20that%20when%20I%20select%20that%20mailbox%2C%20i.e.%20in%20Exchange%20Admin%20Center%20to%20be%20added%20to%20a%20group%20or%20similar%2C%20I%20see%20not%20the%20DisplayName%2C%20but%20%22admin%22.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F156791i442B63EF89A4BAD7%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%222019-11-13%2010_04_49-Select%20Owner.png%22%20title%3D%222019-11-13%2010_04_49-Select%20Owner.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%E2%80%83%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3CP%3EDan%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOther%20mailboxes%20show%3A%3C%2FP%3E%3CP%3ESamAccountName%20%3A%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3Bchris555411804579053%3CBR%20%2F%3EUserPrincipalName%20%3A%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20firstname2.lastname2%40domain.com%3CBR%20%2F%3EDisplayName%20%3A%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3BFirstname2%20Lastname2%3CBR%20%2F%3ESimpleDisplayName%20%3A%3CBR%20%2F%3EName%20%3A%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%3CFONT%20color%3D%22%23339966%22%3E%3CSTRONG%3Efirstname.lastname%3C%2FSTRONG%3E%3C%2FFONT%3E%3CBR%20%2F%3EDistinguishedName%20%3A%20CN%3D%3CFONT%20color%3D%22%23339966%22%3E%3CSTRONG%3Efirstname.lastname%3C%2FSTRONG%3E%3C%2FFONT%3E%2COU%3Dsgaim.onmicrosoft.com%2COU%3DMicrosoft%20Exchange%20Hosted%20Organizations%2CDC%3Dredacted%2CDC%3DPROD%2CDC%3DOUTLOOK%2CDC%3DCOM%3CBR%20%2F%3EIdentity%20%3A%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%3CFONT%20color%3D%22%23339966%22%3E%3CSTRONG%3Efirstname2.lastname2%3C%2FSTRONG%3E%3C%2FFONT%3E%3CBR%20%2F%3EId%20%3A%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%3CFONT%20color%3D%22%23339966%22%3E%3CSTRONG%3Efirstname2.lastname2%3C%2FSTRONG%3E%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1004649%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAdmin%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1006200%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20change%20a%20Mailbox%20Id%2CIdentity%2C%20Name%20%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1006200%22%20slang%3D%22en-US%22%3E%3CP%3ESimply%20use%20the%20Set-User%20cmdlet%2C%20Set-Mailbox%20should%20also%20do.%20Or%20if%20you%20are%20synchronizing%20from%20on-premises%20AD%2C%20make%20the%20changes%20there.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1006439%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20change%20a%20Mailbox%20Id%2CIdentity%2C%20Name%20%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1006439%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%20a%20lot%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F58%22%20target%3D%22_blank%22%3E%40Vasil%20Michev%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESet-User%20-Identity%20firstname.lastname%40domain.com%20-name%20firstname.lastname%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Edid%20it!%20All%20the%20fields%20are%20now%20set%20correctly%3A%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3EName%20%3A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20firstname.lastname%0ADistinguishedName%20%3A%20%20CN%3Dfirstname.lastname%2COU%3Dredacted.onmicrosoft.com%2COU%3DMicrosoft%20Exchange%20Hosted%20Organizations%2CDC%3Dredacted%2CDC%3DPROD%2CDC%3DOUTLOOK%2CDC%3DCOM%0AIdentity%20%3A%20%20%20%20%20%20%20%20%20%20%20firstname.lastname%0AId%20%3A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20firstname.lastname%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMany%20thanks!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDan%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Contributor

For whatever reason, one mailbox in an Office 365 tenant has the name/Id/Identity/CN set as "admin". I would like to change that to be like the other mailboxes. How can I do this? 

 

Get-Mailbox -Identity admin | fl *name*,Id*

 

SamAccountName :                                 admin56315-149665953
UserPrincipalName :                                firstname.lastname@domain.com
DisplayName :                                         Firstname Lastname
SimpleDisplayName :                              
Name :                                                    admin
DistinguishedName :     CN=admin,OU=domain.onmicrosoft.com,OU=Microsoft Exchange Hosted Organizations,DC=redacted,DC=PROD,DC=OUTLOOK,DC=COM
Identity :                                                  admin
Id :                                                           admin

 

See further below what all the other mailboxes look like.

Problem is that when I select that mailbox, i.e. in Exchange Admin Center to be added to a group or similar, I see not the DisplayName, but "admin".

 

2019-11-13 10_04_49-Select Owner.png

 

Thanks

Dan

 

 

Other mailboxes show:

SamAccountName :                 chris555411804579053
UserPrincipalName :                firstname2.lastname2@domain.com
DisplayName :                         Firstname2 Lastname2
SimpleDisplayName :
Name :                                    firstname.lastname
DistinguishedName : CN=firstname.lastname,OU=sgaim.onmicrosoft.com,OU=Microsoft Exchange Hosted Organizations,DC=redacted,DC=PROD,DC=OUTLOOK,DC=COM
Identity :                                  firstname2.lastname2
Id :                                           firstname2.lastname2

 

2 Replies
Highlighted
Solution

Simply use the Set-User cmdlet, Set-Mailbox should also do. Or if you are synchronizing from on-premises AD, make the changes there.

Highlighted

Thanks a lot @Vasil Michev 

 

Set-User -Identity firstname.lastname@domain.com -name firstname.lastname

 

did it! All the fields are now set correctly:

Name :               firstname.lastname
DistinguishedName :  CN=firstname.lastname,OU=redacted.onmicrosoft.com,OU=Microsoft Exchange Hosted Organizations,DC=redacted,DC=PROD,DC=OUTLOOK,DC=COM
Identity :           firstname.lastname
Id :                 firstname.lastname

 

Many thanks!

 

Dan