Forum Discussion
Exchange Online, Retention Policies. For Mailboxes.
The correct way to change the default retention policy in ExO is via the mailbox plans.
Get-MailboxPlan | Set-MailboxPlan -RetentionPolicy "New MRM policy"
This simple example will set it on all plans, but you can configure it on specific ones if needed. Remember that mailbox plans apply to newly created mailboxes only, so for any already existing ones you still have to apply the retention policy via the EAC or via Set-Mailbox.
- AndrewWarlandJul 11, 2018Steel Contributor
Thanks Vasil, you are always very helpful.
- Robert BollingerJul 11, 2018Iron Contributor
actually it looks like i may have found my answer. https://practical365.com/exchange-online/controlling-exchange-online-mailbox-features-mailbox-plans/
there is also a get/set cas-mailboxplan as well.
Robert
- Robert BollingerJul 11, 2018Iron Contributor
Thanks. I was not familiar with that command. Is the Get/Set mailbox plan used by tenant admins frequently? I thought it was specific to hosting only solutions (not office 365).
Looking through the Set commands it looks like basically all of the options available to set-mailbox are also available to set-mailboxplan.
When would you modify a mailbox plan ? vs. just modifying an existing mailbox with set-mailbox? Trying to understand when to use one command vs the other.
Thanks,
Robert