Commands › Exchange Online

Get-SharingPolicy

Exchange Online ExchangeOnlineManagement Get-*

View existing sharing policies that control how users inside your organization can share free/busy and contact information with users outside your organization.

Quick start script

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

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

Syntax

Get-SharingPolicy [[-Identity] <SharingPolicyIdParameter>]
 [-DomainController <Fqdn>]
 [<CommonParameters>]

Parameters (2)

ParameterTypeRequiredWhat it controls
-Identity SharingPolicyIdParameter The Identity parameter specifies the sharing policy that you want to view. You can use one of 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.