Recover deleted emails with powershell

And the tip of the day!

How to restore deleted items from users deletions-folder before it get’s Purged.

First see what format are you using for date:


And then use this one-liner (Finnish format for date included :))  for search and dump the items to a restore mailbox:

Search-Mailbox -identity sourcemailboxname -SearchQuery {Received:1. kesäkuuta 2015..23. kesäkuuta 2015}
 -SearchDumpsterOnly -TargetMailbox targetmailboxname -TargetFolder recoverDumpster 

Easy as that.
Author: Harri Jaakkonen

Leave a Reply

Your email address will not be published. Required fields are marked *