timb551
asked on
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
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
ASKER
Can i run that live?
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
https://technet.microsoft.com/en-us/library/bb124076%28v=exchg.141%29.aspx
ASKER
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
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
clean all of the databases by running Get-MailboxDatabase | Clean-mailboxdatabase and check again
ASKER
Still listed in both after running Get-MailboxDatabase | Clean-mailboxdatabase
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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?
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?
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.
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.
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.
ASKER
is there a way of finding out what the soft-deletion retention period is?
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
Get-MailboxDatabase “DB1” | Clean-mailboxdatabase
then run the cmd you mentioned to see if it is still listed.