How to check user mailbox database

Im having trouble with some users mailbox database has been assigned by mistake. I was looking for a command i could execute in exchange management console to check what is the current mailbox database for all the users and export it to csv.
LVL 1
akosinoahAsked:
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.

MASEE Solution Guide - Technical Dept HeadCommented:
Please let me know your Exchange version.
If it is Exchange2010 you can filter from EMC and add required columns and export to CSV from the EMC.
Please check this https://technet.microsoft.com/en-us/library/bb124566(v=exchg.141).aspx
akosinoahAuthor Commented:
I am looking for exchange server 2013.
MASEE Solution Guide - Technical Dept HeadCommented:
This command will export users to CSV with mailbox name and it's residing mailbox-database.
Get-Mailbox | select name,database | Export-Csv C:\export\exportusers.csv

Open in new window

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
akosinoahAuthor Commented:
Thank you
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.