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 @()
- Microsoft Certified: Azure Solutions Architect Expert
- Microsoft Certified Azure Administrator Associate
- Microsoft 365 Certified: Messaging Administrator Associate
- MCSA, Microsoft Windows Server
- MCITP, Exchange Server
- ITIL V3 Certified