Jump to content
EduGeek EdSec 2026 is Go! 27th Oct in Derby! Join us for a day of EdTech security focused talks, networking, and an evening social ×

Recommended Posts

Posted (edited)

Hi,

 

I am trying to apply a retention tag to delete items from the deleted times older than 365 days old. I have made the tag and applied it to a policy. It doesn't apply for some reason. Some personal tags applied in the same policy work. Running Start-ManagedFolderAssistant –Identity doesn't help.

 

Any thoughts please?

 

Thanks

Edited by FN-GM
Posted

Just come to look at this it has now kicked it. But the tag wont instantly delete messages from 2011. It wants the tag to be on for the full 365 days before doing anything.

 

Is there a way to for the delete of items over 365 days?

 

Thanks

Posted

I can't remember your setup for RPT. The calculation is important for you to understand -

 

 

 

A user receives a message in the Inbox folder on 01/26/2011. The Inbox folder has a retention tag configured to delete items in 365 days.

1. The Managed Folder Assistant processes the message. It stamps the message with a start date of 01/26/2011 and an expiration date of 01/26/2012.

 

2. The user soft-deletes the item on 02/27/2011.The item is moved to the Deleted Items folder, which has a retention tag configured to delete the item in 30 days.

 

3. The Managed Folder Assistant processes the message. It recalculates the expiration date based on the start date (01/26/2011).

 

4. Because the item is older than 30 days, it is deleted immediately.

 

 

• A user receives an item in the Inbox folder on 01/26/2011.The Inbox folder doesn't have a retention tag applied, and the retention policy doesn't contain a default policy tag.

1. The user soft-deletes the item on 02/27/2011.The item is moved to the Deleted Items folder, which has a retention tag configured to delete items in 30 days.

 

2. The Managed Folder Assistant processes the mailbox on 03/27/2011 and determines the item doesn't have a start date. It stamps the current date as the start date, and 04/27/2011 as the expiration date.

 

3. The item is deleted on 04/27/2011, which is 30 days after it was deleted or moved to the Deleted Items folder.

Posted
I get that, the stuff already in there will take 365 days for it to go. Basically to run the cycle. But i am wondering is there something i can do in powershell to cleanup all the deleted items older than 365 days now? To get things going basically.
Posted

Basically, what you have seen is by design. The MFA will only run as the tags have already been set on the messages. There isn't anything from the Exchange side that you can do.

 

Sorry :-(

Posted (edited)
Other alternative is to use EWS code in PS to access the mailboxes/deleted items and delete. This does need some thinking and coding in PS and access via EWS. Edited by sukh

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...