January 11, 2013

Exchange 2010 - Retention Policies

How to change Retention Policy that is assigned to mailbox?

$OldPolicy={Get-RetentionPolicy "Old-Retention-Policy"}.distinguishedName | Get-Mailbox -Filter {RetentionPolicy -eq $OldPolicy} -Resultsize Unlimited | Set-Mailbox -RetentionPolicy "New-Retention-Policy"

This command finds mailboxes with "Old-Retention-Policy" and changes it to "New-Retention-Policy". 


How to set Retention Policy for all members of selected distribution list?

Get-DistributionGroupMember -Identity "Name_Of_DL" | Set-Mailbox -RetentionPolicy "Name_Of_RP"

No comments:

Post a Comment