Disable predefined commands
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 StringDisable
# 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 SilentlyContinueOptions (10)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| File tab | Export | Publish HTMLL_FilePublishtoWeb | Check boxboolean | filepublishtoweb | REG_SZ | Checked: REG_SZ = 9339Unchecked: REG_SZ = 0 |
| Web tab | View | Web Page PreviewL_FileWebPagePreview | Check boxboolean | filewebpagepreview | REG_SZ | Checked: REG_SZ = 3655Unchecked: REG_SZ = 0 |
| File tab | Share | EmailL_FileSendEmailSendthisPage | Check boxboolean | filesendemailsendthispage | REG_SZ | Checked: REG_SZ = 3738Unchecked: REG_SZ = 0 |
| File tab | Share | E-mail PreviewL_FileSendEmailEmailPreview | Check boxboolean | filesendemailemailpreview | REG_SZ | Checked: REG_SZ = 9418Unchecked: REG_SZ = 0 |
| Developer tabL_ToolsMacro | Check boxboolean | toolsmacro | REG_SZ | Checked: REG_SZ = 12557Unchecked: REG_SZ = 0 |
| Developer tab | Code | MacrosL_ToolsMacroMacros | Check boxboolean | toolsmacromacros | REG_SZ | Checked: REG_SZ = 186Unchecked: REG_SZ = 0 |
| Developer tab | Code | Macro SecurityL_ToolsMacroSecurity | Check boxboolean | toolsmacrosecurity | REG_SZ | Checked: REG_SZ = 3627Unchecked: REG_SZ = 0 |
| Developer tab | Code | Visual BasicL_ToolsMacroVisualBasicEditor | Check boxboolean | toolsmacrovisualbasiceditor | REG_SZ | Checked: REG_SZ = 1695Unchecked: REG_SZ = 0 |
| Developer tab | Add-Ins | COM Add-InsL_ToolsAddIns | Check boxboolean | toolsaddins | REG_SZ | Checked: REG_SZ = 943Unchecked: REG_SZ = 0 |
| File tab | OptionsL_PubOptions1 | Check boxboolean | toolsoptions | REG_SZ | Checked: REG_SZ = 11323Unchecked: REG_SZ = 0 |
Application
Microsoft 365 Apps / Office (Microsoft) — November 2026 templates
Official templates downloaded on November 12, 2026.