Forum Discussion
thorrr7
Nov 29, 2021Copper Contributor
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...
- Dec 01, 2021If 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...
VasilMichev
Nov 30, 2021MVP
Why don't you just use good old Search-Mailbox?
thorrr7
Nov 30, 2021Copper Contributor
VasilMichev hi Vasil, because i dont want to hard delete message, in case someone needs recover messages..
- VasilMichevDec 01, 2021MVPIf 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...- thorrr7Dec 02, 2021Copper Contributorsingle-item recovery enbaled works~
i tried add ContentMatchQuery parameter, but result is the same..