Modify archive policies in Exchange Online

In Exchange Online, you can use archive policies to automatically move mailbox items to personal (on-premises) or cloud-based archives. Archive policies are retention tags that use the Move to Archive retention action.

Exchange Setup creates a retention policy called Default MRM Policy. This policy has a default policy tag (DPT) assigned that moves items to the archive mailbox after two years. The policy also includes a number of personal tags that users can apply to folders or mailbox items to automatically move or delete messages. If a mailbox doesn't have a retention policy assigned when it's archive-enabled, the Default MRM Policy is automatically applied to it by Exchange. You can also create your own archive and retention policies and apply them to mailbox users. To learn more, see Retention tags and retention policies.

You can modify retention tags included in the default policy to meet your business requirements. For example, you can modify the archive DPT to move items to the archive after three years instead of two. You can also create additional personal tags and either add them to a retention policy, including the Default MRM Policy, or allow users to add personal tags to their mailboxes from Outlook on the web (formerly known as Outlook Web App) Options.

For additional management tasks related to archives, see Enable archive mailboxes in the Microsoft Purview compliance portal.

Note

In an Exchange hybrid deployment, you can enable a cloud-based archive mailbox for an on-premises primary mailbox. If you assign an archive policy to an on-premises mailbox, items are moved to the cloud-based archive. If an item is moved to the archive mailbox, a copy of it isn't retained in the on-premises mailbox. If the on-premises mailbox is placed on hold, an archive policy will still move items to the cloud-based archive mailbox where they are preserved for the duration specified by the hold.

What do you need to know before you begin?

Tip

Having problems? Ask for help in the Exchange forums. Visit the forums at Exchange Online or Exchange Online Protection.

Use the classic EAC to modify the default archive policy

  1. Navigate to Compliance management > Retention tags.

  2. In the list view, select the tag Default 2 year move to archive and then click Edit Edit icon..

    Tip

    You can click the TYPE column to sort retention tags by type. The default archive policy is displayed as type Default and has the Archive retention action. Alternatively, click NAME to sort retention tags by name.

  3. In Retention Tag, view or modify the following settings, and then click Save:

    • Name: Use this box at the top of the page to view or change the tag name.

    • Retention tag type: This read-only field displays the tag type.

    • Retention action: Don't modify this field for archive policies.

    • Retention period: Select one of the following options:

    • Never: Click this button to disable the tag. If the DPT is disabled, the tag is no longer applied to the mailbox.

      Important

      • Items that have a disabled retention tag applied aren't processed by the Mailbox Assistant. If you want to prevent a tag from being applied to items, we recommend disabling the tag rather than deleting it. When you delete a tag, the tag configuration is deleted from Active Directory, and the Mailbox Assistant processes all messages to remove the deleted tag.

      • If a user applies a tag to an item believing the item will never be moved, enabling the tag later may move items the user wanted to retain in the primary mailbox.

    • When the item reaches the following age (in days): Click this button to specify that items be moved to archive after a certain period. By default, this setting is configured to move items to the archive after two years (730 days). To modify this setting, in the corresponding text box, type the number of days in the retention period. The range of values is from 1 through 24,855 days.

    • Comment: Use this box to type a comment that will be displayed to Outlook and Outlook on the web users.

Use Exchange Online PowerShell to modify archive policies

This example modifies the Default 2 year move to archive tag to move items after 1,095 days (3 years).

Set-RetentionPolicyTag "Default 2 year move to archive" -Name "Default 3 year move to archive" -AgeLimitForRetention 1095

This example disables the Default 2 year move to archive tag.

Set-RetentionPolicyTag "Default 2 year move to archive" -RetentionEnabled $false

This example retrieves all archive DPTs and personal tags and disables them.

Get-RetentionPolicyTag | ? {$_.RetentionAction -eq "MoveToArchive"} | Set-RetentionPolicyTag -RetentionEnabled $false

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

How do you know this worked?

Use the Get-RetentionPolicyTag cmdlet to retrieve settings of the retention tag.

This command retrieves properties of the Default 2 year move to archive retention tag and pipes the output to the Format-List cmdlet to display all properties in a list format.

Get-RetentionPolicyTag "Default 2 year move to archive" | Format-List