How do I audit permissions for “Send On Behalf Of” in Exchange?

orange

The below script should be run from an Exchange Management Console, and will list all mailboxes with permissions granted to other users to Send On Behalf Of.  The output is to the screen (comma-seperated), but could easily be redirected to a file (change the write-host $out line to $out >> c:\output.csv)

 

If you need to perform a bulk removal of a specific user from these mailbox permissions, the below script will do just that.  Eg, if a previous account had Send On Behalf Of across a large number of mailboxes – this would strip that one user from all mailboxes.

Don’t forget to change the name in the if statement (John Smith in this example):

 

orange

Leave a Reply

Your email address will not be published. Required fields are marked *