Solved

Help removing a mailbox from disconnected mailboxes in Exchange 2007

Posted on 2011-03-03
2
779 Views
Last Modified: 2012-06-27
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-4e06d6ce1f37
ObjectClass             : Mailbox
StorageLimitStatus      :
TotalDeletedItemSize    : 0B
TotalItemSize           : 158444470B
Database                : EXCHANGE01\Health\Health
ServerName              : EXCHANGE01
StorageGroupName        : Health
DatabaseName            : Health
Identity                : 4b4cc430-6b1c-4bdf-bd47-4e06d6ce1f37
IsValid                 : True
OriginatingServer       : exchange01.summitland.internal

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
0
Comment
Question by:ndalmolin_13
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 7

Accepted Solution

by:
ncheung earned 500 total points
ID: 35027141
For your first question...
You may need to run the clean-mailboxdatabase cmdlet prior being able to see the disconnected mailbox itself because it has not yet been able to see the change reflected in active directory.
http://technet.microsoft.com/en-us/library/bb124076(EXCHG.80).aspx
Example:
http://exchangeshare.wordpress.com/2008/04/27/cant-see-deleted-mailbox-in-disconnected-mailbox-under-recipient-configuration/

Have you taken a look at this blog?  This illustrates the example for you second question.
http://www.mcpblog.net/Lists/Posts/Post.aspx?ID=38
0
 
LVL 49

Expert Comment

by:Akhater
ID: 35027864
first run

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
0

Featured Post

Enroll in June's Course of the Month

June's Course of the Month is now available! Every 10 seconds, a consumer gets hit with ransomware. Refresh your knowledge of ransomware best practices by enrolling in this month's complimentary course for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article lists the top 5 free OST to PST Converter Tools. These tools save a lot of time for users when they want to convert OST to PST after their exchange server is no longer available or some other critical issue with exchange server or impor…
This article will help to fix the below error for MS Exchange server 2010 I. Out Of office not working II. Certificate error "name on the security certificate is invalid or does not match the name of the site" III. Make Internal URLs and External…
To show how to generate a certificate request in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.:  First we need to log into the Exchange Admin Center. Navigate to the Servers >> Certificates…
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question