Solved

Exchange 2010 PST export & delete by date range

Posted on 2011-03-02
5
2,068 Views
Last Modified: 2012-06-27
Hello,

I need to export by date range then delete from mailbox.  In 2007 we used to just add the -deletecontent at the end.  That no longer exists.  This is the export command we use:

New-MailboxExportRequest -mailbox MyMailbox -filepath "\\v1ussrvfs01\ArchiveEmail\2011_test.pst" -contentfilter {(received -lt '02/01/2011') -and (received -gt '01/01/2011')}

How do I get exchange to export and delete by data range?

thanks
0
Comment
Question by:BBQSTEAK
[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
  • 2
5 Comments
 
LVL 49

Accepted Solution

by:
Akhater earned 500 total points
ID: 35019463
Bad news you cannot ! what you can do is issue after the export a Search-Mailbox cmdlet with the “-DeleteContent” parameter. See http://technet.microsoft.com/en-us/library/dd298173.aspx
0
 
LVL 1

Author Comment

by:BBQSTEAK
ID: 35020720
hmmm, maybe some way to do it with a multi-line script using some logic..  weird..
0
 
LVL 49

Expert Comment

by:Akhater
ID: 35021555
i am sorry i didn't get what you mean
0
 
LVL 1

Author Comment

by:BBQSTEAK
ID: 35022453
Just thinking there must be a way to script this,, I can't believe we LOSE features.. sigh..

thanks akhater!
0
 

Expert Comment

by:wilsonkjit
ID: 38017643
Does this -DeleteContent switch also work for specific date ranges? I cannot seem to figure this out....
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

If you troubleshoot Outlook for clients, you may want to know a bit more about the OST file before doing your next job. IMAP can cause a lot of drama if removed in the accounts without backing up.
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.
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…
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

630 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