CmdID / PowerShell / Cmdlets / New
New-ComplianceRetentionEvent
Use the New-ComplianceRetentionEvent cmdlet to create compliance retention events in your organization. Exchange PowerShell reference
From the Exchange PowerShell reference 12 parameters Its page in the reference
Parameters
-NameThe Name parameter specifies a unique name for the compliance retention event.-AssetIdThe AssetId parameter specifies the ComplianceAssetId value found in the properties of SharePoint or OneDrive documents that's used for retention.-CommentThe Comment parameter specifies an optional comment.-Confirm, -cfThe Confirm switch specifies whether to show or hide the confirmation prompt.-DomainControllerThis parameter is reserved for internal Microsoft use.-EventDateTimeThe EventDateTime parameter specifies the date-time of the event.-EventTagsThe EventTags parameter specifies the GUID value of the labels that are associated with the compliance retention event.-EventTypeThe EventType parameter specifies the GUID value of the event that starts the retention period for labels that use this event type.-ExchangeAssetIdQueryThe ExchangeAssetIdQuery parameter specifies the keywords that are used to scope Exchange content for the compliance retention event.-PreviewOnly-SharePointAssetIdQueryThe SharePointAssetIdQuery parameter specifies one or more the Property:Value pairs that you've specified in the properties (also known as Columns) of SharePoint and OneDrive documents to scope the c…-WhatIf, -wiThe WhatIf switch doesn't work in Security & Compliance PowerShell.