Skip to content

Count mailboxes per Exchange Server with PowerShell

In a previous post, we did count mailboxes per database in Exchange Server. What if you want to count mailboxes per Exchange Server with PowerShell? Let’s show you how to get that information in Exchange Server 2010/2013/2016/2019.

Note: Do you want to get the size of each mailbox? Read the article Get mailbox size of all users in Exchange with PowerShell.

Get total count mailboxes per Exchange Server

Run Exchange Management Shell as administrator.

Count the mailboxes in each Exchange Server.

[PS] C:\>Get-Mailbox -ResultSize Unlimited | Group-Object -Property:ServerName | Select-Object Name, Count

Name Count
---- -----
ex01   421
ex02   271

Count the archive mailboxes in each Exchange Server.

[PS] C:\>Get-Mailbox -ResultSize Unlimited | Where {$_.ArchiveDatabase -notlike $null} | Group-Object -Property:ServerName | Select-Object Name, Count

Name Count
---- -----
ex01     2
ex02     5

One of the commands that I often use! Did you use the command, and did it help you?

Keep reading: Move all mailboxes from one database to another »

Conclusion

You learned how to count mailboxes per Exchange Server with PowerShell. It’s an essential command to get the total mailbox count per Exchange Server.

Did you enjoy this article? You may also like Find total number of mailboxes in Exchange. Don’t forget to follow us and share this article.

ALI TAJRAN

ALI TAJRAN

ALI TAJRAN is a passionate IT Architect, IT Consultant, and Microsoft Certified Trainer. He started Information Technology at a very young age, and his goal is to teach and inspire others. Read more »

This Post Has 0 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *