Clear Disconnected Mailboxes in Exchange 2010

After clearing hundreds of move requests in Office 365 via PowerShell, I had to clear all of the disconnected mailboxes in Exchange 2010 those moves created. However, when I ran this command… Get-MailboxStatistics -Database “Mailbox Database” | where {$_.DisconnectReason -eq “SoftDeleted”} | ForEach-Object {Remove-StoreMailbox -Database $_.database -Identity $_.mailboxguid -MailboxState SoftDeleted} …this error came up… Pipeline not…

You don’t have permission to open this mailbox

This week, I experienced an issue in which the mailbox for the administrator account could not be accessed via Exchange 2010 Outlook Web App (OWA), Outlook client or mobile device using Exchange ActiveSync (EAS).  No other mailboxes were affected. This is the error received when accessing OWA… You don’t have permission to open this mailbox. To give…