When I tried the following cmdlet in EMS
Get-PublicFolder '\PublicfolderName' -Recurse | Get-PublicFolderStatistics
I got the following error
Couldn't find public folder "\PublicfolderName" on server "server.domain.org".
+ CategoryInfo : InvalidData: (\PublicfolderName:PublicFolderIdParameter) [Get-PublicFolderStatistics], InvalidOperationException
+ FullyQualifiedErrorId : 773CD1AB,Microsoft.Exchange.Management.MapiTasks.GetPublicFolderStatistics
Couldn't find public folder "\PublicFolderName\subfolder" on server "server.domain.org".
+ CategoryInfo : InvalidData: (\PublicFolderName\subfolder:PublicFolderIdParameter) [Get-PublicFolderStatistics], InvalidOperationException
+ FullyQualifiedErrorId : 773CD1AB,Microsoft.Exchange.Management.MapiTasks.GetPublicFolderStatistics
Solution
This seems to be bug (may be a feature :)
If you add the resultsize parameter to the cmdlet it works fine
Get-PublicFolder '\PublicfolderName' -Recurse | Get-PublicFolderStatistics –ResultSize unlimited
Thanks - that worked for me too
ReplyDelete