CmdID / PowerShell / Cmdlets / New
New-HoldComplianceRule
Use the New-HoldComplianceRule cmdlet to create new preservation rules in the Microsoft Purview compliance portal. Exchange PowerShell reference
From the Exchange PowerShell reference 11 parameters Its page in the reference
Parameters
-NameThe Name parameter specifies a unique name for the preservation rule.-PolicyThe Policy parameter specifies the policy to contain the rule.-CommentThe Comment parameter specifies an optional comment.-Confirm, -cfThe Confirm switch specifies whether to show or hide the confirmation prompt.-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.-DisabledThe Disabled parameter specifies whether the preservation rule is enabled or disabled.-HoldContentThe HoldContent parameter specifies the hold duration for the preservation rule.-HoldDurationDisplayHintThe HoldDurationDisplayHint parameter specifies the units that are used to display the preservation duration in the Microsoft Purview compliance portal.-WhatIf, -wiThe WhatIf switch doesn't work in Security & Compliance PowerShell.