DISABLE OWA FORWARDING IN EXCHANGE ONLINE
This script will disable OWA Forwarding. Script will create new managmenet role "MyBaseOptions-DisableOWAForwarding" and it will remove DeliverToMailboxAndForward, ForwardingAddress, ForwardingSmtpAddress parameters from
Next it will create new role assignment policy and include all roles that Default Role Assignment Policy has but with one exception. It will remove original MyBaseOptions and it will add our custom one. Last step is to assign role to all user and shared mailboxes. The only thing you have to do is to choose policy name and login to exchange online.
Login to Exchange Online Admin Center and you will see new policy
Double-click on it. My base options will be unchecked and our new role will be enabled.
No more forwarding in OWA.
SITE : NEDIMMEHIC.ORG
AUTHOR: NEDIM MEHIC