GPO tool

Group Policy made searchable

A free ADMX browser or comparison tool for IT administrators. Search policies, find registry keys, and see exactly what each setting writes to the Windows Registry. Or compare two GPO backups to see exactly what has changed between them.

Select a product
  • Select a category.

Block macros from running in Office files from the internet

This policy setting allows you to block macros from running in Office files that come from the internet.

If you enable this policy setting, macros are blocked from running, even if "Enable all macros" is selected in the Macro Settings section of the Trust Center. Users will receive a notification that macros are blocked from running.

The exceptions when macros will be allowed to run are:
- The Office file is saved to a Trusted Location.
- The Office file was previously trusted by the user.
- Macros are digitally signed and the matching Trusted Publisher certificate is installed on the device.

If you disable this policy setting, the settings configured in the Macro Settings section of the Trust Center determine whether macros run in Office files that come from the internet.

If you don’t configure this policy setting, macros will be blocked from running. Users will receive a notification telling them of the security risks of macros from the internet along with a link to learn more.

For more information, see https://go.microsoft.com/fwlink/p/?linkid=2185771.

Registry Information

VendorMicrosoft
ProductMicrosoft Publisher 2016
CategoryMicrosoft Publisher 2016 › Security › Trust Center
Applies toUser Configuration
Supported onWindows7
Registry Key[HKCU]softwarepoliciesmicrosoftoffice16.0publishersecurity
Value Nameblockcontentexecutionfrominternet
TypeREG_DWORD
Enabled value1
Disabled value0

Registry File (.reg)

Windows Registry Editor Version 5.00

; Enable the policy
[HKEY_CURRENT_USERsoftwarepoliciesmicrosoftoffice16.0publishersecurity]
"blockcontentexecutionfrominternet"=dword:00000001

; Disable the policy
[HKEY_CURRENT_USERsoftwarepoliciesmicrosoftoffice16.0publishersecurity]
"blockcontentexecutionfrominternet"=dword:00000000

PowerShell

# Enable the policy
Set-ItemProperty -Path "HKCU:softwarepoliciesmicrosoftoffice16.0publishersecurity" -Name "blockcontentexecutionfrominternet" -Value 1 -Type DWord

# Disable the policy
Set-ItemProperty -Path "HKCU:softwarepoliciesmicrosoftoffice16.0publishersecurity" -Name "blockcontentexecutionfrominternet" -Value 0 -Type DWord