Script To Export All Mailbox Sizes To CSV Using PowerShell On Office 365

This PowerShell script will connect to Office 365 and export all mailbox sizes to a CSV file. A lot of people suggest we just run the following command:


This is a pretty simple command, which will do the job, but our script offers you much more control – and as we love writing scripts we wanted to share it with you.

Download now

Related ResourcePS webinar icon

Optimizing PowerShell for Large Office 365 Tenants

Running PowerShell scripts on larger Office 365 tenants can cause all kind of problems with speed, throttling, and accurate output. This webinar will give you guidance and workarounds for increasing the quality of output to optimize the data you’re able to get from PowerShell. 

Back to Resources