From the course: PowerShell for Exchange Administration

Unlock this course with a free trial

Join today to access over 22,500 courses taught by industry experts.

Finding mailbox sizes

Finding mailbox sizes

(upbeat music) - [Anthony] Let's take a look at how to retrieve mailbox sizes in Exchange using PowerShell. So the first thing is you either need to be inside of the Exchange management shell, or have an Exchange PowerShell session open. You can see here that I've got an Exchange PowerShell session. So we use the Get-MailboxStatistics commandlet to retrieve the TotalItemSize property. So I've got that commandlet here, I've got the name of the mailbox and I'm piping that to the Select-Object commandlet and selecting the DisplayName and TotalItemSize properties. So that tells me that this mailbox is only 342 kilobytes in size, not very big. If we wanted to look at the sizes of all of the mailboxes that we have in our Exchange environment, we can use the GetMailbox commandlet to send all of the mailboxes down the pipeline to the Get-MailboxStatistics commandlet, and then I'm going to pipe that to the Format-Table selecting the DisplayName and TotalItemSize. There we go, you can see that…

Contents