Link to home
Create AccountLog in
Avatar of Jean-François Guénet
Jean-François GuénetFlag for Canada

asked on

Exchange 2010 - Can't remove disconnected mailbox

Hello im trying to delete disconnected mailbox from exchange 2010

Here the commands i used

$mailboxes = Get-ExchangeServer | Where-Object {$_.IsMailboxServer –eq $true} | ForEach-Object { Get-MailboxStatistics –Server $_.Name | Where-Object {$_.DisconnectDate –notlike ‘’}} | select displayname, mailboxguid, database

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

Then i get these errors

Mailbox "ca381eb6-2554-46c7-a104-010579635d91" doesn't exist on database "HV_EXCH_2010".
    + CategoryInfo          : NotSpecified: (0:Int32) [Remove-Mailbox], ManagementObjectNotFoundException
    + FullyQualifiedErrorId : 489E901B,Microsoft.Exchange.Management.RecipientTasks.RemoveMailbox

Mailbox "aa158fda-a112-408c-b611-1dd497cf5139" doesn't exist on database "POL_EXCH_2010".
    + CategoryInfo          : NotSpecified: (0:Int32) [Remove-Mailbox], ManagementObjectNotFoundException
    + FullyQualifiedErrorId : 81BD74A2,Microsoft.Exchange.Management.RecipientTasks.RemoveMailbox

Mailbox "7e5d0693-48bb-4f7b-84fc-a1276b64333f" doesn't exist on database "POL_EXCH_2010".
    + CategoryInfo          : NotSpecified: (0:Int32) [Remove-Mailbox], ManagementObjectNotFoundException
    + FullyQualifiedErrorId : 39B7920A,Microsoft.Exchange.Management.RecipientTasks.RemoveMailbox

Mailbox "77a835fd-bd2d-4481-bbe9-d8b3cc08e3b8" doesn't exist on database "POL_EXCH_2010".
    + CategoryInfo          : NotSpecified: (0:Int32) [Remove-Mailbox], ManagementObjectNotFoundException
    + FullyQualifiedErrorId : A0E57F0C,Microsoft.Exchange.Management.RecipientTasks.RemoveMailbox

Mailbox "7e307989-e9e2-42d6-a421-9c4f1a7933cb" doesn't exist on database "LOISIRS_EXCH_2010".
    + CategoryInfo          : NotSpecified: (0:Int32) [Remove-Mailbox], ManagementObjectNotFoundException
    + FullyQualifiedErrorId : D89D974B,Microsoft.Exchange.Management.RecipientTasks.RemoveMailbox

Mailbox "68c823be-e485-4d7d-9ba3-00a4b0d56846" doesn't exist on database "TP_EXCH_2010".
    + CategoryInfo          : NotSpecified: (0:Int32) [Remove-Mailbox], ManagementObjectNotFoundException
    + FullyQualifiedErrorId : 22FD4515,Microsoft.Exchange.Management.RecipientTasks.RemoveMailbox

Mailbox "71bc0f71-4ded-469b-819a-2139110631c6" doesn't exist on database "TP_EXCH_2010".
    + CategoryInfo          : NotSpecified: (0:Int32) [Remove-Mailbox], ManagementObjectNotFoundException
    + FullyQualifiedErrorId : C1847C80,Microsoft.Exchange.Management.RecipientTasks.RemoveMailbox

Mailbox "fec5fccb-bc51-4ce6-b577-e0cd0137bfb7" doesn't exist on database "TP_EXCH_2010".
    + CategoryInfo          : NotSpecified: (0:Int32) [Remove-Mailbox], ManagementObjectNotFoundException
    + FullyQualifiedErrorId : 3D29C057,Microsoft.Exchange.Management.RecipientTasks.RemoveMailbox


Anyone can help me please

Thanks !
ASKER CERTIFIED SOLUTION
Avatar of Amit
Amit
Flag of India image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of Jean-François Guénet

ASKER

I ran these commands

C:\Windows\system32>Clean-MailboxDatabase HV_EXCH_2010
C:\Windows\system32>Clean-MailboxDatabase LOISIRS_EXCH_2010
C:\Windows\system32>Clean-MailboxDatabase TP_EXCH_2010
C:\Windows\system32>Clean-MailboxDatabase POL_EXCH_2010

The user from HV_EXCH_2010 is disapeared but all others mailbox in the others database are still there

Thanks for your help
You can leave it, Exchange will purge it automatically. According to your delete mailbox retention policy.
Thanks !