June 21, 2012

Exchange 2010 - get mailboxes with SendAs


Get-Mailbox -Server "Exchange1" | get-adpermission | where-object {$_.extendedrights -like 'send-as'} | select Identity,user,extendedrights | where {$_.user.tostring() -ne "NT AUTHORITY\SELF"} | ft -AutoSize | Out-File C:\SendAs.txt

Update 5/26/2014:
Get-Mailbox | Get-ADPermission | where {$_.extendedrights -like 'send-as'} | where {$_.user.tostring() -ne "NT AUTHORITY\SELF"} | select Identity,User | Export-Csv report.csv

No comments:

Post a Comment