Exchange 2017 get mailbox count per database

To get the mailbox count per database in Exchange 2017, you can use the following methods:

Method 1: Using the Exchange Management Shell

  1. Open the Exchange Management Shell.
  2. Run the following command:
    Get-MailboxDatabase | Select-Object Name, MailboxCount

    This will display a list of databases and their corresponding mailbox counts.

Method 2: Using the Exchange Management Console

  1. Open the Exchange Management Console.
  2. Navigate to the "Server Configuration" section.
  3. Click on "Mailbox" and then "Database".
  4. In the "Database" pane, right-click on each database and select "Properties".
  5. In the "Database Properties" window, click on the "Mailbox" tab.
  6. The "Mailbox Count" value will be displayed.

Method 3: Using PowerShell Remoting

  1. Open the Exchange Management Shell.
  2. Run the following command:
    Invoke-Command -ComputerName <ServerName> -ScriptBlock {Get-MailboxDatabase | Select-Object Name, MailboxCount}

    Replace <ServerName> with the name of the server you want to query.

Method 4: Using the Exchange PowerShell cmdlet

  1. Open the Exchange Management Shell.
  2. Run the following command:
    Get-MailboxDatabase -Status | Select-Object Name, MailboxCount

    This will display a list of databases and their corresponding mailbox counts, including the status of each database.

Note: Make sure you have the necessary permissions and credentials to run these commands.