Solved

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

Posted on 2016-08-24
4
23 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
  • 2
4 Comments
 
LVL 36

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 36

Expert Comment

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

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
This article will help you understand what HashTables are and how to use them in PowerShell.
In this video we show how to create an Accepted Domain 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 >> Ac…
The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager

707 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now