How to generate a report on exchange server 2007 to find the mailbox size individually of all users.


We use exchange 2007 and planning  to migrate to O365 and we have a database called staffdatabase.
We have 400 staff and would like to know the mail box size of individual users.
Is there a way to find the mailbox size of every individual users.

Any tutorials will be great.
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.

CESNetwork AdministratorCommented:
Run this cmdlet in the exchange shell and it should get you what you need:

Get-MailboxStatistics | ft DisplayName,TotalItemSize,ItemCount

If you need this is CSV forrm, just add a bit more to the command:

Get-MailboxStatistics | ft DisplayName,TotalItemSize,ItemCount | Out-File -Filepath %path%\name.csv -NoTypeInformation

This shows the results in bytes.

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
lianne143Author Commented:

Sorry we have 2 database . one is studentdatabase and another is staffdatabase
I ran the posted command and notice that it brought  results of only 300 student mail boxes
 Get-MailboxStatistics | ft DisplayName,TotalItemSize,ItemCount

But we have 800 students and 400 staff

I would like separate results for studentsdatabase and staffdatabase  and the mailbox size in MB

Get exchange mailbox sizes
Ignore that, posted in wrong question
lianne143Author Commented:

Any help to resolve the individual mailbox size much appreciated .

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.