Disable predefined commands
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
| State | Value written | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Enabled | not defined in the ADMX (see the options below) | ||||||||||||
| Disabled |
|
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 StringDisable
# 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 SilentlyContinueRevert 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 SilentlyContinueOptions (11)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| File tab | Options | ("Customize Ribbon" or "Quick Access Toolbar") | All Commands | Web Page PreviewL_FileWebPagePreview | Check boxboolean | filewebpagepreview | REG_SZ | Checked: REG_SZ = 3655Unchecked: REG_SZ = 0 |
| File tab | Share | EmailL_FileSendToMailRecipient | Check boxboolean | sendtomailrecipient | REG_SZ | Checked: REG_SZ = 2188Unchecked: REG_SZ = 0 |
| Insert tab | Links | HyperlinkL_InsertHyperlinkWd | Check boxboolean | inserthyperlink | REG_SZ | Checked: REG_SZ = 1576Unchecked: REG_SZ = 0 |
| File tab | Info | Protect DocumentL_ToolsProtectDocument | Check boxboolean | flyoutanchorprotectdocumentmenu | REG_SZ | Checked: REG_SZ = 16129Unchecked: REG_SZ = 0 |
| View tab | Macros | MacrosL_ToolsMacroWd | Check boxboolean | toolsmacro | REG_SZ | Checked: REG_SZ = 16106Unchecked: REG_SZ = 0 |
| Developer tab | Code | MacrosL_ToolsMacroMacrosWd | Check boxboolean | toolsmacromacros | REG_SZ | Checked: REG_SZ = 186Unchecked: REG_SZ = 0 |
| Developer tab | Code | Record MacroL_ToolsMacroRecordNewMacro | Check boxboolean | toolsmacrorecord | REG_SZ | Checked: REG_SZ = 2780Unchecked: 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_ToolsMacroVisualBasicEditorWd | Check boxboolean | toolsmacrovbe | REG_SZ | Checked: REG_SZ = 1695Unchecked: REG_SZ = 0 |
| Developer tab | Templates | Document TemplateL_ToolsTemplatesandAddIns | Check boxboolean | toolstemplateaddins | REG_SZ | Checked: REG_SZ = 751Unchecked: REG_SZ = 0 |
| File tab | Options | ("Customize Ribbon" or "Quick Access Toolbar") | All Commands | Document LocationL_WebAddressWd | Check boxboolean | webaddress | REG_SZ | Checked: REG_SZ = 1740Unchecked: REG_SZ = 0 |
Application
Microsoft 365 Apps / Office (Microsoft) — November 2026 templates
Official templates downloaded on November 12, 2026.