Microsoft Exchange Management Shell Commands – Get Mailbox Size Information

TGH Blank Thumbnail

There are many uses for Exchange Management Shell and we will be adding various EMS commands over time so to start with we are going to show you how to get your Exchange mailboxes size information.

For an overview of your Exchange mailboxes statistics, open your EMS console and type in the following command:
 Get-mailboxserver “EXCHANGE-SERVER-NAME” | get-mailboxstatistics | select displayname,totalitemsize | sort totalitemsize  

Replacing “EXCHANGE-SERVER-NAME” with the name of your Exchange server.

This will return to you all the mailboxes on the stated Exchange server and display the size of each mailbox and sort it by mailbox size.

If you would like to export this information to Excel then you can by adding the following code to the end of your command:

 | Export-CSV “c:mailboxes.csv”  

So, if your command should look like this if you want to export to Excel:

 Get-mailboxserver “EXCHANGE-SERVER-NAME” | get-mailboxstatistics | select displayname,totalitemsize | sort totalitemsize | Export-CSV “c:mailboxes.csv”  


If you have any questions or comments, please feel free to use our comments system below.

Free Subscription!Subscribe to our site to receive updates via email!

Enter your email address below and click the Subscribe button to receive email notifications about new and exciting downloads available through our website at

You will also receive notifications about new technical guides, latest news and MSI installer downloads that are available through our blog here at 

We will not spam you and we will not pass on any of your details to anyone else. We tend to post new content once or twice a week.

Join 237 other subscribers

You can unsubscribe any time you like.

About A.J. Armstrong

Founder of TechyGeeksHome and Head Editor for over eight years! IT expert in multiple areas for over 20 years. Sharing experience and knowledge whenever possible! Making IT Happen.

View all posts by A.J. Armstrong