![]() Note that this may take a while to take effect, so if it does not work immediately wait up to 1 full hour for the change to be fully completed before trying again. You can now remove the alias from the Office 365 admin portal and reassign it where needed. Now run the Get-Mailbox | Format-List command again and you should see the updated user principal name. Set-MsolUserPrincipalName -UserPrincipalName -NewUserPrincipalName Step 7 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 Select the Advanced tab and then select the mailbox you want to remove. Ensure that Microsoft Exchange Server is selected and click on Change. ![]() Select View or change existing e-mail accounts and click on Next. (This will then prompt for credentials, which will be the Office 365’s admin email address and password). Open Outlook, Click Tools -> Email Accounts. ![]() 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. |