Hi,
Thanks for posting on our forum!
Based on your demand, if you mean you want to know the size of your total item, you can run command:
Get-PublicFolderItemStatistics -Identity "\Marketing\Reports" | MessageSize | Export-CSV C:\PFItemStats.csv
This example exports the output of the cmdlet to the PFItemStats.csv file that contains the size of the item.
If you want to know how many numbers of your total item, you can run these commands:
Get-PublicFolderStatistics -Server <servername> | Export-Csv c:\file1.txt (on an Exchange 2007 server), or
Get-PublicFolderStatistics -Server <servername> -ResultSize unlimited | Export-Csv c:\file1.txt
(on an Exchange 2010 server)
You can also gain more information about how to export the count of your total item from this article:
https://techcommunity.microsoft.com/t5/exchange-team-blog/comparing-public-folder-item-counts/ba-p/593732
Thanks for your support! Besides, if you think my work is helpful, would you please help me Accept Answer. An accepted blog can be put on top of our forum, so that people who have a similar issue can get access to their solution more quickly.
BR,
Joan
If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.