Find Modern Public Folder Parent Path

In Legacy Public Folder World with Exchange Server 2010 it was pretty easy to find the parent path of email enabled public folder:

(Get-MailPublicFolder MAILADRESS | Get-PublicFolder).ParentPath



When you try the same approach with modern public folders using Exchange Server 2013+ EMS, you receive an error.

Get-MailPublicFolder | Get-PublicFolderCannot process argument transformation on parameter 'Identity'. Cannot convert the " Exchange System Objects/MSTeamsPF" value of type "Microsoft.Exchange.Data.Directory.ADObjectId" to type"Microsoft.Exchange.Configuration.Tasks.PublicFolderIdParameter".    + CategoryInfo          : InvalidData: (MSTEamsPF:PSObject) [Get-PublicFolder], ParameterBindinmationException    + FullyQualifiedErrorId : ParameterArgumentTransformationError,Get-PublicFolder    + PSComputerName        :



You need to use the EntryId paramater of the Get-MailPublicFolder result.

$pf = Get-MailPublicFolder MSTeamsPF@varunagroup.deGet-PublicFolder -Identity $pf.EntryIdName            Parent Path----            ---------MSTeamsPF       Modern Collaboration

Get-PublicFolder does not take pipeline inputs.




Enjoy modern public folders 🙂 

%d Bloggern gefällt das: