powershell exchange 2007 System.DirectoryServices.ActiveDirectoryRights[]

techdrive
techdrive used Ask the Experts™
on
I am trying to get the mailboxes and make sure they have send as access to each of their own mailboxes. When doing so running this command "get-mailbox -server "someserver" | Get-ADPermission | where {($_.ExtendedRights -like "*Send-As*") -and ($_.IsInherited -eq $false) -and -not ($_.User -like "NT AUTHORITY\SELF")} | export-csv c:\temp\somsserver.csv -nti" I get valid datra with the exception of these two columns below. Can anyone tell me what am I doing and how can I get the userrights and extended rights rather than what I am receiving below, thanks

AccessRights                                                        ExtendedRights
System.DirectoryServices.ActiveDirectoryRights[]      Microsoft.Exchange.Configuration.Tasks.ExtendedRightIdParameter[]
System.DirectoryServices.ActiveDirectoryRights[]      Microsoft.Exchange.Configuration.Tasks.ExtendedRightIdParameter[]
System.DirectoryServices.ActiveDirectoryRights[]      Microsoft.Exchange.Configuration.Tasks.ExtendedRightIdParameter[]
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
IT Infrastructure Architect
Commented:
Try..
get-mailbox -server "someserver" | Get-ADPermission | where {($_.ExtendedRights -like "*Send-As*") -and ($_.IsInherited -eq $false) -and -not ($_.User -like "NT AUTHORITY\SELF")} | Select User,Identity,@{N="AccessRights";E={$_.AccessRights}},@{N="ExtendedRights";E={$_.ExtendedRights}}  | export-csv c:\temp\somsserver.csv -nti

Open in new window

Author

Commented:
Excellent thanks

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial