none
how to calculate total size and Items count in Exchange 2010 RRS feed

  • Question

  • hi,

    can any one help me in below

     how to calculate total size and Items count in Exchange 2010

    thanks

    Tuesday, January 24, 2017 9:00 AM

Answers

  • Hi

    get-recipient -resultsize unlimited | where {$_.EmailAddresses -match "DomainName"} | Get-Mailbox -ResultSize unlimited | Get-MailboxStatistics | ft DisplayName, TotalItemSize, ItemCount -AutoSizeNote: change the DomainName to Actual domain.

    hope this will help you out.

    Kindly click "Mark as Answer" on the post that helps you, this can be beneficial to other community members reading this thread.

    Regards.

    H.shakir

    • Marked as answer by abdullah altaf Tuesday, January 24, 2017 11:22 AM
    Tuesday, January 24, 2017 11:16 AM

All replies

  • You mean mailbox size?

    simply run get-mailboxstatistics |fl total*

    It will show total item size and totalitemcount.


    Jayakumar K

    Tuesday, January 24, 2017 10:32 AM
  • Hi Abdullah,

    Hope below helps your query:-

    For a single mailbox, you can simply use the following cmdlet:

    Get-MailboxStatistics user1 | Select DisplayName,TotalItemSize,ItemCount

    Or if you want to get a count per database for example:

    Get-Mailbox -Database MB-HO-01 | Get-MailboxStatistics | %{$_.TotalItemSize.Value.ToMB()} 

    If you want for every single mailbox in your environment, you can use the following cmdlet:

    Get-Mailbox -ResultSize Unlimited | Get-MailboxStatistics | SelectItemCount | ForEach {$totalItems+=$_.ItemCount}

    Or you can run below to get the data in MB

    - Get-Mialbox -resultsize unlimited | Get-MailboxStatistics | where {$_.ObjectClass –eq “Mailbox”} | Sort-Object TotalItemSize –Descending | ft @{label=”User”;expression={$_.DisplayName}},@{label=”Total Size (MB)”;expression={$_.TotalItemSize.Value.ToMB()}},@{label=”Items”;expression={$_.ItemCount}},@{label=”Storage Limit”;expression={$_.StorageLimitStatus}} -auto

    Hope this helps 



    • Edited by Akabe Tuesday, January 24, 2017 10:50 AM
    • Proposed as answer by Akabe Tuesday, January 24, 2017 10:52 AM
    • Unproposed as answer by Akabe Tuesday, January 24, 2017 11:26 AM
    Tuesday, January 24, 2017 10:48 AM
  • Hi

    get-recipient -resultsize unlimited | where {$_.EmailAddresses -match "DomainName"} | Get-Mailbox -ResultSize unlimited | Get-MailboxStatistics | ft DisplayName, TotalItemSize, ItemCount -AutoSizeNote: change the DomainName to Actual domain.

    hope this will help you out.

    Kindly click "Mark as Answer" on the post that helps you, this can be beneficial to other community members reading this thread.

    Regards.

    H.shakir

    • Marked as answer by abdullah altaf Tuesday, January 24, 2017 11:22 AM
    Tuesday, January 24, 2017 11:16 AM