First you need to get a list of all the disconnected mailboxes – Get-MailboxStatistics -Database “” | Where-Object {$_.DisconnectDate -Notlike $NULL} | FL DisplayName, DisconnectDate, MailboxGuid […]
#Assign the role to the required user account New-ManagementRoleAssignment -Role “Mailbox Import Export” -User administrator #Restart the shell #This would search every mailbox for messages containing […]
First you have to give permissions to the account that needs to import/export or nothing will work. Where “MyExportAccount” is the account that needs permissions to […]