Does anybody know why this command is not recognized in Exchange 2010 SP1:
Search-Mailbox -Identity "April Stewart" -SearchQuery 'Subject:"Your bank statement"' -DeleteContent
Does anybody know why this command is not recognized in Exchange 2010 SP1:
Search-Mailbox -Identity "April Stewart" -SearchQuery 'Subject:"Your bank statement"' -DeleteContent
I used the following to fix the problem: http://www.techieshelp.com/delete-mail-from-multiple-mailboxes/
Create "Mailbox Import-Export Management" role group and grant yourself as a member. Rerun Search commands and it will work.
To create the role group we need to run the following: New-RoleGroup "Mailbox Import-Export Management" -Roles "Mailbox Import Export"
Adding a user can be done by running the following: Add-RoleGroupMember "Mailbox Import-Export Management" -Member