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".

thanks

Tim
timb551Asked:
Who is Participating?
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:
run:

Get-MailboxDatabase “DB1” | Clean-mailboxdatabase

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

https://technet.microsoft.com/en-us/library/bb124076%28v=exchg.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

timb551Author Commented:
I ran

Get-MailboxDatabase “DB1” | Clean-mailboxdatabase

and then ran

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

and

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

and the account is still listed in both
0
Marwan OsmanCommented:
clean all of the databases by running Get-MailboxDatabase | Clean-mailboxdatabase and check again
0
timb551Author Commented:
Still listed in both after running Get-MailboxDatabase | Clean-mailboxdatabase
0
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
another.JPG
Will.
0

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
timb551Author 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?
0
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.

Will.
0
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

https://technet.microsoft.com/en-us/library/gg181092%28v=exchg.141%29.aspx

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.
0
timb551Author Commented:
is there a way of finding out what the soft-deletion retention period is?
0
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
0
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
Exchange

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.