Share via


How to apply a retention policy to a TASKS folder?

Question

Wednesday, May 3, 2017 12:57 PM

About this issue was a whole blog: https://blogs.technet.microsoft.com/exchange/2013/05/20/using-exchange-web-services-to-apply-a-personal-tag-to-a-custom-folder/

And in Exchange 2016 how do it? I read the article: https://technet.microsoft.com/en-us/library/dd297955(v=exchg.160).aspx

I created a retention policy tag. Included it in the policy that is applied to a mailbox. But how can I specify that the policy does not touch the folder tasks? I can do this for different folders. When you click on the folder button appears on the Ribbon of the policy. And there is a tab in folder options policy. OWA can assign policies.

But as soon as I turn in Tasks folder, all of these features are lost. I don't see buttons policy. And in the folder properties also no policy tab. OWA cannot do anything.

Not found an answer in Internet. Can anyone knows how to do it?

All replies (2)

Thursday, May 4, 2017 9:07 AM âś…Answered

Hi,

Refer to this document about Default folders that support Retention Policy Tags.

https://technet.microsoft.com/en-us/library/dn783294(v=exchg.150).aspx

To create an RPT for the Tasks folder, you have to use the Exchange Management Shell. For more information, see New-RetentionPolicyTag

Command like this:

New-RetentionPolicyTag -Type tasks -Name Tasks -RetentionAction DeleteAndAllowRecovery   -RetentionEnabled $false -AgeLimitForRetention 180

Then you will see this retention tag in EAC. Add this tag to retention policy and assign this policy to user mailbox. 

Note: In Exchange 2013/2016 and Exchange Online, a DPT also applies to the Calendar and Tasks default folders.

Best Regards,

Lynn-Li
TechNet Community Support

Please remember to mark the replies as answers.
If you have feedback for TechNet Subscriber Support, contact [email protected].


Wednesday, May 3, 2017 6:42 PM

You cannot apply a tag to the Tasks folders via Outlook or OWA. You will have to use some EWS based script, such as the one here: https://blogs.msdn.microsoft.com/akashb/2011/08/10/stamping-retention-policy-tag-using-ews-managed-api-1-1-from-powershellexchange-2010/