Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2016-08-24
4
Medium Priority
?
53 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 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

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

Question has a verified solution.

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

Steps to fix “Unable to mount database. (hr=0x80004005, ec=1108)”.
There can be many situations demanding the conversion of Outlook OST files to PST format and as such, there is no shortage of automated tools to perform this conversion. However, what makes Stellar OST to PST converter stand above the rest? Let us e…
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
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
Suggested Courses
Course of the Month11 days, 13 hours left to enroll

916 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