26 C
Dubai
Sunday, November 24, 2024

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

image_thumb1

 

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'}

image

Satheshwaran Manoharan
Satheshwaran Manoharanhttps://www.azure365pro.com
Award-winning Technology Leader with a wealth of experience running large teams and diversified industry exposure in cloud computing. From shipping lines to rolling stocks.In-depth expertise in driving cloud adoption strategies and modernizing systems to cloud native. Specialized in Microsoft Cloud, DevOps, and Microsoft 365 Stack and conducted numerous successful projects worldwide. Also, Acting as a Technical Advisor for various start-ups.

Related Articles

9 COMMENTS

  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}

    Regards,
    _______________________________________________________________________________
    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…
    Try:
    [array]$MBXarray = (get-mailbox -database $name).Name
    $MBXarray.Count

LEAVE A REPLY

Please enter your comment!
Please enter your name here

× How can I help you?