Tech Quip: Primary ProxyAddress

In an Azure AD Sync, the ProxyAddress with SMTP is treated as the primary email address. All others should be prefaced with “smtp” in lowercase. If there are more than one in all caps, it takes the first alphabetically.

Get-ADUser -Filter * -Properties SamAccountName, ProxyAddresses | ft samaccountname,proxyaddresses
Set-ADUser -Identity NAME -Clear ProxyAddresses
Set-ADUser -Identity NAME -Add @{Proxyaddresses="SMTP:"}
Set-ADUser -Identity NAME -Add @{Proxyaddresses="smtp:"}