Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

Retention policy does not work after you run a cmdlet in an Exchange Server 2013 environment


View products that this article applies to.

Symptoms

When you run a cmdlet in Exchange Management Shell to apply a retention policy that moves email messages from a user’s mailbox to the user’s archive mailbox in a Microsoft Exchange Server 2013 environment, the retention policy does not work. For example, you create a retention policy by running one of the following cmdlets:
  • New-RetentionPolicyTag "ArchiveTag" -Type All -RetentionEnabled $true -AgeLimitForRetention 90 -RetentionAction MoveToArchive
  • New-RetentionPolicy PolicyName -RetentionPolicyTagLinks "ArchiveTag"
  • Set-Mailbox Mailbox -RetentionPolicy PolicyName
  • Start-ManagedFolderAssistant -Identity Mailbox

↑ Back to the top


Cause

This issue occurs because a System.InvalidCastException exception occurs when Managed Folder Assistant tries to process mailboxes.

↑ Back to the top


Resolution

To resolve this issue, install the following cumulative update: 
2892464 Description of Cumulative Update 3 for Exchange Server 2013

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

↑ Back to the top


More Information

For more information about the New-RetentionPolicyTag cmdlet, go to the following Microsoft website:For more information about the New-RetentionPolicy cmdlet, go to the following Microsoft website:For more information about the Set-Mailbox cmdlet, go to the following Microsoft website:For more information about the Start-ManagedFolderAssistant cmdlet, go to the following Microsoft website:

↑ Back to the top


Keywords: kbqfe, kbfix, kbsurveynew, kbexpertiseinter, kb

↑ Back to the top

Article Info
Article ID : 2888612
Revision : 1
Created on : 1/7/2017
Published on : 11/25/2013
Exists online : False
Views : 379