Commands › Exchange Online

Get-AppRetentionCompliancePolicy

Exchange Online ExchangeOnlineManagement Get-*

For more information, see Security & Compliance PowerShell. Use the Get-AppRetentionCompliancePolicy to view app retention compliance policies. App retention & labeling policies target new ways to scope and manage policies.

Quick start script

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

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

Syntax

Get-AppRetentionCompliancePolicy [[-Identity] <PolicyIdParameter>]
 [-DistributionDetail]
 [-ErrorPolicyOnly]
 [-RetentionRuleTypes]
 [<CommonParameters>]

Parameters (4)

ParameterTypeRequiredWhat it controls
-Identity PolicyIdParameter The Identity parameter specifies the app retention compliance policy that you want to view. You can use any value that uniquely identifies the policy. For example:
-DistributionDetail SwitchParameter The DistributionDetail switch returns detailed policy distribution information in the DistributionResults property. You don't need to specify a value with this switch.
-ErrorPolicyOnly SwitchParameter {{ Fill ErrorPolicyOnly Description }}
-RetentionRuleTypes SwitchParameter The RetentionRuleTypes switch specifies whether to return the value of the RetentionRuleTypes property in the results. You don't need to specify a value with this switch.

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