How can you quickly find the total number of mailboxes in your organization? You can do it now by running a shell command.
Get-Mailbox | Measure-Object
You can further customize the command to your requirements. Let’s say that you want to find out the mailboxes in one particular database or one particular server. You can find it by adding more switches to the above command. Run the following…
Get-Mailbox –database dbname | Measure-Object
Get-Mailbox –Server servername | Measure-Object