Solved

Cannot remove disabled mailbox after database move

Posted on 2014-01-24
7
379 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
Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

 

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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

This article explains how to install and use the NTBackup utility that comes with Windows Server.
In-place Upgrading Dirsync to Azure AD Connect
In this video we show how to create an email address policy 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 Mail Flow…
To show how to create a transport rule 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 Mail Flow >> Rules tab.:  To cr…

789 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