4

I'm trying to Export one of our Mailboxes into a .PST file and having problems finding the right cmdlets. We are trying to export the past 30 days of a users mailbox, both Received and Sent into one .PST File

This is what I've tried so far, but without any luck.

New-MailboxExportRequest -ContentFilter {(Received -lt ’04/01/2010′) -and (Received -ge ’03/01/2010′) -or (Sent -lt ’04/01/2010′) -and (Sent -ge ’03/01/2010′)} -Mailbox “Pelton” -Name DPeltonExp -FilePath \\ExServer1\Imports\DPelton.pst

Please advised as what I'm doing wrong.

3 Answers 3

4

You need a few parentheses to make the ContentFilter logic stick. Try this:

{((Received -lt ’04/01/2010′) -and (Received -ge ’03/01/2010′)) -or ((Sent -lt ’04/01/2010′) -and (Sent -ge ’03/01/2010′))}

Edit: I think actually you should use double quotes for the dates in stead of single quotes. It might not matter, but if the above doesn't work, try substituting the single quotes with doubles

0

While Exporting Data (Send and Receive ) Folder into PST Format. All the data stored in Single File format (PST) and When you try to open the PST File via importing option of Outlook then it will maintain a folder hierarchy and to move data into pst format first you need to create and share folder, to save the desired data into it.

To know, how to create the shared folder, visit here, then you need to run Powershell query:

New-MailboxExportRequest -Mailbox -ContentFilter {(Received -lt '01/01/2015') -and (Subject -like 'fwd*')} -FilePath \\\.pst

0

You can run Get-MailboxExportRequest command to get the exports status:

Get-MailboxExportRequest | Get-MailboxExportRequestStatistics

1
  • welcome to the site Dec 22, 2020 at 9:14

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .