Solved

using cmdlet to delete mails between dates

Posted on 2015-02-08
1
19 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
ID: 40597690
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

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

We are happy to announce a brand new addition to our line of acclaimed email signature management products – CodeTwo Email Signatures for Office 365.
Find out what you should include to make the best professional email signature for your organization.
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…
how to add IIS SMTP to handle application/Scanner relays into office 365.

810 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