Solved

using cmdlet to delete mails between dates

Posted on 2015-02-08
1
18 Views
Last Modified: 2015-02-18
We are on Exchange 2007 SP2.

I need to delete mails between 01-01-2013 to 31-12-2013 on a certain mailbox and to be on the safe side i want to move these deleted items to a pst file.

Please advise me on how to achieve this.

Thank You & Kind Regards

Philip
0
Comment
Question by:psunith
1 Comment
 
LVL 3

Accepted Solution

by:
Rezwan Islam earned 500 total points
Comment Utility
Export-Mailbox -Identity <MailboxIdParameter> -StartDate "<Month/Day/Year>" -EndDate "<Month/Day/Year>" -PSTFolderPath <Path_Of_PST_Folder>\<File_Name>.pst -DeleteContent


https://technet.microsoft.com/en-au/library/bb266964(v=exchg.80).aspx
0

Featured Post

Promote certifications in your email signature

Has your company recently won an award or achieved a certification? They'll no doubt want to show it off. Email signature images used to promote certifications & awards can instantly establish credibility with a recipient and provide you with numerous benefits.

Join & Write a Comment

This process describes the steps required to Import and Export data from and to .pst files using Exchange 2010. We can use these steps to export data from a user to a .pst file, import data back to the same or a different user, or even import data t…
Scam emails are a huge burden for many businesses. Spotting one is not always easy. Follow our tips to identify if an email you receive is a scam.
In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…
This video discusses moving either the default database or any database to a new volume.

728 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

9 Experts available now in Live!

Get 1:1 Help Now