Solved

Exchange 2010 PST export & delete by date range

Posted on 2011-03-02
5
2,007 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

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Learn to move / copy / export exchange contacts to iPhone without using any software. Also see the issues in configuration of exchange with iPhone to migrate contacts.
MS Outlook is a world-class email client application that is mainly used for e-communication globally.  In this article, we will discuss the basic idea about MS Outlook, its advanced features, and types of MS Outlook File formats.
To show how to generate a certificate request 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 Servers >> Certificates…
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…

813 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