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 manu@exchangeonline.in | Set-MsolUser -AlternateEmailAddresses @()

Tags:

No responses yet

Leave a Reply

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

Recent Comments