Quantcast
Channel: Exchange Server 2013 - General Discussion forum
Viewing all articles
Browse latest Browse all 4521

Moving Messages into the Dumpster

$
0
0

We have a user who is on litigation hold. Their mailbox has gotten to the size where it's not functioning well. They are asking that we delete messages by date to get rid of some of the baggage. We need to move those messages into their dumpster for legal retention requirements.

My scripting skills are pretty weak so I came up with a clunky method....move the messages from the user (litholdmailbox) to a shared mailbox (repositorymailbox) and then from the repositorymailbox back into the dumpster of the litholdmailbox. One drawback of this is that I don't know how to specify the litholdmailbox dumpster as a target.

Step 1......

Search-Mailbox -targetmailbox "repositorymailbox" -Identity "litholduser" -SearchQuery {received:"01/07/2018..01/08/2018"} -Verbose -SearchDumpster:$false -TargetFolder "repository" -LogLevel full -deletecontent -Confirm:$false -Force

Step 2.....

Search-Mailbox -targetmailbox "litholduser" -Identity "repositorymailbox" -SearchQuery {received:"01/07/2018..01/08/2018"} -Verbose -SearchDumpster:$false -TargetFolder "<dumpster of the lithold user>" -LogLevel full -deletecontent -Confirm:$false -Force

Is this completely the wrong direction, and if not, can I specify the dumpster as a target?


Viewing all articles
Browse latest Browse all 4521

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>