Exchange 2010 Powershell how to count mailboxes

This post is also available in: Polish

We often encounter the need to determine how many mailboxes in a given time is in different databases or around the Microsoft Exchange Server.

Such information can be easily obtained by using the Exchange Management Shell cmdlets for Exchange 2010.

Examples of use:

Determination of the number of all mailboxes in an Exchange Organization

 

(Get-Mailbox -ResultSize unlimited).count

ResultSize option we use if our Exchange environment has more than 1000 mailboxes

Number of mailboxes in different databases:

Get-Mailbox -ResultSize unlimited | Group-Object -Property:Database | Select-Object Name,Count

Number of boxes in different servers:

Get-Mailbox -ResultSize unlimited | Group-Object -Property:ServerName | Select-Object Name,Count

By using Group-Object we can share the results displayed according to the various entries, which are assigned to the mailbox.

Division of mailboxes according to the office – in the AD console field Office:

Get-Mailbox -ResultSize unlimited | Group-Object -Property:Office | Select-Object Name,Count

Determining how many mailboxes have enabled automatic configuration of e-mail address:

Get-Mailbox -ResultSize unlimited | Group-Object -Property:EmailAddressPolicyEnabled | Select-Object Name,Count

 

Print Friendly
Tagged , , , , , . Bookmark the permalink.

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>