<

Count Mailboxes in your Exchange Organization.

Published on
102 Points
102 Views
Last Modified:
MAS (MVE)
Exchange Server, Windows Server, Active Directory, Virtualization, Skype for Business Expert.
Get count of mailboxes in your Exchange Organization.

For an Exchange administrator there are a lot of different situations in which they may need to know how many mailboxes are in the organization.  Fortunately this is made easy in Exchange Server 2010 with a few simple PowerShell commands.  

When planning Exchange Server migrations just have a quick look at how many mailboxes are hosted on each database in the organization. To achieve this we can simply pipe the Get-Mailbox cmdlet into Group-Object.



Count of Exchange mailboxes in your organization.

To count the mailboxes in your organization even if you have multiple server use this command to get the mailbox count in your organization. Below is the command and the result of a lab server.

(Get-Mailbox).count

 


Note: If your organization has over 1000 mailboxes you need to use "-resultsize unlimited" to get the full list of mailboxes. Command below.

(Get-Mailbox -resultsize unlimited).count




Mailboxes per Exchange mailbox server.

To get a count of mailboxes per Exchange mailbox server use the below command.

Get-Mailbox | Group-Object -Property:ServerName | Select-Object name,count





Mailboxes per Exchange mailbox database

To get a count of mailboxes per mailbox database use the below command.

Get-Mailbox | Group-Object -Property:Database | Select-Object name,count


If you want only one mailbox database count use the below.

Get-Mailbox -database "databasename" | Group-Object -Property:Database | Select-Object name,count




Count mailboxes with email address policy disabled.

As you can see the Group-Object command allows us to see a count of mailboxes based on different attributes or properties of the mailbox. For example a count of mailboxes that are and are not exempt from email address policies. Use the below command to see email address policy enabled and disbaled users.



All these helps for an Exchange administrator when migrating/upgrading an Exchange server from one version (starting from Exchange2007) to other/latest versions. Use this article to get the mailbox statistics and database quota.


0
Comment
Author:MAS (MVE)
0 Comments

Featured Post

Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

Join & Write a Comment

In this video I will demonstrate how to set up Nine, which I now consider the best alternative email app to Touchdown.
Watch this simple and effective video tutorial to extract attachments from Outlook 2007 and try this easy method by yourself. No need to go anywhere, just watch the video and export attachments from Outlook in few simple steps. To know more, click h…

Keep in touch with Experts Exchange

Tech news and trends delivered to your inbox every month