Disable predefined commands
Explanation
This policy setting allows you to disable specific command bar buttons and menu items in the specified applications.
If you enable this policy setting you can disable specific command bar buttons and menu items in the user interface for the selected application. The predefined list of command bar buttons and menu items you can disable becomes available to you when you enable this policy setting.
If you disable or do not configure this policy setting, the predefined list of command bar buttons and menu items are enabled for the application.
Registry
HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\access\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: access16/L_Disablecommandbarbuttonsandmenuitems
$k = 'HKCU:\software\policies\microsoft\office\16.0\access\disabledcmdbaritemscheckboxes'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# File tab | Access Options | Customize | All Commands | Email
# unchecked: 0
Set-ItemProperty -Path $k -Name 'sendtomailrecipient' -Value '2188' -Type String
# Database tools | Database tools | Encrypt with Password
# unchecked: 0
Set-ItemProperty -Path $k -Name 'toolssecuritysetpwd' -Value '1814' -Type String
# File tab | Access Options | Customize | All Commands | User and Group Permissions
# unchecked: 0
Set-ItemProperty -Path $k -Name 'toolssecurityperms' -Value '572' -Type String
# File tab | Access Options | Customize | All Commands | User and Group accounts
# unchecked: 0
Set-ItemProperty -Path $k -Name 'toolssecurityaccts' -Value '1816' -Type String
# File tab | Access Options | Customize | All Commands | User-Level Security Wizard...
# unchecked: 0
Set-ItemProperty -Path $k -Name 'toolssecuritysecwiz' -Value '1815' -Type String
# File tab | Access Options | Customize | All Commands | Encode/Decode Database
# unchecked: 0
Set-ItemProperty -Path $k -Name 'toolssecurityencrypt' -Value '2074' -Type String
# Database tools | Macro | Visual Basic
# unchecked: 0
Set-ItemProperty -Path $k -Name 'toolsmacrovbe' -Value '1695' -Type String
# Database Tools | Macro | Run Macro
# unchecked: 0
Set-ItemProperty -Path $k -Name 'accrunmacro' -Value '5745' -Type String
# Database Tools | Macro | Convert Macros to Visual Basic
# unchecked: 0
Set-ItemProperty -Path $k -Name 'toolsmacroconvertmacros' -Value '2948' -Type String
# Database Tools | Macro | Create Shortcut Menu from Macro
# unchecked: 0
Set-ItemProperty -Path $k -Name 'toolsmacrocreateshortcutmenu' -Value '1570' -Type String
# Database Tools | Database Tools | Add-Ins
# unchecked: 0
Set-ItemProperty -Path $k -Name 'addinsmenuicon' -Value '15719' -Type StringDisable
# Disable: access16/L_Disablecommandbarbuttonsandmenuitems
$k = 'HKCU:\software\policies\microsoft\office\16.0\access\disabledcmdbaritemscheckboxes'
Remove-ItemProperty -Path $k -Name 'fileopensearchtheweb' -ErrorAction SilentlyContinueRevert to "Not configured"
# Revert to "Not configured": access16/L_Disablecommandbarbuttonsandmenuitems
$k = 'HKCU:\software\policies\microsoft\office\16.0\access\disabledcmdbaritemscheckboxes'
Remove-ItemProperty -Path $k -Name 'fileopensearchtheweb' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'sendtomailrecipient' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'toolssecuritysetpwd' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'toolssecurityperms' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'toolssecurityaccts' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'toolssecuritysecwiz' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'toolssecurityencrypt' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'toolsmacrovbe' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'accrunmacro' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'toolsmacroconvertmacros' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'toolsmacrocreateshortcutmenu' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'addinsmenuicon' -ErrorAction SilentlyContinueOptions (11)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| File tab | Access Options | Customize | All Commands | EmailL_FileSendToMailRecipient | Check boxboolean | sendtomailrecipient | REG_SZ | Checked: REG_SZ = 2188Unchecked: REG_SZ = 0 |
| Database tools | Database tools | Encrypt with PasswordL_ToolsSecuritySetDatabasePassword | Check boxboolean | toolssecuritysetpwd | REG_SZ | Checked: REG_SZ = 1814Unchecked: REG_SZ = 0 |
| File tab | Access Options | Customize | All Commands | User and Group PermissionsL_ToolsSecurityUserandGroupPermissions | Check boxboolean | toolssecurityperms | REG_SZ | Checked: REG_SZ = 572Unchecked: REG_SZ = 0 |
| File tab | Access Options | Customize | All Commands | User and Group accountsL_ToolsSecurityUserandGroupAccounts | Check boxboolean | toolssecurityaccts | REG_SZ | Checked: REG_SZ = 1816Unchecked: REG_SZ = 0 |
| File tab | Access Options | Customize | All Commands | User-Level Security Wizard...L_ToolsSecurityUserLevelSecurityWizard | Check boxboolean | toolssecuritysecwiz | REG_SZ | Checked: REG_SZ = 1815Unchecked: REG_SZ = 0 |
| File tab | Access Options | Customize | All Commands | Encode/Decode DatabaseL_ToolsSecurityEncryptDecryptDatabase | Check boxboolean | toolssecurityencrypt | REG_SZ | Checked: REG_SZ = 2074Unchecked: REG_SZ = 0 |
| Database tools | Macro | Visual BasicL_ToolsMacroVisualBasicEditorAcc | Check boxboolean | toolsmacrovbe | REG_SZ | Checked: REG_SZ = 1695Unchecked: REG_SZ = 0 |
| Database Tools | Macro | Run MacroL_ToolsMacroRunMacro | Check boxboolean | accrunmacro | REG_SZ | Checked: REG_SZ = 5745Unchecked: REG_SZ = 0 |
| Database Tools | Macro | Convert Macros to Visual BasicL_ToolsMacroConvertMacrostoVisualBasic | Check boxboolean | toolsmacroconvertmacros | REG_SZ | Checked: REG_SZ = 2948Unchecked: REG_SZ = 0 |
| Database Tools | Macro | Create Shortcut Menu from MacroL_ToolsMacroCreateShortcutMenufromMacro | Check boxboolean | toolsmacrocreateshortcutmenu | REG_SZ | Checked: REG_SZ = 1570Unchecked: REG_SZ = 0 |
| Database Tools | Database Tools | Add-InsL_ToolsAddInsAcc | Check boxboolean | addinsmenuicon | REG_SZ | Checked: REG_SZ = 15719Unchecked: REG_SZ = 0 |
Application
Microsoft 365 Apps / Office (Microsoft) — November 2026 templates
Official templates downloaded on November 12, 2026.