Solved

Exchange 2010 PST export & delete by date range

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

Don't lose your head updating email signatures!

Do your end users still have the wrong email signature? Do email signature updates bore you or fill you with a sense of dread? You can make this a whole lot easier on yourself by trusting an Exclaimer email signature management solution. Over 50 million users do...so should you!

Join & Write a Comment

Suggested Solutions

Easy CSR creation in Exchange 2007,2010 and 2013
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
In this video we show how to create a Shared Mailbox 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 Recipients >> Sha…
In this video we show how to create a Contact 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 Recipients >> Contact ta…

762 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

17 Experts available now in Live!

Get 1:1 Help Now