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

x
?
Solved

using cmdlet to delete mails between dates

Posted on 2015-02-08
1
Medium Priority
?
25 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 2000 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

The core idea of this article is to make you acquainted with the best way in which you can export Exchange mailbox to PST format.
This month, Experts Exchange sat down with resident SQL expert, Jim Horn, for an in-depth look into the makings of a successful career in SQL.
In this video we show how to create an email address policy 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…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Suggested Courses

926 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