Office 365 Hybrid Exchange On-premises Validation Check Part 2

Hi Folks, this is just a continuation to Part 1, where we had shared a small script to verify the Office 365 Hybrid Configuration health from on Premise Exchange Server. In this article we will go through the script to fetch the health report from Cloud to On premises Exchange Servers. Follow the instructions below.

Login to Office 365 Tenant using global administrative rights from Powershell.

$ts = Get-Date -Format yyyyMMdd_hhmmss
$FormatEnumerationLimit = -1
Start-Transcript EXOnline$ts.txt
Get-FederationTrust | fl
Get-FederatedOrganizationIdentifier | fl
Get-OrganizationRelationship | fl
Get-MailUser | fl
Get-Mailbox | fl
Get-AvailabilityAddressSpace | fl
Get-IntraOrganizationConnector | fl
Get-FederationInformation -Domainname
Test-OrganizationRelationship –Identity "O365 to On-premises*" -UserIdentity