question

JosephHuang-6303 avatar image
0 Votes"
JosephHuang-6303 asked jiayaozhu-MSFT answered

How to export a total item count in public folder?

How to export a total item count in public folder? I don't need any list names return, just a number of total item count. thanks. We have zillions items and folders. This simple powershell command won't do anything since we have a lot of subfolder and items.
Get-PublicFolderStatistics -Identity \Marketing | Format-List

windows-server
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

jiayaozhu-MSFT avatar image
0 Votes"
jiayaozhu-MSFT answered

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.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.