But when I try to dump this to a CSV as in
Get-Mailbox | Get-MailboxPermission | select identity, user,
accessrights | export-csv outfile.csv
The accessrights export as
"Microsoft.Exchange.Management.RecipientTasks.MailboxRights[]" instead
of the actual rights. I've looked and looked at this object, but can't
figure out how to get the rights to export instead of the object name.
I'm sure I'm missing something obvious... Any help would be
appreciated!
Try something like this:
select identity, user, @{Name = 'Access RIghts', Expression =
{[string]::join(', ', $_.AcessRights)}}