CmdID / PowerShell / Cmdlets / New
New-HoldCompliancePolicy
Use the New-HoldCompliancePolicy cmdlet to create new preservation policies in the Microsoft Purview compliance portal. Exchange PowerShell reference
From the Exchange PowerShell reference 9 parameters Its page in the reference
Parameters
-NameThe Name parameter specifies the unique name of the preservation policy.-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 or disabled.-ExchangeLocationThe ExchangeLocation parameter specifies the mailboxes to include in the policy.-ForceThe Force switch hides warning or confirmation messages.-PublicFolderLocationThe PublicFolderLocation parameter specifies that you want to include all public folders in the preservation policy.-SharePointLocationThe SharePointLocation parameter specifies the SharePoint sites to include.-WhatIf, -wiThe WhatIf switch doesn't work in Security & Compliance PowerShell.