Posts Tagged ‘retention’

Hi folks,

with Exchange 2013 ManagedFolders are no longer supported. This feature has been replaced by RetentionTags and RetentionPolicies.
The central management of custom folders is made more diffcult. The local user can apply the RetentionPolicies manual. A workarround for centralized management is the use of Exchange Web Services.

foreach ($rtTagin$getRTResp.RetentionPolicyTags) {
if ($rtTag.DisplayName-eq”1 Month Delete”)
$NewFolder.DisplayName=”My New Folder12345″

This is an example how to create a new folder and set the RetentionPolicyTag on that folder to a UserRetentionPolicyTag called “1 Month Delete”.

(Source: MSDN Blog)



In Exchange’s default the retention time for a deleted mailbox is set to 30 days. If you have to force purging a mailbox you have to set retention time to 0 days.

Set retention to 0 days:

Set-MailboxDatabase -Identity “MBX-DB001” -MailboxRetention 00.00:00:00

Cleanup Mailbox Database:

Clean-MailboxDatabase -identity “MBX-DB001

Set retention back to 30 days:

Set-MailboxDatabase -Identity “MBX-DB001” -MailboxRetention 30.00:00:00

Make sure to change the mailbox databases name to your environment.