System.Collections.ObjectModel.Collection’1[Micorosoft.Exchange.Management.MapiTasks.FolderAccessRight]

When trying to produce the list below , it exported the results fine in the PowerShell Window , however when I tried to export to CSV I got this value

System.Collections.ObjectModel.Collection’1[Micorosoft.Exchange.Management.MapiTasks.FolderAccessRight]

Looking at a user who also had this error below I replcated AccessRights with

@{Name=’AccessRights’;Expression={[string]::join(“;“, ($_.AccessRights))}}

Make sure it only has one square braket though!

Reference : http://www.experts-exchange.com/Programming/Languages/Scripting/Powershell/Q_27099740.html

 

1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 10.00 out of 5)
Loading...