CmdID

CmdID / PowerShell / Cmdlets / New

New-AppRetentionCompliancePolicy

Use the New-AppRetentionCompliancePolicy to create app retention compliance policies. Exchange PowerShell reference

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

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

Parameters

14 in the Exchange PowerShell reference
-NameThe Name parameter specifies a unique name for the app retention compliance policy.
-AdaptiveScopeLocationThe AdaptiveScopeLocation parameter specifies the adaptive scope location to include in the policy.
-ApplicationsThe Applications parameter specifies the applications to include in the policy.
-CommentThe Comment parameter specifies an optional comment.
-Confirm, -cfThe Confirm switch specifies whether to show or hide the confirmation prompt.
-EnabledThe Enabled parameter enables or disables the policy.
-ExchangeLocationThe ExchangeLocation parameter specifies the mailboxes to include in the policy.
-ExchangeLocationExceptionThe ExchangeLocationException parameter specifies the mailboxes exclude from the policy when you use the value All for the ExchangeLocation parameter.
-ForceThe Force switch hides warning or confirmation messages.
-ModernGroupLocationThe ModernGroupLocation parameter specifies the Microsoft 365 Groups to include in the policy.
-ModernGroupLocationExceptionThe ModernGroupLocationException parameter specifies the Microsoft 365 Groups to exclude from the policy when you use the value All for the ModernGroupLocation parameter.
-PolicyRBACScopesThe PolicyRBACScopes parameter specifies the administrative units to assign to the policy.
-RestrictiveRetentionThe RestrictiveRetention parameter specifies whether Preservation Lock is enabled for the policy.
-WhatIf, -wiThe WhatIf switch doesn't work in Security & Compliance PowerShell.