Find The Total Number Of Mailboxes In Your Organization…

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

5 Responses to “Find The Total Number Of Mailboxes In Your Organization…”

  1. Tommy Becker May 27, 2011 at 12:51 am #

    correction:

    get-mailbox -ResultSize unlimited | Measure-Object

    [Reply]

  2. Rajith Jose Enchiparambil May 27, 2011 at 10:13 am #

    You are right Tommy.

    If you have a bigger organization, resultsize has to be added so that it picks all the mailboxes.

    Thanks.

    [Reply]

  3. Anonymous June 17, 2011 at 9:08 am #

    i would do this:

    (get-mailbox -resultsize unlimited *domain.com).count

    You cna omit the *domain.com to get all mailboxes.

    [Reply]

  4. Rajith Jose Enchiparambil June 17, 2011 at 11:21 am #

    Thanks Anonymous.

    [Reply]

  5. Anonymous June 29, 2011 at 3:56 pm #

    what if you only want your 2010 mailboxes? this will return all mailboxes both 2003 (if you have them and 2007 and 2010…

    [Reply]

Leave a Reply:

Gravatar Image