Removing BESAdmin Permissions from Mailboxes

trecool
trecool used Ask the Experts™
on
I am in the process of removing BES from my environment.  I have removed domain level rights for BESAdmin, throttling policy and ADPermissions.  However, every mailbox still has DOMAIN\BESAdmin account with full permissions and send as permissions.

Can someone let me know how to remove all these permissions from every mailbox in the environment via Powershell?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Hello,

Run the following command:

Get-Mailbox -ResultSize Unlimited | Remove-MailboxPermission -AccessRights FullAccess, sendas -User "domain\besadmin"

-JJ

Author

Commented:
Wonderful.  That did the trick.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial