Categories Exchange 2010

Archive Mailbox Stats

Although Personal Archives in Exchange 2010 are often in cheaper and larger storage than “normal” mailboxes, we still need to keep an eye on them to check how archives are growing and how (if!) users are using it.

Here’s a simple script to get some statistics regarding all the archive mailboxes in your environment:

$mbcombCollection= @()

$archiveMbxs= Get-Mailbox -Archive -ResultSize Unlimited | Select Identity, ArchiveWarningQuota, ArchiveQuota

ForEach ($mbxin$archiveMbxs)


$mbxStats= Get-MailboxStatistics $mbx.Identity -Archive | Select DisplayName, StorageLimitStatus, TotalItemSize, TotalDeletedItemSize, ItemCount, DeletedItemCount, Database

$mbcomb="" | Select"Display Name", StorageLimitStatus, "TotalItemSize (MB)", "TotalDeletedItemSize (MB)", ItemCount, DeletedItemCount, Database, "ArchiveWarningQuota (GB)", "ArchiveQuota (GB)"

$mbcomb."Display Name"=$mbxStats.DisplayName

$mbcomb.StorageLimitStatus =$mbxStats.StorageLimitStatus

$mbcomb."TotalItemSize (MB)"= [math]::round($mbxStats.TotalItemSize.Value.ToMB(), 2)

$mbcomb."TotalDeletedItemSize (MB)"= [math]::round($mbxStats.TotalDeletedItemSize.Value.ToMB(), 2)

$mbcomb.ItemCount =$mbxStats.ItemCount

$mbcomb.DeletedItemCount =$mbxStats.DeletedItemCount

$mbcomb.Database =$mbxStats.Database

$mbcomb."ArchiveWarningQuota (GB)"=$mbx.ArchiveWarningQuota.Value.ToGB()

$mbcomb."ArchiveQuota (GB)"=$mbx.ArchiveWarningQuota.Value.ToGB()




$mbcombCollection | Export-Csv D:\Scripts\Reports\"ArchiveStats_$(Get-Date -f 'yyyyMMdd').csv"-NoType

Nuno Mota

Nuno Mota is an Exchange MVP working as a Microsoft Messaging Specialist for a financial institution. He is passionate about Exchange, Lync, Active Directory, PowerShell, and Security. Besides writing his personal Exchange blog,, he regularly participates in the Exchange TechNet forums and is the author of the book “Microsoft Exchange Server 2013 High Availability.”

Published by
Nuno Mota

Recent Posts

Microsoft Teams guest access: How to enable and manage it

Two of the main factors that affect the total cost of an organization’s Microsoft 365…

15 hours ago

Samsung Galaxy Unpacked 2020: Everything you need to know

Samsung rolled out the all-new Galaxy Z Fold 2, Note 20, Note 20 Ultra handsets…

18 hours ago

SAN vs. NAS: Detailed comparison of these two storage technologies

SAN and NAS provide dedicated storage for a group of users using completely different approaches…

21 hours ago

Generation 1 virtual machines: Modernize them and bring them up to date

In many companies, Generation 1 virtual machines have been superseded by Gen 2 VMs. But…

2 days ago

Free VPNs from Hong Kong with ‘no-log policy’ experience data leak

With these free VPNs based in Hong Kong, you may not be paying any money…

2 days ago

Azure DevOps tips and tricks: Using built-in features

These Azure DevOps tips and tricks come fresh from the field where they have been…

2 days ago