CmdID

CmdID / PowerShell / Cmdlets / Set

Set-RetentionComplianceRule

Use the Set-RetentionComplianceRule cmdlet to modify existing retention rules in the Microsoft Purview compliance portal. Exchange PowerShell reference

From the Exchange PowerShell reference 16 parameters Its page in the reference

Opens CmdID with your command, read as PowerShell. It is read in your browser and sent nowhere.

Parameters

16 in the Exchange PowerShell reference
-IdentityThe Identity parameter specifies the retention rule that you want to modify.
-ApplyComplianceTagThe ApplyComplianceTag parameter specifies the label that's applied to email messages or documents by the rule (which affects how long the content is retained).
-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.
-ContentDateFromThe ContentDateFrom parameter specifies the start date of the date range for content to include.
-ContentDateToThe ContentDateTo parameter specifies the end date of the date range for content to include.
-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.
-IRMRiskyUserProfiles
-PriorityCleanupThe PriorityCleanup switch specifies whether to update the rule associated with a Priority cleanup policy.
-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.