?
Solved

Cannot remove disabled mailbox after database move

Posted on 2014-01-24
7
Medium Priority
?
394 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
[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
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
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

 

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

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free 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

In-place Upgrading Dirsync to Azure AD Connect
Check out this step-by-step guide for using the newly updated Experts Exchange mobile app—released on May 30.
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…
In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…
Suggested Courses
Course of the Month14 days, 20 hours left to enroll

770 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