Forum Discussion

Rising Flight's avatar
Rising Flight
Brass Contributor
May 05, 2018
Solved

Delete items from Recoverable Items folder

Hi experts, i want to delete items from recoverable items folder, i am using exchange 2016. i am also member of discovery mgmt role group. Get-MailboxFolderStatistics -Identity user -FolderScope R...
  • Kevin_Morgan's avatar
    May 06, 2018

    Hi,

    To use the DeleteContent switch with Search-Mailbox cmdlet, you have to be assigned the Mailbox Import Export management role. By default, this role isn't assigned to any role group. Typically, you assign a role to a built-in role group, or you can assign a role to a user, or a universal security group. The below example add the role to the Organization Management role group:

    New-ManagementRoleAssignment -Name "Import_Export_Organization_Management" -SecurityGroup "Organization Management" -Role "Mailbox Import Export"

    Note: You have to create a new Exchange Online PowerShell session to get new role permissions.

Resources