CmdID / PowerShell / Cmdlets / Set
Set-AppRetentionComplianceRule
Use the Set-AppRetentionComplianceRule to modify app retention compliance rules. Exchange PowerShell reference
From the Exchange PowerShell reference 13 parameters Its page in the reference
Parameters
-IdentityThe Identity parameter specifies the app retention compliance rule that you want to modify.-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.-ContentDateFrom-ContentDateTo-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.-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.