Solved

Cannot remove disabled mailbox after database move

Posted on 2014-01-24
7
373 Views
Last Modified: 2014-01-31
I have a mailbox that i have migrated from 1 database to another. A copy of the mailbox still exists on the old (source) database.

I have tried using the Remove-Storemailbox command, but despite using a number of options it says that it cannot find the mailbox.

The command i am using is
remove-storemailbox -database DBName -identity <identity> -MailboxState SoftDeleted

Open in new window

.

I have tried using the users mail alias, their network username and the mailboxguid for the identity parameter, but unfortunately none of these work (all getting the same mailbox doesn't exist on database.

Help! This is a 2gb mailbox that i need to reclaim the whitespace for otherwise my database will hit the 1gb limit very soon and stop working!
0
Comment
Question by:jesus_hairdo
7 Comments
 
LVL 63

Expert Comment

by:Simon Butler (Sembee)
ID: 39806118
How do you know the mailbox is still there?
If you have moved it then it has gone - Exchange will release the space on its next clean up.

Simon.
0
 

Author Comment

by:jesus_hairdo
ID: 39806141
There database is showing if i run the following command
get-mailboxstatistics -Database <DBNAME>| where-object {$_.DisconnectDate -ne $null}

Open in new window


I realise that exchange will release it when it cleans up, but my understanding is that this will be kept according to the retention settings which we have set as 14 days.

I need to remove it now to free up whitespace in the database to prevent the database from growing in size any further as I am very low on disk space on the volume that the database is mounted from
0
 
LVL 4

Expert Comment

by:michaelalphi
ID: 39806230
In order to remove mailbox from exchange database, you can use the Exchange Management Console or the powershell.
Checkout this link :http://technet.microsoft.com/en-us/library/bb201683%28EXCHG.141%29.aspx
0
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 

Author Comment

by:jesus_hairdo
ID: 39806261
The link you have provided appears to be for removing a mailbox database (rather than a mailbox).

The scenario is that i have moved userA from mailserverA to mailserverB.

The active mailbox is now on mailserverB with a disabled copy on mailserverA.

I am now trying to manually remove the copy on mailserverA. I have tried using the remove-storemailbox  command. This is a command that I have successfully used on disconnected mailboxes and according to microsofts page for this command (http://technet.microsoft.com/EN-US/library/d5cb00f2-f475-45cf-b72e-0962e5eed070(EXCHG.141).aspx), should be able to use for my exact scenario
0
 
LVL 4

Expert Comment

by:pcmghouse
ID: 39811273
There is one quick way but it will affect all the deleted mailboxes on that database.
Change the retention (keep deleted mailboxes) to 0 days.
0
 

Accepted Solution

by:
jesus_hairdo earned 0 total points
ID: 39811418
I have managed to get this resolved via command line. It seems like the command prefers a "Display Name" for the Identity parameter. Once I used that the command ran fine.

So for future reference that was:

remove-storemailbox -database DBName -identity "User A" -MailboxState SoftDeleted

Open in new window

0
 

Author Closing Comment

by:jesus_hairdo
ID: 39823561
The command line in my comment worked!
0

Featured Post

Do email signature updates give you a headache?

Do you feel like all of your time is spent managing email signatures? Too busy to visit every user’s desk to make updates? Want high-quality HTML signatures on all devices, including on mobiles and Macs? Then, let Exclaimer solve all your email signature problems today!

Join & Write a Comment

"Migrate" an SMTP relay receive connector to a new server using info from an old server.
This article explains in simple steps how to renew expiring Exchange Server Internal Transport Certificate.
In this video we show how to create a Contact 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 Recipients >> Contact ta…
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…

746 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now