CmdID / PowerShell / Cmdlets / Set
Set-HoldCompliancePolicy
Use the Set-HoldCompliancePolicy cmdlet to modify existing preservation policies in the Microsoft Purview compliance portal. Exchange PowerShell reference
From the Exchange PowerShell reference 13 parameters Its page in the reference
Parameters
-IdentityThe Identity parameter specifies the preservation 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 preservation 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 preservation 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.