Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2016-08-24
4
Medium Priority
?
45 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 1000 total points (awarded by participants)
ID: 41769718
0
 
LVL 12

Assisted Solution

by:Tej Pratap Shukla ~Dexter
Tej Pratap Shukla ~Dexter earned 1000 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

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. 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

There are times when we need to generate a report on the inbox rules, where users have set up forwarding externally in their mailbox. In this article, I will be sharing a script I wrote to generate the report in CSV format.
Know the reasons and solutions to move/import EDB to New Exchange Server. Also, find out how to recover an Exchange .edb file and to restore the file back.
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Suggested Courses

730 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