CmdID / PowerShell / Cmdlets / New
New-AppRetentionComplianceRule
Use the New-AppRetentionComplianceRule to create app retention compliance rules. Exchange PowerShell reference
From the Exchange PowerShell reference 13 parameters Its page in the reference
Parameters
-NameThe Name parameter specifies a unique name for the app retention compliance rule.-PolicyThe Policy parameter specifies the app retention compliance policy that contains the app retention compliance policy rule.-CommentThe Comment parameter specifies an optional comment.-Confirm, -cfThe Confirm switch specifies whether to show or hide the confirmation prompt.-ContentContainsSensitiveInformationThe ContentContainsSensitiveInformation parameter specifies a condition for the rule that's based on a sensitive information type match in content.-ContentMatchQueryThe ContentMatchQuery parameter specifies a content search filter.-ExcludedItemClassesThe ExcludedItemClasses parameter specifies the types of messages to exclude from the rule.-ExpirationDateOptionThe ExpirationDateOption parameter specifies whether the expiration date is calculated from the content creation date or last modification date.-MachineLearningModelIDs-RetentionComplianceActionThe RetentionComplianceAction parameter specifies the retention action for the rule.-RetentionDurationThe RetentionDuration parameter specifies the hold duration for the retention rule.-RetentionDurationDisplayHintThe RetentionDurationDisplayHint parameter specifies the units that are used to display the retention duration in the Microsoft Purview compliance portal.-WhatIf, -wiThe WhatIf switch doesn't work in Security & Compliance PowerShell.