Forum Discussion

Asbjørn Vang Jacobsen's avatar
Asbjørn Vang Jacobsen
Copper Contributor
Jun 19, 2018
Solved

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...
  • VasilMichev's avatar
    Jun 20, 2018

    Yes, it's possible via the AzureAD module:

     

    Get-AzureADDomainServiceConfigurationRecord -Name domain.com | ? {$_.RecordType -eq "Mx"} | select MailExchange

Resources