Simple Powershell Question – Please Help :)

Home Forums Messaging Software Exchange 2007 / 2010 / 2013 Simple Powershell Question – Please Help :)

Viewing 1 post (of 1 total)
  • Author
    Posts
  • Avatar
    Pdog
    Member
    #155100

    Hi Peeps,

    I am trying to display the users who have the GenericAll and Send-As permission on a mailbox via Powershell.

    I can run the following command to get the GenericAll permission:

    get-mailbox “MailboxName” | get-ADPermission | where { ($_.AccessRights -like “*GenericAll*”) }

    The Send-As Permissions as follows:

    get-mailbox “Mailbox” | get-ADPermission | where {($_.ExtendedRights -Like “*Send-As*”) }

    However the problem is I am unable to join these two commands to one command. I have tried the following:

    Get-mailbox “Mailbox” | get-ADPermission | where { ($_.AccessRights -like “*GenericAll*”) -and ($_.ExtendedRights -Like “*Send-As*”) }

    This does not produce an error, it just returns me to the prompt.

    Can anyone help?

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.