Jean-François Guénet
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-0 10579635d9 1" doesn't exist on database "HV_EXCH_2010".
+ CategoryInfo : NotSpecified: (0:Int32) [Remove-Mailbox], ManagementObjectNotFoundEx ception
+ FullyQualifiedErrorId : 489E901B,Microsoft.Exchang e.Manageme nt.Recipie ntTasks.Re moveMailbo x
Mailbox "aa158fda-a112-408c-b611-1 dd497cf513 9" doesn't exist on database "POL_EXCH_2010".
+ CategoryInfo : NotSpecified: (0:Int32) [Remove-Mailbox], ManagementObjectNotFoundEx ception
+ FullyQualifiedErrorId : 81BD74A2,Microsoft.Exchang e.Manageme nt.Recipie ntTasks.Re moveMailbo x
Mailbox "7e5d0693-48bb-4f7b-84fc-a 1276b64333 f" doesn't exist on database "POL_EXCH_2010".
+ CategoryInfo : NotSpecified: (0:Int32) [Remove-Mailbox], ManagementObjectNotFoundEx ception
+ FullyQualifiedErrorId : 39B7920A,Microsoft.Exchang e.Manageme nt.Recipie ntTasks.Re moveMailbo x
Mailbox "77a835fd-bd2d-4481-bbe9-d 8b3cc08e3b 8" doesn't exist on database "POL_EXCH_2010".
+ CategoryInfo : NotSpecified: (0:Int32) [Remove-Mailbox], ManagementObjectNotFoundEx ception
+ FullyQualifiedErrorId : A0E57F0C,Microsoft.Exchang e.Manageme nt.Recipie ntTasks.Re moveMailbo x
Mailbox "7e307989-e9e2-42d6-a421-9 c4f1a7933c b" doesn't exist on database "LOISIRS_EXCH_2010".
+ CategoryInfo : NotSpecified: (0:Int32) [Remove-Mailbox], ManagementObjectNotFoundEx ception
+ FullyQualifiedErrorId : D89D974B,Microsoft.Exchang e.Manageme nt.Recipie ntTasks.Re moveMailbo x
Mailbox "68c823be-e485-4d7d-9ba3-0 0a4b0d5684 6" doesn't exist on database "TP_EXCH_2010".
+ CategoryInfo : NotSpecified: (0:Int32) [Remove-Mailbox], ManagementObjectNotFoundEx ception
+ FullyQualifiedErrorId : 22FD4515,Microsoft.Exchang e.Manageme nt.Recipie ntTasks.Re moveMailbo x
Mailbox "71bc0f71-4ded-469b-819a-2 139110631c 6" doesn't exist on database "TP_EXCH_2010".
+ CategoryInfo : NotSpecified: (0:Int32) [Remove-Mailbox], ManagementObjectNotFoundEx ception
+ FullyQualifiedErrorId : C1847C80,Microsoft.Exchang e.Manageme nt.Recipie ntTasks.Re moveMailbo x
Mailbox "fec5fccb-bc51-4ce6-b577-e 0cd0137bfb 7" doesn't exist on database "TP_EXCH_2010".
+ CategoryInfo : NotSpecified: (0:Int32) [Remove-Mailbox], ManagementObjectNotFoundEx ception
+ FullyQualifiedErrorId : 3D29C057,Microsoft.Exchang e.Manageme nt.Recipie ntTasks.Re moveMailbo x
Anyone can help me please
Thanks !
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-0
+ CategoryInfo : NotSpecified: (0:Int32) [Remove-Mailbox], ManagementObjectNotFoundEx
+ FullyQualifiedErrorId : 489E901B,Microsoft.Exchang
Mailbox "aa158fda-a112-408c-b611-1
+ CategoryInfo : NotSpecified: (0:Int32) [Remove-Mailbox], ManagementObjectNotFoundEx
+ FullyQualifiedErrorId : 81BD74A2,Microsoft.Exchang
Mailbox "7e5d0693-48bb-4f7b-84fc-a
+ CategoryInfo : NotSpecified: (0:Int32) [Remove-Mailbox], ManagementObjectNotFoundEx
+ FullyQualifiedErrorId : 39B7920A,Microsoft.Exchang
Mailbox "77a835fd-bd2d-4481-bbe9-d
+ CategoryInfo : NotSpecified: (0:Int32) [Remove-Mailbox], ManagementObjectNotFoundEx
+ FullyQualifiedErrorId : A0E57F0C,Microsoft.Exchang
Mailbox "7e307989-e9e2-42d6-a421-9
+ CategoryInfo : NotSpecified: (0:Int32) [Remove-Mailbox], ManagementObjectNotFoundEx
+ FullyQualifiedErrorId : D89D974B,Microsoft.Exchang
Mailbox "68c823be-e485-4d7d-9ba3-0
+ CategoryInfo : NotSpecified: (0:Int32) [Remove-Mailbox], ManagementObjectNotFoundEx
+ FullyQualifiedErrorId : 22FD4515,Microsoft.Exchang
Mailbox "71bc0f71-4ded-469b-819a-2
+ CategoryInfo : NotSpecified: (0:Int32) [Remove-Mailbox], ManagementObjectNotFoundEx
+ FullyQualifiedErrorId : C1847C80,Microsoft.Exchang
Mailbox "fec5fccb-bc51-4ce6-b577-e
+ CategoryInfo : NotSpecified: (0:Int32) [Remove-Mailbox], ManagementObjectNotFoundEx
+ FullyQualifiedErrorId : 3D29C057,Microsoft.Exchang
Anyone can help me please
Thanks !
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
You can leave it, Exchange will purge it automatically. According to your delete mailbox retention policy.
ASKER
Thanks !
ASKER
C:\Windows\system32>Clean-
C:\Windows\system32>Clean-
C:\Windows\system32>Clean-
C:\Windows\system32>Clean-
The user from HV_EXCH_2010 is disapeared but all others mailbox in the others database are still there
Thanks for your help