Monday, September 19, 2016

Error Get-Mailpublicfolder for get mail enabled public folder -Exchange 2013

I used to run these commands all the time in Exchange 2010, get all the mail enabled public folder with command get-publicfolder, when i tried to run this command in Exchange 2013 CU7 and getting error

Get-Mailpublicfolder | Get-Publicfolder 

Get-Recipient pf@domain.com | Get-Publicfolder

Error getting:

Cannot process argument transformation on parameter 'Identity'. Cannot convert the "domain.com/Microsoft
Exchange System Objects/Public Folder" value of type "Microsoft.Exchange.Data.Directory.ADObjectId" to
type "Microsoft.Exchange.Configuration.Tasks.PublicFolderIdParameter".
    + CategoryInfo          : InvalidData: (Public Folder:PSObject) [Get-PublicFolder], ParameterBindin...
   mationException
    + FullyQualifiedErrorId : ParameterArgumentTransformationError,Get-PublicFolder
    + PSComputerName        :server.domain.com

Solution:

In Exchange 2013 following command work for getting the mail enabled public folder

Get-PublicFolder -Recurse | where {($_.MailEnabled -eq $True)}

for details : https://technet.microsoft.com/en-us/library/aa997615%28v=exchg.150%29.aspx?f=255&MSPPError=-2147217396

No comments:

Post a Comment