Powershell Mailbox Count for Exchange 2007
The other day I wanted to get a quick count of how many mailboxes I had in the enterprise. Of course, I wanted to be able to run a powershell command instead of going into the EMC. I fooled around with the Get-MailboxStatistics command until I got what I wanted and figured it would be a nice little one liner to share:
Get-MailboxStatistics | group MailboxDatabase | format-table count
This is a very simple command that just outputs the count (number) of mailboxes you have on a given exchange mailbox server. Of course, if you have more than one server you’ll need to specificy that inside the command. Since I only have one, it’s pretty simple.

