I have a user that is in charge of several large mailboxes for corporate communications. She wanted a report of who had access to said mailboxes to clean it up, add users remove users. Now, She has no real way of editing who has access to the mail box so I gave her a list of full access. Problem is that list does not reflect the Send as permissions. She then asked that I gave everyone with full access the ability to Send as as well. Basically I was trying adn failing to write a commandlet that would get the list of users who had full access to teh mailbox and then pipe it to add the send as permissions to that user. I tried for-eachobject on the latter half of the bottom script to no avail also. Not sure where to go on this.
All I could come up with so far was
Get-Mailbox -Identity "globova" | Get-MailboxPermission | where { ($_.AccessRights -eq "FullAccess") -and ($_.IsInherited -eq $false) -and -not ($_.User -like "NT AUTHORITY\SELF") } | Add-ADPermission -Identity ($_.
Identity) -Extendedrights "Send As"