Link to home
Start Free TrialLog in
Avatar of BBQSTEAK
BBQSTEAK

asked on

Exchange 2010 PST export & delete by date range

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
ASKER CERTIFIED SOLUTION
Avatar of Akhater
Akhater
Flag of Lebanon image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of BBQSTEAK
BBQSTEAK

ASKER

hmmm, maybe some way to do it with a multi-line script using some logic..  weird..
i am sorry i didn't get what you mean
Just thinking there must be a way to script this,, I can't believe we LOSE features.. sigh..

thanks akhater!
Does this -DeleteContent switch also work for specific date ranges? I cannot seem to figure this out....