none
Purge disconnected mailbox issue RRS feed

  • Question

  • Hi,

    I have using the following command to clear and purge disconnected mailbox:

    $mailboxes = Get-ExchangeServer | Where-Object {$_.IsMailboxServer ¨Ceq $true} | ForEach-Object { Get-MailboxStatistics ¨CServer $_.Name | Where-Object {$_.DisconnectDate ¨Cnotlike ¡®¡¯}} | select displayname, mailboxguid, database

    $mailboxes | ForEach { Remove-Mailbox -Database $_.Database -StoreMailboxIdentity $_.MailboxGuid -confirm:$false }

    However, I have few mailbox having the following issue at EMS:

    Mailbox "42e1b15f-170a-4d5d-9b00-4db0e684d572" doesn't exist on database "DB"
    + CategoryInfo          : NotSpecified: (0:Int32) [Remove-Mailbox], ManagementObjectNotFoundException
    + FullyQualifiedErrorId : 8B5B4447,Microsoft.Exchange.Management.RecipientTasks.RemoveMailbox

    Specified database 'RecoveryDB' is a recovery mailbox database, which is not supported by this task.
      + CategoryInfo          : NotSpecified: (a16c1b7e-3cef-4d6f-aa1f-0a7c433cff0f:StoreMailboxIdParameter) [Remove-Mai
     lbox], TaskArgumentException
      + FullyQualifiedErrorId : B9BA5FDC,Microsoft.Exchange.Management.RecipientTasks.RemoveMailbox

    Wednesday, August 7, 2013 1:07 AM

All replies

  • try cleaning the database that the mailboxes are in - Clean-MailboxDatabase MBD01
    Wednesday, August 7, 2013 1:36 AM
  • For the DB, I have the same issue still.

    For the recovery DB, I have the following issue:

    Specified database 'RecoveryDB' is a recovery mailbox database, which is not supported by this task.
        + CategoryInfo          : InvalidOperation: (RecoveryDB:ADObjectId) [Clean-MailboxDatabase], InvalidOperationExcep
       tion
        + FullyQualifiedErrorId : 739BD273,Microsoft.Exchange.Management.SystemConfigurationTasks.CleanMailboxDatabase


    Wednesday, August 7, 2013 1:39 AM