Set-MsolUser to remove alternate email address

To change the AlternateEmailAddresses, you cannot set it to $null however, it needs to be a array as below

Get-MsolUser -userprincipalname | Set-MsolUser -AlternateEmailAddresses @()

How useful was this post?

Click on a star to rate it!

Average rating / 5. Vote count:

As you found this post useful...

Follow us on social media!

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

Let us improve this post!

Leave a Reply

Your email address will not be published. Required fields are marked *