CmdID

CmdID / PowerShell / Cmdlets / Set

Set-RetentionCompliancePolicy

Use the Set-RetentionCompliancePolicy cmdlet to modify existing retention policies in the Microsoft Purview compliance portal. Exchange PowerShell reference

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

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

Parameters

47 in the Exchange PowerShell reference
Show its 47 parameters
-IdentityThe Identity parameter specifies the retention policy that you want to modify.
-RetryDistributionThe RetryDistribution switch specifies whether to redistribute the policy to all Exchange Online and SharePoint 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.
-AddExchangeLocationExceptionThis parameter specifies the mailboxes to add to the list of excluded mailboxes when you use 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…
-AddOneDriveLocationThe AddOneDriveLocation parameter specifies the OneDrive sites to add to the list of included sites when you aren't using the value All for the OneDriveLocation parameter.
-AddOneDriveLocationExceptionThis parameter specifies the OneDrive sites to add to the list of excluded sites when you use the value All for the OneDriveLocation parameter.
-AddPublicFolderLocationThe AddPublicFolderLocation parameter specifies that you want to add all public folders to the retention 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.
-AddSharePointLocationExceptionThis parameter specifies the SharePoint sites to add to the list of excluded sites when you use the value All for the SharePointLocation parameter.
-AddSkypeLocationThe AddSkypeLocation parameter specifies the Skype for Business Online users to add from the list of included Skype for Business Online users.
-AddSkypeLocationExceptionThis parameter is reserved for internal Microsoft use.
-AddTeamsChannelLocationThe AddTeamsChannelLocation parameter specifies the Teams to add to the policy.
-AddTeamsChannelLocationExceptionThe AddTeamsChannelLocationException parameter specifies the Teams to add to the exclusion list when you use the value All for the TeamsChannelLocation parameter.
-AddTeamsChatLocationThe AddTeamsChatLocation parameter specifies the Teams users to add to the policy.
-AddTeamsChatLocationExceptionThe AddTeamsChatLocationException parameter specifies the Teams users to add to the exclusion list when you use the value All for the TeamsChatLocation parameter.
-ApplicationsThe Applications parameter specifies the target when Microsoft 365 Groups are included in the policy (the ModernGroups parameter is set).
-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 Microsoft 365 Group, mailbox, or mail user to be removed or added as an exclusion to the respective location list.
-EnabledThe Enabled parameter specifies whether the policy is enabled.
-EnforceSimulationPolicyThe EnforceSimulationPolicy parameter specifies whether to enforce a simulation policy as an active policy.
-ForceThe Force switch hides warning or confirmation messages.
-PolicyRBACScopesThe PolicyRBACScopes parameter specifies the administrative units to assign to the policy.
-PolicyTemplateInfoThis parameter is reserved for internal Microsoft use.
-PriorityCleanupThe PriorityCleanup switch specifies whether to update a Priority cleanup 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.
-RemoveOneDriveLocationThe RemoveOneDriveLocation parameter specifies the OneDrive sites to remove from the list of included sites when you aren't using the value All for the OneDriveLocation parameter.
-RemoveOneDriveLocationExceptionThis parameter specifies the OneDrive sites to remove from the list of excluded sites when you use the value All for the OneDriveLocation parameter.
-RemovePublicFolderLocationThe RemovePublicFolderLocation parameter specifies that you want to remove all public folders from the retention 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.
-RemoveSharePointLocationExceptionThis parameter specifies the SharePoint sites to remove from the list of excluded sites when you use the value All for the SharePointLocation parameter.
-RemoveSkypeLocationThe RemoveSkypeLocation parameter specifies the Skype for Business Online users to remove from the list of included Skype for Business Online users.
-RemoveSkypeLocationExceptionThis parameter is reserved for internal Microsoft use.
-RestrictiveRetentionThe RestrictiveRetention parameter specifies whether Preservation Lock is enabled for a retention policy or retention label policy.
-RemoveTeamsChannelLocationThe RemoveTeamsChannelLocation parameter specifies the Teams to remove from the policy.
-RemoveTeamsChannelLocationExceptionThe RemoveTeamsChannelLocationException parameter specifies the Teams to remove from the exclusion list when you use the value All for the TeamsChannelLocation parameter.
-RemoveTeamsChatLocationThe RemoveTeamsChatLocation parameter specifies the Teams users to remove from the policy.
-RemoveTeamsChatLocationExceptionThe RemoveTeamsChatLocationException parameter specifies the Teams users to remove from the exclusion list when you use the value All for the TeamsChatLocation parameter.
-StartSimulationThe StartSimulation parameter specifies whether to start the simulation for a policy that was created in simulation mode.
-WhatIf, -wiThe WhatIf switch doesn't work in Security & Compliance PowerShell.