Skip to main content

Exchange Mailbox Statistics

Get size, date or FolderId for folders in an Exchange Mailbox.

Get-MailboxFolderStatistics -Identity <mailbox-identity>

To see folders outside of the IPM Subtree, add the -FolderScope flag.

-FolderScope NonIPMRoot

 

Export Results to a CSV

Get-MailboxFolderStatistics -Identity <mailbox-identity> | Export-Csv <path-to-csv>

To make the information easier to read, pipe to the Format-Table command and specify which columns to view.

ft Name,FolderPath,LastModifiedTime,FolderType,FolderSize

According to the Microsoft Documentation, the User folders count toward the storage quota.

The group mailbox is distributed in various TargetQuota, namely System, Recoverable and User. The folders matching TargetQuota “User” is the only one considered in the calculation of the group quota.

To check the size of only User folders, pipe to the where command.

where { $_.TargetQuota -like 'User' }

 

To check the size of a specifc folder, pipe to the where command.

where { $_.FolderPath -like '/Inbox' }

 

Microsoft Documentation - Get-MailboxFolderStatistics