For a single mailbox, you can simply use the following cmdlet:
Get-MailboxStatistics user1 | Select ItemCount
Or if you want to get a count per database for example:Get-MailboxStatistics –Database MDB1 | ForEach {$totalItems += $_.ItemCount}
$totalItems
If you want for every single mailbox in your environment, you can use the following cmdlet:Get-Mailbox -ResultSize Unlimited | Get-MailboxStatistics | Select ItemCount | ForEach {$totalItems += $_.ItemCount}
No comments:
Post a Comment