Get-Mailbox -ResultSize unlimited | Set-Mailbox -RetentionPolicy "RetentionPolicy-Corp" This example applies the retention policy RetentionPolicy-Corp to all mailboxes in the Exchange organization. Get-Mailbox -Filter "RetentionPolicy -eq '$OldPolicy'" -Resultsize Unlimited | Set-Mailbox -RetentionPolicy "New-Retention-Policy" $OldPolicy=(Get-RetentionPolicy "Old-Retention-Policy").distinguishedName This example applies the new retention policy New-Retention-Policy to all mailboxes that have the old policy Old-Retention-Policy. Use Exchange Online PowerShell to apply a retention policy to multiple mailboxes
Set-Mailbox "Morris" -RetentionPolicy "RP-Finance"įor detailed syntax and parameter information, see Set-Mailbox. This example applies the retention policy RP-Finance to Morris's mailbox. Use Exchange Online PowerShell to apply a retention policy to a single mailbox In Bulk Assign Retention Policy, select the retention policy you want to apply to the mailboxes, and then click Save. In the list view, use the Shift or Ctrl keys to select multiple mailboxes. Use the EAC to apply a retention policy to multiple mailboxes In the Retention policy list, select the policy you want to apply to the mailbox, and then click Save. In the list view, select the mailbox to which you want to apply the retention policy, and then click Edit. Use the EAC to apply a retention policy to a single mailbox Visit the forums at Exchange Online or Exchange Online Protection.
Having problems? Ask for help in the Exchange forums.