Link to home
Start Free TrialLog in
Avatar of ExpertAssist
ExpertAssistFlag for United States of America

asked on

Managed Folder Assistant not running on schedule

Our e-mail server is Exchange 2007.  I have configured the Deleted Items to delete every 3 days via the New Managed Default Folders.  I configured the Message type for "All Mailbox Content", Length of retention period is set to 3, Retention period starts when item is moved to the folder.  The action to be taken is to Permanently Delete.

Next, I created a Managed Folder Mailbox Policy named Mailbox Delete Policy and added the Deleted Items folder to the policy.

After creating the Managed Folder Mailbox Policy, I went to Server Configuration--Selected Mailbox--Selected the properties of the Mailbox server and set a custom schedule  from 6--8 pm.

The scheduled task never seems to run.  I checked by going to the Deleted Items in Outlook and adding a column for modify date to verify that the e-mails modified datestamp was older than 3 days.  

I ran the process manually by using Start--ManagedFolderAssistant -Mailbox 'mailbox name'.  The process ran manually on one mailbox.  I also tried running the process on multiple mailboxes by using Start-ManagedFolderAssistant.  The process did not run on the mailboxes that I reviewed to determine if the process worked.
Avatar of gemarti
gemarti
Flag of United States of America image

... I also tried running the process on multiple mailboxes by using Start-ManagedFolderAssistant.  The process did not run on the mailboxes that I reviewed to determine if the process worked.  ...


I think you want to run the following command to process all mailboxes for a specific Department Name:

Get-User -Filter {department -eq "DepartmentName" -and RecipientType -eq "UserMailbox"} | Get-Mailbox | Start-ManagedFolderAssistant
Or just...

Get-Mailbox | Start-ManagedFolderAssistant

This cmdlet will run on multiple mailboxes

Avatar of ExpertAssist

ASKER

In my case, I wanted to process all mailboxes.  Can I use Start-ManagedFolderAssistant to process all?
I am starting to wonder if the process is working now.  I just checked several mailboxes and it appears that the e-mails have been deleted.  I may need to check back in with an update on Monday.  I'm not sure if the manual process that I ran worked and the scheduled task is still not working.  On Monday, I should be able to see if the scheduled process is now running.  I will need to update you then.
Pretty sure you have to use:

Get-Mailbox | Start-ManagedFolderAssistant

for all mailboxes. Start-ManagedFolderAssistant only runs on one mailbox manually
Ok, I will give that a try if the schedule doesn't work by Monday.  I'm curious if the scheduled task is actually working now.  Update on Monday.
The Managed Folder Assistant is not working.  I noticed this morning that the modify dates are changed in the deleted items folder.  It appears that everytime the Managed Folder Assistant runs, it is changing the modify date.  At 4:11 each day, the modify date is changed to the current date.  The Managed Folder Assistant is running at that time.  So in other words, the modify date on items from April 21 is changed to April 22, the items on April 22nd are changed to April 23 etc.  Items from the 22nd should be deleted, but they aren't.  Items from the 23rd should be deleted around 4:11 today.  Should the modify date be changing when the Managed Folder Assistant scans the Deleted Items?
...Should the modify date be changing when the Managed Folder Assistant scans the Deleted Items?...

I would think that the assistant needs to somehow mark the folder and its contents with a "bit" that indicates the contents were scanned; if this is so then yes the date modified does change. I know that this is how backup applications such as Backup exec operate.

ASKER CERTIFIED SOLUTION
Avatar of gemarti
gemarti
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
At this time, I am only using the schedule to run the ManagedFolderAssistant.  I wanted to determine if the automatic process is running.  I don't want to keep dragging this out, but I need to wait until tonight to see the results.  Since I only deleted messages from last week on Monday, I don't think they have processed yet.  If I knew that I could set the schedule for earlier today without affecting the performance of the server during the middle of day, I would.  I will check in tomorrow.  Thank you gemarti.  You have been very helpful so far.
Thank you gemarti.  The information you provided was very helpful in troubleshooting the issue.  I graded the solution as a B, because I am not sure what fixed the issue.  The process just started working.  The grade certainly isn't a reflection of the help I received from you.  Your information deserves an A.   Thanks again gemarti.

Although the issue seems to have resolved itself, I am adding this question to the Knowledge Base, because there is some very useful information in the discussion.