Thursday , February 22 2018

Quick Tip – Find number of Mailboxes in Each database using single PowerShell Command–Exchange 2010/2013



Every time we got to do a audit on number of mailboxes on each databases and it has to be maintained with a threshold .

Without going for PowerShell Script . or not checking the mailboxes count in each database .

if you run this  below PowerShell command  it will list the number of mailboxes available in each database in the Exchange server.

PS —

Get-MailboxDatabase | foreach{($ + '='+ (Get-Mailbox -Resultsize unlimited -Database $_.Identity ).count + ' Mailboxes'}


About Satheshwaran Manoharan

Satheshwaran Manoharan is an Microsoft Exchange Server MVP , Publisher of
Supporting/Deploying/Designing Microsoft Exchange for some years.
Extensive experience on Microsoft Technologies.

Check Also

SQL 2008 R2 In place Upgrade to SQL 2014

I have a SCCM Database server running Windows Server 2012 R2 with SQL 2008 R2 ...


  1. Exchange Power Shell Command – To Get the List of Mailbox for Each Database

    (get-mailboxdatabase) | foreach-object {write-host $ (get-mailbox -database $}

    Abdul Azees – Messaging & Collaboration Support, Enterprise IT Services
    Mobile No : +91 – 9994567003

  2. Hey this is somewhat of off topic but I was wanting to know if blogs use WYSIWYG editors or if you have to manually
    code with HTML. I’m starting a blog soon but have no coding
    expertise so I wanted to get guidance from someone
    with experience. Any help would be enormously appreciated!

  3. Good …very useful command

  4. Very helpful, straight to the point.

  5. Hi friends, its fantastic post about teachingand completely
    explained, keep it up all the time.

  6. Be careful! If you use (get-mailbox -database $name).count and MBXdatabase have only one mailbox this construction return $null…
    [array]$MBXarray = (get-mailbox -database $name).Name

Leave a Reply

Your email address will not be published.