Commands › Exchange Online

Get-PolicyConfig

Exchange Online ExchangeOnlineManagement Get-*

For more information, see Security & Compliance PowerShell. Use the Get-PolicyConfig cmdlet to view the endpoint restrictions that are configured in the organization.

Quick start script

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

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

Syntax

Get-PolicyConfig [[-Identity] <OrganizationIdParameter>] [<CommonParameters>]

Parameters (1)

ParameterTypeRequiredWhat it controls
-Identity OrganizationIdParameter You don't need to use this parameter. The only endpoint restrictions object in the organization is named Settings.

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