"To obtain information about an Accepted Domain’s MX record configuration, use the List serviceConfigurationRecords Graph API instead"
What are these cmdlets using in the backend, will they automatically update or we need to rely on a updated module for this or its not going to work at all.
Get-MxRecordReport (ExchangePowerShell) | Microsoft Learn
Get-MxRecordReport contoso.com
Get-MxRecordsReport contoso.com
Sample Output:
Get-MxRecordsReport contoso.com
IsMxRecordPointingToService HighestPriorityMailhost HighestPriorityMailhostIpAddress Domain
--------------------------- ----------------------- -------------------------------- ------
True contoso-com.mail.protection.outlook.com 52.101.9.0 contoso.com
True contoso-com.mail.protection.outlook.com 52.101.42.6 contoso.com
True contoso-com.mail.protection.outlook.com 52.101.42.13 contoso.com
True contoso-com.mail.protection.outlook.com 52.101.8.36 contoso.com
True contoso-com.mail.protection.outlook.com 52.101.40.1 contoso.com
True contoso-com.mail.protection.outlook.com 52.101.11.9 contoso.com
True contoso-com.mail.protection.outlook.com 52.101.42.4 contoso.com
Get-MxRecordReport contoso.com
Organization : contoso.onmicrosoft.com
IsAcceptedDomain : True
RecordExists : True
PointsToService : True
HighestPriorityMailhost : contoso-com.mail.protection.outlook.com
HighestPriorityMailhostIpAddress : 52.101.42.6
Domain : contoso.com
List serviceConfigurationRecords - Microsoft Graph v1.0 | Microsoft Learn
Import-Module Microsoft.Graph.Identity.DirectoryManagement
Get-MgDomainServiceConfigurationRecord -DomainId $domainId
This appears to be a alternative, but totally a different approach.