Apply a retention policy to mailboxes in Exchange 2016

 

Applies to: Exchange Server 2016

Topic Last Modified: 2016-08-17

Learn how to use the Exchange Management Shell or the Exchange admin center apply a retention policy to mailboxes in Exchange 2016.

You can use retention policies to group one or more retention tags and apply them to mailboxes to enforce message retention settings. A mailbox can't have more than one retention policy.

CautionCaution:
Messages are expired based on settings defined in the retention tags linked to the policy. These settings include actions such moving messages to the archive or permanently deleting them. Before applying a retention policy to one or more mailboxes, we recommended that you test the policy and inspect each retention tag associated with it.

  1. Go to Recipients > Mailboxes.

  2. In the list view, select the mailbox to which you want to apply the retention policy, and then click Edit Edit icon.

  3. In User Mailbox, click Mailbox features.

  4. In the Retention policy list, select the policy you want to apply to the mailbox, and then click Save.

  1. Go to Recipients > Mailboxes.

  2. In the list view, use the Shift or Ctrl keys to select multiple mailboxes.

  3. In the details pane, click More options.

  4. Under Retention Policy, click Update.

  5. In Bulk Assign Retention Policy, select the retention policy you want to apply to the mailboxes, and then click Save.

Return to top

This example applies the retention policy RP-Finance to Morris's mailbox.

Set-Mailbox "Morris" -RetentionPolicy "RP-Finance"

For detailed syntax and parameter information, see Set-Mailbox.

This example applies the new retention policy New-Retention-Policy to all mailboxes that have the old policy Old-Retention-Policy.

$OldPolicy={Get-RetentionPolicy "Old-Retention-Policy"}.distinguishedName
Get-Mailbox -Filter {RetentionPolicy -eq $OldPolicy} -Resultsize Unlimited | Set-Mailbox -RetentionPolicy "New-Retention-Policy"

This example applies the retention policy RetentionPolicy-Corp to all mailboxes in the Exchange organization.

Get-Mailbox -ResultSize unlimited | Set-Mailbox -RetentionPolicy "RetentionPolicy-Corp"

This example applies the retention policy RetentionPolicy-Finance to all mailboxes in the Finance organizational unit.

Get-Mailbox -OrganizationalUnit "Finance" -ResultSize Unlimited | Set-Mailbox -RetentionPolicy "RetentionPolicy-Finance"

For detailed syntax and parameter information, see Get-Mailbox and Set-Mailbox.

Return to top

To verify that you have applied the retention policy, run the Get-Mailbox cmdlet to retrieve the retention policy for the mailbox or mailboxes.

This example retrieves the retention policy for Morris’s mailbox.

Get-Mailbox Morris | Select RetentionPolicy

This command retrieves all mailboxes that have the retention policy RP-Finance applied.

Get-Mailbox -ResultSize unlimited | Where-Object {$_.RetentionPolicy -eq "RP-Finance"} | Format-Table Name,RetentionPolicy -Auto

Return to top

 
Show: