Link to home
Start Free TrialLog in
Avatar of Joost Kuin
Joost KuinFlag for Netherlands

asked on

How to remove old mail from public folders on exchange 2010 in powershell

I need to remove messages from (sub)folders that reside below a public folder. The difficulty is that I need to be able to specify the maximum message age per individual subfolder.

User generated image
In the example (see screenshot) I need to remove the messages in the subfolders below "anno84".
Messages in the subfolder "Backoffice" should be removed after 50 days.
Messages in the subfolder "Callback" should be removed after 100 days.

I imagine that I'm looking for a powershell command/script that I would schedule daily to perform this task.
ASKER CERTIFIED SOLUTION
Avatar of Jian An Lim
Jian An Lim
Flag of Australia 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
SOLUTION
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
Avatar of Joost Kuin

ASKER

Hi guys,
Thanx for your suggestions. I will test them as soon as i have access to the test environment, later this week. I'll respond as soon as i can.
Cheers,
Joost
provided sufficient information