Quantcast
Channel: Practical 365
Viewing all articles
Browse latest Browse all 515

PowerShell One-Liner: Get a Count of Exchange Server Mailboxes Per Database

$
0
0

When I’m planning Exchange Server migrations or just generally reporting on mailbox stats I use my Get-MailboxReport.ps1 script. But sometimes I just want a quick look at how many mailboxes are hosted on each database in the organization. To achieve this we can simply pipe the Get-Mailbox cmdlet into Group-Object.

[PS] C:\>Get-Mailbox | Group-Object -Property:Database | Select-Object Name,Count | Sort-Object Name | Format-Table -Auto
Name Count
---- -----
DB02   212
DB05    59
DB06    47
DB07    60
DB08    58

The post PowerShell One-Liner: Get a Count of Exchange Server Mailboxes Per Database appeared first on Practical 365.


Viewing all articles
Browse latest Browse all 515

Trending Articles