Information
This policy setting controls whether Outlook executes scripts that are associated with custom forms or folder home pages for public folders.
If you enable this policy setting Outlook cannot execute any scripts associated with public folders overriding any configuration changes on users' computers. If you disable this policy setting Outlook will automatically run any scripts associated with custom forms or folder home pages for public folders overriding any configuration changes on users' computers. If you do not configure this policy setting Outlook will not run any scripts associated with public folders by default. Users can configure the setting in the Trust Center by selecting the 'Allow script in public folders' check box.
Solution
Policy Path: Microsoft Outlook 2016\Outlook Options\Other\Advanced
Policy Setting Name: Do not allow Outlook object model scripts to run for public folders