Solved

Exchange 2010 PST export & delete by date range

Posted on 2011-03-02
5
1,990 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
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Local Continuous Replication is a cost effective and quick way of backing up Exchange server data. The following article describes the steps required to configure Local Continuous Replication. Also, the article tells you how to restore from a backup…
This article explains in simple steps how to renew expiring Exchange Server Internal Transport Certificate.
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
how to add IIS SMTP to handle application/Scanner relays into office 365.

911 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

23 Experts available now in Live!

Get 1:1 Help Now