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 [email protected] | fl Get-Mailbox [email protected] | fl Get-AvailabilityAddressSpace | fl Get-IntraOrganizationConnector | fl Get-FederationInformation -Domainname Sanjars.com Test-OrganizationRelationship –Identity "O365 to On-premises*" -UserIdentity [email protected] Stop-Transcript