Forum Discussion

thorrr7's avatar
thorrr7
Copper Contributor
Nov 29, 2021
Solved

Exchange 2016 ComplianceSearch not work

hi everyone,   I want to soft delete all email contents in multi mailboxes in bulk.  New-ComplianceSearchAction cmdlet seems could achieve it, but it just could delete 10 messages one time.. i...
  • VasilMichev's avatar
    VasilMichev
    Dec 01, 2021
    If you have single-item recovery enabled, they won't be permanently deleted. Same if the mailbox is on hold. And you can always use the other switched to make a copy of the deleted content. Bets having to run the same thing 100x times, at least in my book 🙂

    As to why you're not getting any results, I'm not sure. Try adding some generic query instead, although it *should* include the whole content of the mailbox when no keywords are provided...