CmdID / PowerShell / Cmdlets / Get
Get-RetentionCompliancePolicy
Use the Get-RetentionCompliancePolicy to view existing retention policies in the Microsoft Purview compliance portal. Exchange PowerShell reference
From the Exchange PowerShell reference 8 parameters Its page in the reference
Parameters
-IdentityThe Identity parameter specifies the retention policy that you want to view.-DistributionDetailThe DistributionDetail switch returns detailed policy distribution information in the DistributionResults property.-ErrorPolicyOnlyThe ErrorPolicyOnly switch specifies whether to show only policies that have distribution errors in the results.-ExcludeTeamsPolicyThe ExcludeTeamsPolicy switch specifies whether to exclude Teams policies from the results.-IncludeTestModeResultsThe IncludeTestModeResults switch specifies whether to include the status of test mode in the policy details.-PriorityCleanup-RetentionRuleTypesThe RetentionRuleTypes switch specifies whether to return the value of the RetentionRuleTypes and HasRules properties in the results.-TeamsPolicyOnlyThe TeamsPolicyOnly switch specifies whether to show only Teams policies in the results.