Commands › Exchange Online
Get-FederationInformation
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)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.