The way to change this is to do the following. In the list, you will need to locate the “UserPrincipalName”, which currently matches the alias you want to remove. Now you are connected, you will firstly need to look at the mailbox you want to remove the alias from in more detail by using the following. You will need to connect to the MsolService to firstly check the mailbox’s User Principal Name and then change it. Then you can check the specific mailbox using the following command. This will essentially list all of the mailboxes associated to that Office 365 admin panel. Once connected, it is advisable to do a “Get-Mailbox” command to ensure that you are logged in correctly and are in the correct Office 365 session. Import-PSSession $Session –DisableNameChecking Step 2 $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri -Credential $UserCredential -Authentication Basic –AllowRedirection (This will then prompt for credentials, which will be the Office 365’s admin email address and password). Step 1Ĭonnect to Office 365 via Powershell using the following commands. This guide demonstrates how to change the UPN to the desired email address using some Powershell commands. The issue is that when the account is first created it ties the email address into the user principal name (UPN) of the account, therefore when you try to remove the “alias” it will only re-appear again as it won’t let you remove the default UPN. This can be an issue if the mailbox was originally created with the email address that you now want to move over to a separate mailbox. Are you trying to remove an alias from an Office 365 mailbox/shared mailbox?
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |