Open in the explorer

Disable predefined commands

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

Explanation

This policy setting allows you to disable some specific commands in Microsoft Word. Commands are buttons, menus, or other items that can be added to the Quick Access Toolbar or to the Ribbon under File tab | Options | Quick Access Toolbar or via File | Options | Customize Ribbon, respectively.

If you enable this policy setting then you can specify what commands in the user interface for Word are disabled.

If you disable or do not configure this policy setting, the commands in the predefined list are all enabled in Word.

Registry

HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\word\disabledcmdbaritemscheckboxes
Value name
not defined in the ADMX
StateValue written
Enablednot defined in the ADMX (see the options below)
Disabled
KeyValueData
software\policies\microsoft\office\16.0\word\disabledcmdbaritemscheckboxesweboptionsDeletes the value
software\policies\microsoft\office\16.0\word\disabledcmdbaritemscheckboxesgeneraloptionsDeletes the value
software\policies\microsoft\office\16.0\word\disabledcmdbaritemscheckboxesfileopensearchthewebDeletes the value

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: word16/L_Disablecommandbarbuttonsandmenuitems
$k = 'HKCU:\software\policies\microsoft\office\16.0\word\disabledcmdbaritemscheckboxes'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# File tab | Options | ("Customize Ribbon" or "Quick Access Toolbar") | All Commands | 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 'sendtomailrecipient' -Value '2188' -Type String
# Insert tab | Links | Hyperlink
# unchecked: 0
Set-ItemProperty -Path $k -Name 'inserthyperlink' -Value '1576' -Type String
# File tab | Info | Protect Document
# unchecked: 0
Set-ItemProperty -Path $k -Name 'flyoutanchorprotectdocumentmenu' -Value '16129' -Type String
# View tab | Macros | Macros
# unchecked: 0
Set-ItemProperty -Path $k -Name 'toolsmacro' -Value '16106' -Type String
# Developer tab | Code | Macros
# unchecked: 0
Set-ItemProperty -Path $k -Name 'toolsmacromacros' -Value '186' -Type String
# Developer tab | Code | Record Macro
# unchecked: 0
Set-ItemProperty -Path $k -Name 'toolsmacrorecord' -Value '2780' -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 'toolsmacrovbe' -Value '1695' -Type String
# Developer tab | Templates | Document Template
# unchecked: 0
Set-ItemProperty -Path $k -Name 'toolstemplateaddins' -Value '751' -Type String
# File tab | Options | ("Customize Ribbon" or "Quick Access Toolbar") | All Commands | Document Location
# unchecked: 0
Set-ItemProperty -Path $k -Name 'webaddress' -Value '1740' -Type String

Disable

# Disable: word16/L_Disablecommandbarbuttonsandmenuitems
$k = 'HKCU:\software\policies\microsoft\office\16.0\word\disabledcmdbaritemscheckboxes'
Remove-ItemProperty -Path $k -Name 'weboptions' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'generaloptions' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'fileopensearchtheweb' -ErrorAction SilentlyContinue

Revert to "Not configured"

# Revert to "Not configured": word16/L_Disablecommandbarbuttonsandmenuitems
$k = 'HKCU:\software\policies\microsoft\office\16.0\word\disabledcmdbaritemscheckboxes'
Remove-ItemProperty -Path $k -Name 'weboptions' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'generaloptions' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'fileopensearchtheweb' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'filewebpagepreview' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'sendtomailrecipient' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'inserthyperlink' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'flyoutanchorprotectdocumentmenu' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'toolsmacro' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'toolsmacromacros' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'toolsmacrorecord' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'toolsmacrosecurity' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'toolsmacrovbe' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'toolstemplateaddins' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'webaddress' -ErrorAction SilentlyContinue

Options (11)

LabelControlRegistry valueREG typeConstraints / details
File tab | Options | ("Customize Ribbon" or "Quick Access Toolbar") | All Commands | Web Page PreviewL_FileWebPagePreviewCheck boxbooleanfilewebpagepreviewREG_SZ
Checked: REG_SZ = 3655
Unchecked: REG_SZ = 0
File tab | Share | EmailL_FileSendToMailRecipientCheck boxbooleansendtomailrecipientREG_SZ
Checked: REG_SZ = 2188
Unchecked: REG_SZ = 0
Insert tab | Links | HyperlinkL_InsertHyperlinkWdCheck boxbooleaninserthyperlinkREG_SZ
Checked: REG_SZ = 1576
Unchecked: REG_SZ = 0
File tab | Info | Protect DocumentL_ToolsProtectDocumentCheck boxbooleanflyoutanchorprotectdocumentmenuREG_SZ
Checked: REG_SZ = 16129
Unchecked: REG_SZ = 0
View tab | Macros | MacrosL_ToolsMacroWdCheck boxbooleantoolsmacroREG_SZ
Checked: REG_SZ = 16106
Unchecked: REG_SZ = 0
Developer tab | Code | MacrosL_ToolsMacroMacrosWdCheck boxbooleantoolsmacromacrosREG_SZ
Checked: REG_SZ = 186
Unchecked: REG_SZ = 0
Developer tab | Code | Record MacroL_ToolsMacroRecordNewMacroCheck boxbooleantoolsmacrorecordREG_SZ
Checked: REG_SZ = 2780
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_ToolsMacroVisualBasicEditorWdCheck boxbooleantoolsmacrovbeREG_SZ
Checked: REG_SZ = 1695
Unchecked: REG_SZ = 0
Developer tab | Templates | Document TemplateL_ToolsTemplatesandAddInsCheck boxbooleantoolstemplateaddinsREG_SZ
Checked: REG_SZ = 751
Unchecked: REG_SZ = 0
File tab | Options | ("Customize Ribbon" or "Quick Access Toolbar") | All Commands | Document LocationL_WebAddressWdCheck boxbooleanwebaddressREG_SZ
Checked: REG_SZ = 1740
Unchecked: REG_SZ = 0

Application

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

Official templates downloaded on November 12, 2026.