Administrators may encounter issues using the Hybrid Configuration Wizard (HCW) to configure their Exchange Hybrid…
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.
This Post Has 0 Comments