Exchange 2018 get mailbox count per database
To get the mailbox count per database in Exchange 2018, you can use the following methods:
Method 1: Using the Exchange Management Shell
- Open the Exchange Management Shell.
- 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
- Open the Exchange Management Console.
- Navigate to the "Server Configuration" section.
- Click on "Mailbox" and then "Database".
- Right-click on each database and select "Properties".
- In the "Database Properties" window, click on the "Mailbox" tab.
- The mailbox count will be displayed in the "Mailbox Count" field.
Method 3: Using PowerShell Remoting
- Open the Exchange Management Shell.
- Run the following command:
Invoke-Command -ComputerName <server_name> -ScriptBlock {Get-MailboxDatabase | Select-Object Name, MailboxCount}
Replace
<server_name>
with the name of the server you want to query.
Method 4: Using the Exchange PowerShell cmdlet
- Open the Exchange Management Shell.
- 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.