Commands › Exchange Online

Get-FederationInformation

Exchange Online ExchangeOnlineManagement Get-*

Get federation information from an external Exchange organization. > [!TIP] > For information about changes made to the Get-FederationInformation cmdlet to improve security and privacy, see Important Update to the Get-FederationInformation Cmdlet in Exchange Online.

Quick start script

# Get-FederationInformation — 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-FederationInformation -DomainName <SmtpDomain> | Format-List

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

Syntax

Get-FederationInformation -DomainName <SmtpDomain>
 [-BypassAdditionalDomainValidation]
 [-Force]
 [-TrustedHostnames <MultiValuedProperty>]
 [<CommonParameters>]

Parameters (4)

ParameterTypeRequiredWhat it controls
-DomainName SmtpDomain yes The DomainName parameter specifies the domain name for which federation information is to be retrieved.
-BypassAdditionalDomainValidation SwitchParameter The BypassAdditionalDomainValidation switch specifies that the command skip validation of domains from the external Exchange organization. You don't need to specify a value with this switch.
-Force SwitchParameter The Force switch hides warning or confirmation messages. You don't need to specify a value with this switch.
-TrustedHostnames MultiValuedProperty The TrustedHostnames parameter specifies the fully qualified domain name (FQDN) of federation endpoints. Federation endpoints are the client access (frontend) services on Mailbox servers in an organization with...

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