How to apply retention policies to Exchange Online mailboxes?
+
After creating a custom retention policy with retention tags, you can set up an archive and deletion policy for mailboxes. If the policy includes tags to move emails into an archive, enabling the archive mailbox in advance is recommended. Follow these steps to enable archive mailboxes and set retention policy to Microsoft 365 mailboxes.
- In the Exchange admin center, head to Recipients»Mailboxes» respective mailbox»Others.
- Select the Manage mailbox archive option and enable the Mailbox archive status toggle.
- Enter a name for the archive mailbox and click Save. If no name is provided, it will be set to 'In-Place Archive - <UserDisplayName>'.
You can also use PowerShell to enable archive for a mailbox with the following cmdlet.
Enable-Mailbox -Identity "<Mailbox UPN>" -Archive
- Navigate to Recipients»Mailboxes» respective mailbox»Mailbox» Manage mailbox policies in the Exchange admin center.
- Choose the retention policy you’ve created from the Retention Policy drop-down and click Save.
To apply a retention policy to multiple or all mailboxes, select them, choose the Mailbox Policies option from the top, and pick the desired policy. Also, if you want to apply the new retention policy instead of the default one for future mailboxes, use the following command:
$DefaultPlan = Get-MailboxPlan | Where-Object { $_.IsDefault -eq $true }
Set-MailboxPlan -Identity $DefaultPlan.DisplayName -RetentionPolicy "<New Retention Policy>"