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 hel...
mderooij
Mar 29, 2024MVP
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 ';'}}