?
Solved

setting up auto purge of Deleted items folder

Posted on 2010-09-22
8
Medium Priority
?
603 Views
Last Modified: 2012-05-10
I have Exchange 2007 SP1 RU10
I am trying to set up an automatic purge of the Deleted items folder.
I have done all the steps outlined in this document
http://www.exchange-genie.com/2007/11/managed-folder-policies/

But still nothing is occurring. There are no errors in the event log and no documents have been removed from the Deleted items folder. This is beginning to be a problem as we have been using Exchange for almost a year and deleted items folders are getting huge. (I did not want to overburden the server so I started my retention time to 250 days with the intention to slowly bring it down to the desired 30 days)

Does anyone have an idea as to what my problem is or a setting I can increase the logging so I can see some errors?
0
Comment
Question by:swfwmd2
  • 5
  • 3
8 Comments
 
LVL 32

Expert Comment

by:endital1097
ID: 33736859
first create a new managed default folder called "Deleted Items - 250 days"
then create a new managed content setting for that folder called "Purge after 250 days" using all mailbox content, length = 250 days, when delivered, and action = permanently delete
then create a managed folder mailbox policy and add the "Deleted Items - 250 days" folder
assign the policy to mailboxes

go to properties for the mailbox server
enable a schedule for the managed folder assistant
0
 

Author Comment

by:swfwmd2
ID: 33737591
I have done all that except that I selected the action = delete and allow recovery since I want to be able to have users select toos\recover deleted items for another 15 days. This would give me a 45 day, two step process for user mail document retention.

I also did the last step to asign the policy to the user's mail file.

Still get no action
0
 
LVL 32

Expert Comment

by:endital1097
ID: 33737640
did you enable a schedule on the mailbox server
0
Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

 
LVL 32

Expert Comment

by:endital1097
ID: 33737688
post the results from the following (update names where needed
Get-ManagedFolderMailboxPolicy
Get-ManagedContentSettings | where { $_.managedfoldername -eq "Deleted Items - 250 days" } | fl
Get-mailboxserver | fl name,mana*
0
 

Author Comment

by:swfwmd2
ID: 33737956
The shell commands you offered were very helpful. I was able to get some good information on the first and third entry, but not one the second (even after updating the name).

Per your suggestion, I checked the schedule again and I had set it to show 15 min intervals and set it that way and nothing happened. When I changed the setting to an hour and seleted a time, it worked.

Is this normal for it not to run on a 15 min interval?
0
 
LVL 32

Expert Comment

by:endital1097
ID: 33737992
it should be run during non-business hours because it is an intensive process (15 minutes is not enough)
0
 

Author Comment

by:swfwmd2
ID: 33742970
I was running this on only a couple of test mail files to verify the procedure. Sso when it did run successfully it took less than 15 min.

Additional testing has found that the start time is not an issue. The problem is what I select for the field "Retention period starts" in the content settings. If I keep it at the default of "When delivered, end date for calendar and recurring tasks", everything works fine. But when I change it to " When item is moved to the folder" (which is what I want), then nothing occurs. Even when I change the retention period way down to 30 days, there is no action.
So here is my questions -
1. Why can't I select the option for the retention period to start "when item is moved to the folder" to remove emails from the Deleted Items folder?
2. Is there a logging setting I can set to see this purge task start and stop in the Event log? Currently the only way I know it has run is that the count in my deleted items goes down,

Thank you,
0
 
LVL 32

Accepted Solution

by:
endital1097 earned 2000 total points
ID: 33743845
1. best practice is to use "when delivered" it is very difficult to validate a policy that uses "when moved"
2. you can increase logging for the managemnet assistants
0

Featured Post

Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This month, Experts Exchange sat down with resident SQL expert, Jim Horn, for an in-depth look into the makings of a successful career in SQL.
Mailbox Corruption is a nightmare every Exchange DBA wishes he never has. Recovering from it can be super-hectic if not entirely futile. And though techniques like the New-MailboxRepairRequest cmdlet have been designed to help with fixing minor corr…
how to add IIS SMTP to handle application/Scanner relays into office 365.
CodeTwo Sync for iCloud (http://www.codetwo.com/sync-for-icloud?sts=6554) automatically synchronizes your Outlook 2016, 2013, 2010 or 2007 folders with iCloud folders available via iCloud Control Panel. This lets you automatically sync them with…
Suggested Courses
Course of the Month16 days, 1 hour left to enroll

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question