Forum Discussion
Freshie
Mar 26, 2024Copper Contributor
Exporting list of all public folders with folder size
Hello,
We are currently migrating from on-prem to 365 and need a report listing our 300+ public folders by name, size and owner if possible. I have tried a variety of commands with no luck.
Any help with this would be very much appreciated.
Thanks!
1 Reply
Would something like this work for you?
It
- gets all the public folders- gets their stats
- adds a property to the output with the owners joined together by ';'
Get-PublicFolder -Recurse -ResultSize Unlimited | Get-PublicFolderStatistics -ResultSize Unlimited | Select-Object Name,TotalItemSize,@{n='Owners';e={ (Get-PublicFolderClientPermission -Identity $_.Identity | Where {$_.AccessRights -like 'Owner'}).User -join ';'}}