

Learn more about Role Based Access Control Otherwise, Search-Mailbox won’t be available for you. New-ManagementRoleAssignment -Role "Mailbox Search" -User ""Īfter you assign the permissions, restart the PowerShell console. New-ManagementRoleAssignment -Role "Mailbox Import Export" -User "" To assign the roles directly to a user via PowerShell, run: Discovery Management or create a custom role group for Mailbox Search and Mailbox Import Export. Mailbox Import Export is not part of any of the default role groups, so you have to either add it to e.g.Mailbox Search is by default part of the Discovery Management role.

You can assign them via Exchange admin center, Permissions, admin roles (Exchange 2010: ECP, Roles & Auditing, Administrator Roles). The minimum required permissions to be able to perform searches and deletions are:

While the Compliance Search is helpful and doesn’t throw you a “no longer supported” warning, it is less convenient to use and was never meant for bulk content deletion. The alternative to this very useful cmdlet is using *ComplianceSearch cmdlets. Note: In Exchange Online, the cmdlet is no longer officially supported after July 1, 2020.
