Office 365

How to remove O365 alternate email address

If you need to change the AlternateEmailAddresses to $null for a user account or tenant admin you cannot, however, it has to be an array as below.

To check if the user has any alternate email address setup, use below command:

 

Get-MsolUser -UserPrincipalName email[at]contorso.com

To set alternate email address for a user as $null use the below command:

Set-MsolUser -UserPrincipalName email[at]contorso.com -AlternateEmailAddresses @()​

The @() will create an empty array.

More details about empty PowerShell arrays here.

Picture of Adrian

Adrian

Senior Engineer at Computer Assistance Oxford

How useful was this post?

Click on a star to rate it!

Average rating 5 / 5. Vote count: 1

No votes so far! Be the first to rate this post.

We are sorry that this post was not very useful for you!

Let us improve this post!

Tell us how we can improve this post?