Local mailbox move Exchange 2010 stil listing account in previous mailbox

HI, i have done a few mailbox moves on my Exchange system.

They are all local moves.

I have moved a user from "DB1" to "DB2" but when running
Get-MailboxStatistics -Database "DB1" | Select DisplayName, ItemCount, TotalItemSize | Sort-Object TotalItemSize -Descending

the account is still listed.  Now i know the Exchange DB doesnt shrink when data is moved and that it creates white space but should it also still list the accounts.

I have completed the move and deleted the move request and in the Exchange GUI it lists the account in "DB2".


timb551IT ManagerAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Marwan OsmanCommented:

Get-MailboxDatabase “DB1” | Clean-mailboxdatabase

then run the cmd you mentioned to see if it is still listed.
timb551IT ManagerAuthor Commented:
Can i run that live?
Marwan OsmanCommented:
yes of course,  clean-mailboxdatabase is only to refresh the database, see the below link

Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

timb551IT ManagerAuthor Commented:
I ran

Get-MailboxDatabase “DB1” | Clean-mailboxdatabase

and then ran

Get-MailboxStatistics -Database "DB1" | Select DisplayName, ItemCount, TotalItemSize | Sort-Object TotalItemSize -Descending


Get-MailboxStatistics -Database "DB2" | Select DisplayName, ItemCount, TotalItemSize | Sort-Object TotalItemSize -Descending

and the account is still listed in both
Marwan OsmanCommented:
clean all of the databases by running Get-MailboxDatabase | Clean-mailboxdatabase and check again
timb551IT ManagerAuthor Commented:
Still listed in both after running Get-MailboxDatabase | Clean-mailboxdatabase
Will SzymkowskiSenior Solution ArchitectCommented:
When you move a mailbox from one Database to another Exchange does not hard delete these mailboxes after they have been moved. You are seeing the mailbox on both copies now because the mailbox on the source database is in a "soft-delete" state.

What you can do to remove this is run the following command.
Remove-StoreMailbox –database “sourceDatabase” –identity “mailboxName” –MailboxState Disabled

Open in new window

Once you have done that you can then check the state again and it should be removed.

The Clean-MailboxDatabase cmdlet is used when you want to cleanup the view for Disconnected Mailboxes in Exchange.

See screenshot below for Remove-StoreMailbox

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
timb551IT ManagerAuthor Commented:
Thanks WIll.

Are there any reasons to leave the account listed in the old DB and can the command you mention be run live without causing any issues in a production environment?
Will SzymkowskiSenior Solution ArchitectCommented:
Are there any reasons to leave the account listed in the old DB and can the command you mention be run live without causing any issues in a production environment?

The old DB can stay there until the soft-delete retention has expired and general database maintenace will clean this up.

the Remove-Storemailbox just does this immediately.

You can run this command during production. Before running the command just use the -Whatif switch to make sure that you are removing the correct soft-deleted mailbox if you are uncertain.

Other than that the remove-storemailbox only removes soft-deleted mailboxes, so there should be no issues.

Marwan OsmanCommented:
when you delete a mailbox, the mailbox is disconnected, you can reconnect it or purge it to be permanently deleted.

to purge a mailbox you use Remove-StoreMailbox see below link


as mentioned by Will, it is the same status when we move a mailbox from one db to another.

you can run it live without causing problems.
timb551IT ManagerAuthor Commented:
is there a way of finding out what the soft-deletion retention period is?
Marwan OsmanCommented:
right click the database and select properties, you will see 2 configurable settings: keep deleted items for (days) and keep deleted mailboxes for (days), by default it is 14 days for items and 30 days for mailboxes
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.