Get-ADUser -Filter {proxyAddresses -like “*main.domain.com” -and enabled -eq true -and msExchUserAccountControl -notlike “*” -and msExchVersion -notlike “*”} |Select Name
Get-ADUser -Filter {proxyAddresses -like “*main.domain.com” -and enabled -eq true -and msExchUserAccountControl -notlike “*” -and msExchVersion -notlike “*”} |Select Name