Need to report on all of the individual folders within a mailbox, returning such information as their size within a date range.

I was asked to take a look at the mailbox to inventory the size and dates of the mail to see what archiving policy would reduce the mailbox size by at least 50-70%. If this user has 45GB in the last 6 months, then a 1 year policy won’t be of much value and I think that the user won’t want anything less than a year. I need to find a report mailbox folder sizes with PowerShell within a date range. I think I should use the Get-MailboxFolderStatistics -identity cmdlet but not certain. Can you help?
Olga BarannikAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

You're correct, Get-MailboxFolderStatistics will provide your with the required info, example:
Get-MailboxFolderStatistics -Identity username | ft FolderPath, FolderSize

Open in new window

Olga BarannikAuthor Commented:
Thank you. I think my question wasn't clear thought. I need to calculate the size of all items in mailbox within a date range. For instance, I need the total size of items from 1/1/16 to 1/1/17. Do I need to open a different question?
Olga BarannikAuthor Commented:
I think I just need a date range for this -
get-mailbox -Identity username | Get-MailboxStatistics | select-object TotalItemSize?

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.