Search-Mailbox command not recognized exchange 2010 sp1 powershell
56,558
Solution 1
I used the following to fix the problem: http://www.techieshelp.com/delete-mail-from-multiple-mailboxes/
Solution 2
This problem happens because your account is not a member of the Discovery Management
role. Since your account does not have permission to perform searches, Powershell
does not import the Search-Mailbox
cmdlet.
In ECP
, add the account to this role, then close and restart your Powershell
session.
Author by
RPS
Updated on April 04, 2020Comments
-
RPS about 4 years
Does anybody know why this command is not recognized in Exchange 2010 SP1:
Search-Mailbox -Identity "April Stewart" -SearchQuery 'Subject:"Your bank statement"' -DeleteContent