What I'm trying to do is view the e-mail addresses and permissions for a specific mail-enabled public folder in a single final output. With Get-MailPublicFolder it is not possible to retrieve AccessRights, so I use Get-MailPublicFolderClientPermission for that. When running the following command in PowerShell the AccessRights value remains empty.
Get-MailPublicFolder -Identity \PathToPublicFolder | select-object name,primarysmtpaddress,emailaddresses,@{e={ ((Get-MailPublicFolderClientPermission $_.name).accessrights)};l="Access Rights"}
However when I run the following command I do get results for the AccessRights attribute.
Get-PublicFolderClientPermission -Identity \PathToPublicFolder
Please advice on how to make this piped command work.