25.9 C
Wednesday, December 7, 2022

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{($_.name) + '='+ (Get-Mailbox -Resultsize unlimited -Database $_.Identity ).count + ' Mailboxes'}


Satheshwaran Manoharan
Satheshwaran Manoharanhttps://www.azure365pro.com
Specialized in Microsoft Azure - Office 365 / Microsoft Exchange; conducted numerous projects worldwide in designing, supporting, and implementing messaging and virtualization infrastructure for medium-sized and large enterprises. Further, I am a Cloud Architect and Technical Advisor for various start-ups.

Related Articles


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

    (get-mailboxdatabase) | foreach-object {write-host $_.name (get-mailbox -database $_.name).count}

    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. 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


Please enter your comment!
Please enter your name here

× How can I help you?