Forum Discussion
Asbjørn Vang Jacobsen
Jun 19, 2018Copper Contributor
How can I query Exchange Online for the generated MX record for each of my domains?
Is it possible to read the generated MX record for each Email domain in Exchange Online anywhere except on the Admin Portal? For example in Powershell? More specifically I am talking about the MX re...
- Jun 20, 2018
Yes, it's possible via the AzureAD module:
Get-AzureADDomainServiceConfigurationRecord -Name domain.com | ? {$_.RecordType -eq "Mx"} | select MailExchange
VasilMichev
Jun 20, 2018MVP
Yes, it's possible via the AzureAD module:
Get-AzureADDomainServiceConfigurationRecord -Name domain.com | ? {$_.RecordType -eq "Mx"} | select MailExchange
- my183Dec 02, 2021Copper Contributor
It works on some domains but does not on most of them. Out of 39 domains worked just in 3 cases.
Any idea why? Thanks,
- Asbjørn Vang JacobsenJun 20, 2018Copper Contributor
That was exactly what I was looking for. Thank you.