Information
This policy setting controls whether macros can run in an Office application that is opened programmatically by another application.
Policy setting option:
Disable macros by default - All macros are disabled in the programmatically opened application.
The recommended state for this setting is: Enabled: Disable Macros by default.
Rationale:
By default, when a separate program is used to launch Microsoft Office Excel, PowerPoint, or Word programmatically, any macros can run in the programmatically opened application without being blocked. This functionality could allow an attacker to use automation to run malicious code in Excel, PowerPoint, or Word.
Impact:
'Disable macros by default' could limit functionality if an external application programmatically opens a Office application to open a document or template containing macros.
Solution
To establish the recommended configuration via GP, set the following UI path to Enabled: Disable Macros by default:
User Configuration\Administrative Templates\Microsoft Office 2016\Security Settings\Automation Security
Default Value:
Disabled. (any macros can run in the programmatically opened application without being blocked)