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
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.
You made some decent points there. I did a search on the issue and found most persons will go along with with your website.
Your articles are extremely helpful to me. May I ask for more information?
Thank you 🙂
I just like the helpful information you provide in your articles