Search This Blog

Tuesday 26 June 2012

Powershell - Number of Mailboxes per Database

A quick Powershell that is worth sharing is this command to display the number of mailboxes per database.


Get-MailboxDatabase | Select Server, StorageGroupName, Name, @{Name="Number Of Mailboxes";expression={(Get-Mailbox -Database $_.Identity | Measure-Object).Count}} | Format-Table -AutoSize


Thanks to Teknologist for this http://bit.ly/Nv1KIB

No comments:

Post a Comment