Enable Exchange Online Archive Mailboxes and Archive Policies for all users – part 2

Exchange logo

In part 1, we went over editing the default MRM policy as a quick way to apply an archive and retention policy to all mailboxes. In this part, we will cover starting over with a new policy, and then applying this to all users and the mailbox plan. This is a slightly cleaner way of doing this, and you will end up with a mailbox plan with a clearly defined policy. The benefit is that it is more obvious to support staff how the policy has been applied.

The alternative is to leave the Default MRM Policy (or delete it) and create a new one.

Create a new MRM Policy

1
New-RetentionPolicy "Cloudrun All Users MRM Policy"

Add the retention tags to the new MRM policy

Check your tag names using get-retentionpolicytag and then set in the policy:

1
2
Set-RetentionPolicy "Cloudrun All Users MRM Policy" -RetentionPolicyTagLinks "Junk Email","Deleted It
ems"
,"6 months move to archive"

Note that you have to specify all of the tag links at the same time whenever you do this, the list is not appended to.

Set the MRM Policy on all existing mailboxes

1
get-mailbox | Set-Mailbox -RetentionPolicy "Cloudrun All Users MRM Policy"

Set the MRM Policy in the mailbox plan

1
2
3
4
Get-MailboxPlan -Identity ExchangeOnlineEnterprise* | Set-MailboxPlan -RetentionPolicy "Cloudrun All
Users MRM Policy"


Get-MailboxPlan -Identity ExchangeOnlineEnterprise* | fl *retention* #Check the setting has applied
Posted in Exchange Online

Related Posts

1 Comment

  1. Pingback:Enable Exchange Online Archive Mailboxes and Archive Policies for all users - part 1 - Cloudrun

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: