Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Exchange 2007 - export permissions with Get-MailboxPermission

483 views
Skip to first unread message

Adrian

unread,
Apr 17, 2009, 4:15:40 PM4/17/09
to
I'm trying to export a list of all non-default mailbox permissions
from my Exchange environment. I can get the list no problem with
Get-Mailbox | Get-MailboxPermission | select identity, user,
accessrights

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!

tojo2000

unread,
Apr 17, 2009, 8:28:29 PM4/17/09
to

Try something like this:

select identity, user, @{Name = 'Access RIghts', Expression =
{[string]::join(', ', $_.AcessRights)}}

0 new messages