ndalmolin_13
asked on
Help removing a mailbox from disconnected mailboxes in Exchange 2007
Hello Exchange Experts,
I’m running Exchange 2007. I want to permanently delete a mailbox that is currently located in the disconnected mailboxes section of the Exchange management console. I know that I have to do this using the Exchange management shell, but I have a few questions I would like to ask before I give this a go. When I run the get-mailboxstatistics on the mailbox I would like to delete, I get the following:
AssociatedItemCount : 20
DeletedItemCount : 0
DisconnectDate : 3/1/2011 1:05:58 AM
DisplayName : Allan, Eli
ItemCount : 1652
LastLoggedOnUserAccount : SUMMITLAND\eallan
LastLogoffTime : 2/26/2010 12:38:26 PM
LastLogonTime : 2/26/2010 12:38:12 PM
LegacyDN : /O=VEECORP/OU=VEECHINA/CN= RECIPIENTS /CN=EALLAN
MailboxGuid : 4b4cc430-6b1c-4bdf-bd47-4e 06d6ce1f37
ObjectClass : Mailbox
StorageLimitStatus :
TotalDeletedItemSize : 0B
TotalItemSize : 158444470B
Database : EXCHANGE01\Health\Health
ServerName : EXCHANGE01
StorageGroupName : Health
DatabaseName : Health
Identity : 4b4cc430-6b1c-4bdf-bd47-4e 06d6ce1f37
IsValid : True
OriginatingServer : exchange01.summitland.inte rnal
My first question is: When I run get-mailboxstatistics on the health database, I do not see this mailbox in the database. Is that because it is in the disconnected mailboxes?
My second question is: Is the syntax for the actual remove I have provided below correct?
$ruser = get-mailboxstatistics –server exchange01 | where-object {$_.displayname –eq “allan, eli”}
Remove-mailbox –Database \Exchange\Health\Health –Storemailboxidentity $ruser.mailboxguid
I think the syntax above is correct, but I do not have a test environment to try it out on, so I though I would ask for a second set of eyes to review it for me.
Thanks in advance for your help.
Nick
I’m running Exchange 2007. I want to permanently delete a mailbox that is currently located in the disconnected mailboxes section of the Exchange management console. I know that I have to do this using the Exchange management shell, but I have a few questions I would like to ask before I give this a go. When I run the get-mailboxstatistics on the mailbox I would like to delete, I get the following:
AssociatedItemCount : 20
DeletedItemCount : 0
DisconnectDate : 3/1/2011 1:05:58 AM
DisplayName : Allan, Eli
ItemCount : 1652
LastLoggedOnUserAccount : SUMMITLAND\eallan
LastLogoffTime : 2/26/2010 12:38:26 PM
LastLogonTime : 2/26/2010 12:38:12 PM
LegacyDN : /O=VEECORP/OU=VEECHINA/CN=
MailboxGuid : 4b4cc430-6b1c-4bdf-bd47-4e
ObjectClass : Mailbox
StorageLimitStatus :
TotalDeletedItemSize : 0B
TotalItemSize : 158444470B
Database : EXCHANGE01\Health\Health
ServerName : EXCHANGE01
StorageGroupName : Health
DatabaseName : Health
Identity : 4b4cc430-6b1c-4bdf-bd47-4e
IsValid : True
OriginatingServer : exchange01.summitland.inte
My first question is: When I run get-mailboxstatistics on the health database, I do not see this mailbox in the database. Is that because it is in the disconnected mailboxes?
My second question is: Is the syntax for the actual remove I have provided below correct?
$ruser = get-mailboxstatistics –server exchange01 | where-object {$_.displayname –eq “allan, eli”}
Remove-mailbox –Database \Exchange\Health\Health –Storemailboxidentity $ruser.mailboxguid
I think the syntax above is correct, but I do not have a test environment to try it out on, so I though I would ask for a second set of eyes to review it for me.
Thanks in advance for your help.
Nick
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Get-MailboxStatistics | where-object { $_.DisconnectDate -ne $null } | Select DisplayName,MailboxGuid
this will show you all the disconnected mailbox
identify the one you want to remove and run
Remove-Mailbox -Database <Database-Name> -StoreMailboxIdentity <MailboxGuid> -confirm:$false