Export Mailboxes on "litigation hold" by date range

  1. Command to export mailbox to .pst from March 1st 2012 to Today
  2. How can the items in the mailbox "dumpster" be viewed once exported to .pst  
Who is Participating?
albeloConnect With a Mentor Commented:
This is the command I'd run on Exchange 2010

New-MailboxExportRequest -ContentFilter {(Received -lt '11/04/2016') -and (Received -gt '03/01/2013')} -Mailbox <MailboxOrMailUserIdParameter> -name jobname -FilePath \\server\share\mailbox.pst

You will need to create a file share that the mailbox can be restarted to.  It doesn't work when trying to use local drives.

Once PST has been created, when you open it, you will see a Recoverable Items folder that will have items from the Dumpster.
Scott CSenior Systems EnginerCommented:
What you are looking for is New-MailboxExportRequest

I'm not sure if you can put a date range in this command or not.

Here is how to export the recoverable items to a .PST.  http://www.itprocentral.com/how-to-export-recoverable-deleted-items-and-purges-folders-to-a-pst/
get-ADuser -F ($_.Name -eq "Todd")I.T. ManagerCommented:

Doesn't the share also need security set to full access for "Exchange Trusted Subsystem"?
PROACTIVETGAuthor Commented:
Spot on. thanks

The FilePath parameter specifies the network share path of the .pst file to which data is exported, for example, \\SERVER01\PST Files\exported.pst.

You need to grant the following permission to the group Exchange Trusted Subsystem to the network share where you want to export or import PST files:

To import PST files from the share: Read permission

To save exported PST files to the share: Read/Write permission.

If you don't grant this permission, you will receive an error message stating that Exchange is unable to establish a connection to the PST file on the network share.

Also, I got my dates mixed up.

Should be:

New-MailboxExportRequest -ContentFilter {(Received -lt '03/01/2013') -and (Received -gt '11/04/2016')} -Mailbox <MailboxOrMailUserIdParameter> -name jobname -FilePath \\server\share\mailbox.pst
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.