Commands › Exchange Online

Get-OnPremisesOrganization

Exchange Online ExchangeOnlineManagement Get-*

Retrieve settings for the OnPremisesOrganization object that is created for a hybrid deployment.

Quick start script

# Get-OnPremisesOrganization — 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-OnPremisesOrganization | Format-List

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

Syntax

Get-OnPremisesOrganization [[-Identity] <OnPremisesOrganizationIdParameter>]
 [<CommonParameters>]

Parameters (1)

ParameterTypeRequiredWhat it controls
-Identity OnPremisesOrganizationIdParameter The Identity parameter specifies the identity of the on-premises organization object. You can use the following values:

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