Publisher Automation Security Level
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 DWordDisable
# 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 SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| L_Empty | Drop-down listenum | automationsecuritypublisher | REG_DWORD | Default choice (UI): #1
|
Application
Microsoft 365 Apps / Office (Microsoft) — November 2026 templates
Official templates downloaded on November 12, 2026.