Commands › Exchange Online

Get-OrganizationRelationship

Exchange Online ExchangeOnlineManagement Get-*

Retrieve settings for an organization relationship that is created for federated sharing with other federated Exchange organizations or for hybrid deployments with Exchange Online.

Quick start script

# Get-OrganizationRelationship — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-ExchangeOnline -CertificateThumbprint $thumb -AppId $appId -Organization $org

# 2. Run and inspect
Get-OrganizationRelationship | Format-List

# 3. Export for evidence / drift tracking
Get-OrganizationRelationship | Export-Clixml .\OrganizationRelationship-$(Get-Date -Format yyyyMMdd).xml

Syntax

Get-OrganizationRelationship [[-Identity] <OrganizationRelationshipIdParameter>]
 [-DomainController <Fqdn>]
 [<CommonParameters>]

Parameters (2)

ParameterTypeRequiredWhat it controls
-Identity OrganizationRelationshipIdParameter The Identity parameter specifies the identity of the organizational relationship. You can use the following values:
-DomainController Fqdn This parameter is available only in on-premises Exchange.

Message Center changes mentioning this command

Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.