Monday, May 23, 2011

Couldn't find public folder–When Get-PublicFolderStatistics is run in Exchange 2010 SP1

 

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

1 comment:

Leave a comment if you find this post useful or if you have any questions