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 @()


No responses yet

Leave a Reply

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

Recent Comments
Add External Contacts in Microsoft Teams