Exchange 2017 get mailbox size all users

To get the mailbox size for all users in Exchange 2017, you can use the following PowerShell command:

Get-Mailbox -ResultSize Unlimited | Get-MailboxStatistics | Select-Object -ExpandProperty TotalItemSize

This command will retrieve a list of all mailboxes in the Exchange organization, and then use the Get-MailboxStatistics cmdlet to retrieve the total size of each mailbox. The Select-Object cmdlet is used to expand the TotalItemSize property, which contains the total size of each mailbox.

You can also use the following command to get the mailbox size for all users and sort the results by size:

Get-Mailbox -ResultSize Unlimited | Get-MailboxStatistics | Sort-Object -Property TotalItemSize -Descending | Select-Object -ExpandProperty TotalItemSize, DisplayName

This command will retrieve the same list of mailboxes as the previous command, but will also sort the results by the total size of each mailbox in descending order (largest to smallest). The Select-Object cmdlet is used to select the TotalItemSize and DisplayName properties for each mailbox.

You can also use the Exchange Management Console (EMC) to get the mailbox size for all users. To do this:

  1. Open the EMC and navigate to the "Recipients" node.
  2. Right-click on the "Mailboxes" node and select "View" > "All Mailboxes".
  3. In the "All Mailboxes" window, click on the "View" menu and select "Size".
  4. The mailbox size will be displayed in the "Size" column.

Note: The mailbox size is calculated in bytes, so you may want to use a unit conversion tool to convert the size to a more readable format (e.g. megabytes, gigabytes, etc.).