When I run PowerShell ISE on my workstation and export to a CSV, cells in excel are populated with ‘Microsoft.Exchange.Data.Directory.ADMultiValuedProperty…’. When I open PowerShell, create a PSSession to the Exchange server and run the same export the relevant/correct text values appear in the cells.
Why does either method yield different results?
Form PowerShell ISE on workstation <Get-DistributionGroup -ResultSize Unlimited | Export-Csv> ------ some cells populate with MultivaluedProperty
From PowerShell PSSession to Exchange server1 - <Get-DistributionGroup -ResultSize Unlimited | Export-Csv> - values appear correct.
From PowerShell ISE PSSession to Exchange server1 - <Get-DistributionGroup -ResultSize Unlimited | Export-Csv> ------ some cells populate with MultivaluedProperty