Remove Send As Permissions for a user in all Mailboxes Exchange 2010

Hello Team,

I have a user who's inherited in the send as permissions for all my exchange mailboxes I would like to remove, I have tried running the command: Get-Mailbox -ResultSize Unlimited | Remove-MailboxPermission -AccessRights FullAccess, sendas -User "domain\user". But this is not working, I believe is because the inheritance in permissions.

Any help will be appriciate it.

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Will SzymkowskiSenior Solution ArchitectCommented:
You need to use Set-ADPermission cmdlet. Send As is an active directory setting. Use the following command below...
Get-Mailbox -ResultSize "unlimited" | Remove-ADPermission -User User1 -Extendedrights "Send As"

Open in new window

Also just another side note. When you run this command it will remove Send As permissions on all current mailboxes. If this user is set on the top level domain or OU for Send As permissions the new Mailboxes you create this user will automatically inherit Send As permissions on new mailboxes.

You can test this very easily by creating a new mailbox after you run the above script and if the account has Send As permissions on this account then they are inheriting this some where in AD.

To remove this user from all Mailbox Database use the following command...
Get-MailboxDatabase | Remove-ADPermission -User User1 -ExtendedRights  "send as"

Open in new window


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
exTechnologyAuthor Commented:
How can I find where this is being inherited from?

Thank you.
Will SzymkowskiSenior Solution ArchitectCommented:
Open ADUC and right click, select properties, Security Tab, Advance Security, check and make sure that this User or Group does not have permissions at the top level. You can also do this for specific OU's as well if it is not at the domain level.

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.