CmdID / PowerShell / Cmdlets / Set
Set-AppRetentionCompliancePolicy
Use the Set-AppRetentionCompliancePolicy to modify app retention compliance policies. Exchange PowerShell reference
From the Exchange PowerShell reference 21 parameters Its page in the reference
Parameters
Show its 21 parameters
-IdentityThe Identity parameter specifies the app retention compliance policy that you want to modify.-RetryDistributionThe RetryDistribution switch specifies whether to redistribute the policy to all locations.-AddAdaptiveScopeLocationThe AddAdaptiveScopeLocation parameter specifies the adaptive scope location to add to the policy.-AddExchangeLocationThe AddExchangeLocation parameter specifies the mailboxes to add to the list of included mailboxes when you aren't using the value All for the ExchangeLocation parameter.-AddExchangeLocationExceptionThe AddExchangeLocationException parameter specifies the mailboxes to add to the list of excluded mailboxes when you're using the value All for the ExchangeLocation parameter.-AddModernGroupLocationThe AddModernGroupLocation parameter specifies the Microsoft 365 Groups to add to the list of included Microsoft 365 Groups when you aren't using the value All for the ModernGroupLocation parameter.-AddModernGroupLocationExceptionThe AddModernGroupLocationException parameter specifies the Microsoft 365 Groups to add to the list of excluded Microsoft 365 Groups when you're using the value All for the ModernGroupLocation parame…-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.-DeletedResourcesThe DeletedResources parameter specifies the deleted mailbox or mail user to add as an exclusion to the respective location list.-EnabledThe Enabled parameter enables or disables the policy.-ForceThe Force switch hides warning or confirmation messages.-PolicyRBACScopesThe PolicyRBACScopes parameter specifies the administrative units to assign to the policy.-RemoveAdaptiveScopeLocationThe RemoveAdaptiveScopeLocation parameter specifies the adaptive scope location to remove from the policy.-RemoveExchangeLocationThe RemoveExchangeLocation parameter specifies the mailboxes to remove from the list of included mailboxes when you aren't using the value All for the ExchangeLocation parameter.-RemoveExchangeLocationExceptionThe RemoveExchangeLocationException parameter specifies the mailboxes to remove from the list of excluded mailboxes when you use the value All for the ExchangeLocation parameter.-RemoveModernGroupLocationThe RemoveModernGroupLocation parameter specifies the Microsoft 365 Groups to remove from the list of included groups when you aren't using the value All for the ModernGroupLocation parameter.-RemoveModernGroupLocationExceptionThe RemoveModernGroupLocationException parameter specifies the Microsoft 365 Groups to remove from the list of excluded groups when you're using the value All for the ModernGroupLocation parameter.-RestrictiveRetentionThe RestrictiveRetention parameter specifies whether Preservation Lock is enabled for the policy.-WhatIf, -wiThe WhatIf switch doesn't work in Security & Compliance PowerShell.