CmdID

CmdID / PowerShell / Cmdlets / Set

Set-CaseHoldPolicy

Use the Set-CaseHoldPolicy cmdlet to modify existing case hold policies in the Microsoft Purview compliance portal. Exchange PowerShell reference

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

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

Parameters

13 in the Exchange PowerShell reference
-IdentityThe Identity parameter specifies the case hold policy that you want to modify.
-RetryDistributionThe RetryDistribution switch specifies whether to redistribute the policy to all Exchange Online and SharePoint locations.
-AddExchangeLocationThe AddExchangeLocation parameter specifies the mailboxes to add to the list of included mailboxes.
-AddPublicFolderLocationThe AddPublicFolderLocation parameter specifies that you want to add all public folders to the case hold policy.
-AddSharePointLocationThe AddSharePointLocation parameter specifies the SharePoint sites to add to the list of included sites when you aren't using the value All for the SharePointLocation parameter.
-CommentThe Comment parameter specifies an optional comment.
-Confirm, -cfThe Confirm switch specifies whether to show or hide the confirmation prompt.
-EnabledThe Enabled parameter specifies whether the policy is enabled.
-ForceThe Force switch hides warning or confirmation messages.
-RemoveExchangeLocationThe RemoveExchangeLocation parameter specifies the existing mailboxes to remove from the policy.
-RemovePublicFolderLocationThe RemovePublicFolderLocation parameter specifies that you want to remove all public folders from the case hold policy.
-RemoveSharePointLocationThe RemoveSharePointLocation parameter specifies the SharePoint sites to remove from the list of included sites when you aren't using the value All for the SharePointLocation parameter.
-WhatIf, -wiThe WhatIf switch doesn't work in Security & Compliance PowerShell.