Freigeben über


How to find mailbox size for all users in the organization in Exchange 2010 and later

 

  • Lists all user display name and mailbox size in KB for individual database:  

 

Example database name in below script is DB02. 

$a=0

get-mailbox -Database db02 | Get-MailboxStatistics | %{

$_.DisplayName.ToString()+" "+ ($_.TotalItemSize.Value.ToKB()+$_.TotalDeletedItemSize.Value.ToKB())

$a+=($_.TotalItemSize.Value.ToKB()+$_.TotalDeletedItemSize.Value.ToKB())

}

 

 

  • Lists all user display name and mailbox size in KB for entire organization:

 

 

$a=0

get-mailbox | Get-MailboxStatistics | %{

$_.DisplayName.ToString()+" "+ ($_.TotalItemSize.Value.ToKB()+$_.TotalDeletedItemSize.Value.ToKB())

$a+=($_.TotalItemSize.Value.ToKB()+$_.TotalDeletedItemSize.Value.ToKB())

}

 

 

 

Thank you,

Mukut-