How to check Shared Mailboxes size.

To check a shared mailboxes size in PowerShell, you can use the below cmdlet. Copy and paste the command in PowerShell

#To check Shared mailbox size

$SMbx = Get-Mailbox -RecipientTypeDetails SharedMailbox -ResultSize Unlimited

$Report = @()

ForEach ($S in $SMbx) {

$Stat = (Get-MailboxStatistics -Identity $S.Alias | Select ItemCount, TotalItemSize)

$ReportLine = [PSCustomObject][Ordered]@{

Mailbox     = $S.DisplayName

TotalItems  = $Stat.ItemCount

MailboxSize = $Stat.TotalItemSize

Quota       = $S.ProhibitSendReceiveQuota

Licensed    = $S.SkuAssigned}

$Report += $ReportLine }

$Report | Format-Table Mailbox, TotalItems, MailboxSize, Quota, Licensed -AutoSize


5 thoughts on “How to check Shared Mailboxes size.

  1. Thanks for another wonderful article. Where else could anybody get that type of information in such an ideal way of writing? I have a presentation next week, and I am on the look for such info.

Leave a Reply

Your email address will not be published. Required fields are marked *