Solved

Cannot remove disabled mailbox after database move

Posted on 2014-01-24
7
382 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
Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

 

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

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

We are happy to announce a brand new addition to our line of acclaimed email signature management products – CodeTwo Email Signatures for Office 365.
Read this checklist to learn more about the 15 things you should never include in an email signature.
In this video we show how to create an Address List 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 Organization >> Ad…
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…

733 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