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 DevOps Engineer Expert
- Microsoft Certified: Azure Solutions Architect Expert
- Microsoft 365 Certified: Messaging Administrator Associate
- Microsoft Certified Azure Administrator Associate
- Microsoft Certified: Azure Fundamentals
- Microsoft Certified: Security, Compliance, and Identity Fundamentals
- Microsoft Certified: Azure AI Fundamentals
No responses yet