none
extract forward, sendas and full access with powershell - exchange 2007 RRS feed

  • Question

  • Hi all,

    I need to know for all users in exchange that as a value in the send as, the full access or the forward attributes.

    I found how to extract them one by one but I cannot create a command that check the 3 attributes together.

    Here are the 3 commands

    #SEND-AS

    Get-User | Get-ADPermission | where {($_.ExtendedRights -like "*Send-As*") -and -not ($_.User -like "NT AUTHORITY\SELF")}|FT -Wrap

    #FULL ACCESS

    Get-Mailbox -ResultSize Unlimited | Get-MailboxPermission | where {($_.AccessRights -match "FullAccess") -and -not ($_.User -like "NT AUTHORITY\SELF")} | ft Identity, User

    #FORWARD

    Get-Mailbox | Where {$_.ForwardingAddress -ne $null} | Select Name, ForwardingAddress

    Can you help me please?

    Thanks in advance

    Wednesday, November 7, 2012 4:00 PM

Answers