Get-PublicFolderStatistics -id „\Samplefolder“ | fl results in:
Couldn’t find public folder „\Samplefolder“ on server „server.local“.
+ CategoryInfo : InvalidData: (\Samplefolder:PublicFolderIdParameter) [Get-PublicFolderStatistics], InvalidOperationException
+ FullyQualifiedErrorId : 762BCDDB,Microsoft.Exchange.Management.MapiTasks.GetPublicFolderStatistics
Solution:
Get-PublicFolderStatistics -id „\Samplefolder“ -resultsize unlimited | fl
This seems to be a Bug 🙂