New-MailboxExportRequest By Date Range

2.4k Views Asked by At

I am trying to export items out of a mailbox, sent and received between a certain date on Exchange 2016. However the script keeps failing without an error message. Not sure where I am going wrong....

New-MailboxExportRequest -Mailbox "User" -ContentFilter "(Received -lt '02/11/2021') -and (Received -gt '02/15/2021')" -Name User  -FilePath \\server\PSTExport\user.pst

Current Script above.

Require both sent and received, which I presume would be changing the received to sent but the date range still doesn't work. Already aware that it seems to hate UK dates.

Any help would be greatly appreciated.

0

There are 0 best solutions below