Avatar of suelizy
suelizy
Flag for United States of America asked on

get-mailboxfolderstatistics filtering for calendar

We have a policy where we remove items from users calendars after 2 years.  I am trying to figure out the current size of the calendar, and also what the size would be if we only kept 1 year worth of data.

This syntax gets the the size of the calendar in MB:
get-mailbox e144534 -resultsize unlimited | Get-MailboxFolderStatistics -folderscope calendar |  select-object Identity,itemsinfolder,@{Name="FolderSize MB";expression={$_.folderSize.toMB()}} | FT -autosize

How can I add a filter that gives me this data for items less than a year old?

Thanks!

Susan
PowershellExchange

Avatar of undefined
Last Comment
Chris Dent

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Chris Dent

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Chris Dent

This question has been classified as abandoned and is being closed as part of the Cleanup Program.  See my comment at the end of the question for more details.
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck