Open in the explorer

Disable predefined commands

Type
User
GPO path
User Configuration › Policies › Administrative Templates › Microsoft Publisher 2016 › Disable Items in User Interface › Predefined
Supported on
At least Windows Server 2008 R2 or Windows 7
ADMX file
pub16.admx
Internal name
pub16/L_Disablecommandbarbuttonsandmenuitems

Explanation

This policy setting allows you to disable specific command bar buttons and menu items for Publisher.

If you enable this policy setting, you can enter an ID number to disable a specific command bar button or menu item. The ID number needs to be in decimal (not hexadecimal). Multiple values should be separated by commas.

If you disable or do not configure this policy setting, the predefined list of command bar buttons and menu items are enabled for Publisher.

Registry

HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\publisher\disabledcmdbaritemscheckboxes
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_Disablecommandbarbuttonsandmenuitems
$k = 'HKCU:\software\policies\microsoft\office\16.0\publisher\disabledcmdbaritemscheckboxes'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# File tab | Export | Publish HTML
# unchecked: 0
Set-ItemProperty -Path $k -Name 'filepublishtoweb' -Value '9339' -Type String
# Web tab | View | Web Page Preview
# unchecked: 0
Set-ItemProperty -Path $k -Name 'filewebpagepreview' -Value '3655' -Type String
# File tab | Share | Email
# unchecked: 0
Set-ItemProperty -Path $k -Name 'filesendemailsendthispage' -Value '3738' -Type String
# File tab | Share | E-mail Preview
# unchecked: 0
Set-ItemProperty -Path $k -Name 'filesendemailemailpreview' -Value '9418' -Type String
# Developer tab
# unchecked: 0
Set-ItemProperty -Path $k -Name 'toolsmacro' -Value '12557' -Type String
# Developer tab | Code | Macros
# unchecked: 0
Set-ItemProperty -Path $k -Name 'toolsmacromacros' -Value '186' -Type String
# Developer tab | Code | Macro Security
# unchecked: 0
Set-ItemProperty -Path $k -Name 'toolsmacrosecurity' -Value '3627' -Type String
# Developer tab | Code | Visual Basic
# unchecked: 0
Set-ItemProperty -Path $k -Name 'toolsmacrovisualbasiceditor' -Value '1695' -Type String
# Developer tab | Add-Ins | COM Add-Ins
# unchecked: 0
Set-ItemProperty -Path $k -Name 'toolsaddins' -Value '943' -Type String
# File tab | Options
# unchecked: 0
Set-ItemProperty -Path $k -Name 'toolsoptions' -Value '11323' -Type String

Disable

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

Revert to "Not configured"

# Revert to "Not configured": pub16/L_Disablecommandbarbuttonsandmenuitems
$k = 'HKCU:\software\policies\microsoft\office\16.0\publisher\disabledcmdbaritemscheckboxes'
Remove-ItemProperty -Path $k -Name 'filepublishtoweb' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'filewebpagepreview' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'filesendemailsendthispage' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'filesendemailemailpreview' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'toolsmacro' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'toolsmacromacros' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'toolsmacrosecurity' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'toolsmacrovisualbasiceditor' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'toolsaddins' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'toolsoptions' -ErrorAction SilentlyContinue

Options (10)

LabelControlRegistry valueREG typeConstraints / details
File tab | Export | Publish HTMLL_FilePublishtoWebCheck boxbooleanfilepublishtowebREG_SZ
Checked: REG_SZ = 9339
Unchecked: REG_SZ = 0
Web tab | View | Web Page PreviewL_FileWebPagePreviewCheck boxbooleanfilewebpagepreviewREG_SZ
Checked: REG_SZ = 3655
Unchecked: REG_SZ = 0
File tab | Share | EmailL_FileSendEmailSendthisPageCheck boxbooleanfilesendemailsendthispageREG_SZ
Checked: REG_SZ = 3738
Unchecked: REG_SZ = 0
File tab | Share | E-mail PreviewL_FileSendEmailEmailPreviewCheck boxbooleanfilesendemailemailpreviewREG_SZ
Checked: REG_SZ = 9418
Unchecked: REG_SZ = 0
Developer tabL_ToolsMacroCheck boxbooleantoolsmacroREG_SZ
Checked: REG_SZ = 12557
Unchecked: REG_SZ = 0
Developer tab | Code | MacrosL_ToolsMacroMacrosCheck boxbooleantoolsmacromacrosREG_SZ
Checked: REG_SZ = 186
Unchecked: REG_SZ = 0
Developer tab | Code | Macro SecurityL_ToolsMacroSecurityCheck boxbooleantoolsmacrosecurityREG_SZ
Checked: REG_SZ = 3627
Unchecked: REG_SZ = 0
Developer tab | Code | Visual BasicL_ToolsMacroVisualBasicEditorCheck boxbooleantoolsmacrovisualbasiceditorREG_SZ
Checked: REG_SZ = 1695
Unchecked: REG_SZ = 0
Developer tab | Add-Ins | COM Add-InsL_ToolsAddInsCheck boxbooleantoolsaddinsREG_SZ
Checked: REG_SZ = 943
Unchecked: REG_SZ = 0
File tab | OptionsL_PubOptions1Check boxbooleantoolsoptionsREG_SZ
Checked: REG_SZ = 11323
Unchecked: REG_SZ = 0

Application

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

Official templates downloaded on November 12, 2026.