Get All Exchange Mailbox Database And Number Of Mailboxes On Each one

The cmdlet below will show you how to get the number of mailboxes hosted on each Exchange server database.

The command will work on Exchange 2007, 2010 and 2013

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


Posted

in

,

by