Solved

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

Posted on 2016-08-24
4
36 Views
Last Modified: 2016-09-16
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.

public subfolder example
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.
0
Comment
Question by:Joost Kuin
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 37

Accepted Solution

by:
Jian An Lim earned 250 total points (awarded by participants)
ID: 41769718
0
 
LVL 11

Assisted Solution

by:Tej Pratap Shukla ~Dexter
Tej Pratap Shukla ~Dexter earned 250 total points (awarded by participants)
ID: 41771395
Hi,
For removing an Old email from Exchange server you have to run some command on PowerShell or Exchange Management Shell. But before going for deletion you have first assign the permission, then you have to assign the role to the user. Then you can search for a specific email and you can delete that email.
Go through this link: http://exchange-server-guide.blogspot.com/2016/08/delete-specific-email-exchange-2013-entire-organization.html
0
 
LVL 1

Author Comment

by:Joost Kuin
ID: 41773899
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
0
 
LVL 37

Expert Comment

by:Jian An Lim
ID: 41801192
provided sufficient information
0

Featured Post

Office 365 Training for Admins - 7 Day Trial

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VB script for outlook to copy mail to OneNote 2 42
Start-Process Output 3 24
Transfer Outlook 2013 Autofill data 6 21
Writing reports to a script 7 33
A project that enables an administrator to perform actions within a user session context not just at the time of login but any time later on day(s) or week(s) later.
A recent project that involved parsing Tableau Desktop and Server log files to extract reusable user queries for use in other systems. I chose to use PowerShell to gather the data, and SharePoint to present it...
In this video we show how to create a mailbox database in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Servers >> Data…
To show how to create a transport rule in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Mail Flow >> Rules tab.:  To cr…

752 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