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 | Get-Publicfolder

Error getting:

Cannot process argument transformation on parameter 'Identity'. Cannot convert the "
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...
    + FullyQualifiedErrorId : ParameterArgumentTransformationError,Get-PublicFolder
    + PSComputerName


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

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

for details :

No comments:

Post a Comment