Solved

Cannot remove disabled mailbox after database move

Posted on 2014-01-24
7
388 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
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 

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

Edgartown IT Case Study

Learn about Edgartown's quest to ensure the safety and security of the entire town's employee and citizen data. Read the case study!

Question has a verified solution.

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

Lotus Notes – formerly IBM Notes – is an email client application, while IBM Domino (earlier Lotus Domino) is an email server. The client possesses a set of features that are even more advanced as compared to that of Outlook. Likewise, IBM Domino is…
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…
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…
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

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