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 OnpremiseUser@sanjars.com | fl
Get-Mailbox CloudUser@sanjars.com | fl
Get-AvailabilityAddressSpace | fl
Get-IntraOrganizationConnector | fl
Get-FederationInformation -Domainname Sanjars.com
Test-OrganizationRelationship –Identity "O365 to On-premises*" -UserIdentity OnpremiseUser@sanjars.com
Stop-Transcript

 

Leave a Reply

Your email address will not be published. Required fields are marked *