July 2017
Intermediate to advanced
648 pages
31h 9m
English
When using the first example to view the mailboxes and their total size, you will see that the output in the Shell is similar to what is shown in the following screenshot:

Here, you can see that we get the total size in megabytes as well as in bytes. If you find that this additional information is not useful, you can extend the previous one-liner using a calculated property:
Get-MailboxDatabase | Get-MailboxStatistics | ? {!$_.DisconnectDate} | `Select-Object DisplayName, @{n="SizeMB";e={$_.TotalItemSize.value.ToMb()}} | `Sort-Object SizeMB -Descending
Running the preceding one-liner will provide output similar to the following: ...
Read now
Unlock full access