Open in the explorer

Publisher Automation Security Level

Type
User
GPO path
User Configuration › Policies › Administrative Templates › Microsoft Publisher 2016 › Security
Supported on
At least Windows Server 2008 R2 or Windows 7
ADMX file
pub16.admx
Internal name
pub16/L_PublisherAutomationSecurityLevel

Explanation

This policy setting controls whether macros opened programmatically by another application can run in Publisher.

If you enable this policy setting, you may choose an option for controlling macro behavior in Publisher when the application is opened programmatically:

- Low (enabled): Macros can run in the programmatically opened application.
- By UI (prompted): Macro functionality is determined by the setting in the "Macro Settings" section of the Trust Center.
- High (disabled): All macros are disabled in the programmatically opened application.

If you disable or do not configure this policy setting, Publisher will use the default Macro setting in Trust Center.

Registry

HKEY_CURRENT_USER\software\policies\microsoft\office\common\security
Value name
not defined in the ADMX

Enable / disable values: not defined in the ADMX (see the options below).

PowerShell

PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.

Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.

Enable

# Enable: pub16/L_PublisherAutomationSecurityLevel
$k = 'HKCU:\software\policies\microsoft\office\common\security'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
#
# Possible options:
#   Low (enabled) = 1
#   By UI (prompted) = 2
#   High (disabled) = 3
Set-ItemProperty -Path $k -Name 'automationsecuritypublisher' -Value 2 -Type DWord

Disable

# Disable: pub16/L_PublisherAutomationSecurityLevel
# No value is written in the "Disabled" state (nothing defined in the ADMX)

Revert to "Not configured"

# Revert to "Not configured": pub16/L_PublisherAutomationSecurityLevel
$k = 'HKCU:\software\policies\microsoft\office\common\security'
Remove-ItemProperty -Path $k -Name 'automationsecuritypublisher' -ErrorAction SilentlyContinue

Options (1)

LabelControlRegistry valueREG typeConstraints / details
L_EmptyDrop-down listenumautomationsecuritypublisherREG_DWORD
Default choice (UI): #1
LabelValue
Low (enabled)REG_DWORD = 1
By UI (prompted)REG_DWORD = 2
High (disabled)REG_DWORD = 3

Application

Microsoft 365 Apps / Office (Microsoft) — November 2026 templates

Official templates downloaded on November 12, 2026.