Open in the explorer

Disable predefined commands

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

Explanation

Specify command bar buttons and menu items to disable.

Registry

HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\visio\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: visio16/L_Disablecommandbarbuttonsandmenuitems
$k = 'HKCU:\software\policies\microsoft\office\16.0\visio\disabledcmdbaritemscheckboxes'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# File Tab | Share | Email
# unchecked: 0
Set-ItemProperty -Path $k -Name 'filesendtomailrecipient' -Value '2188' -Type String
# Insert tab | Hyperlink
# unchecked: 0
Set-ItemProperty -Path $k -Name 'inserthyperlink' -Value '1576' -Type String
# Developer tab | Macros
# unchecked: 0
Set-ItemProperty -Path $k -Name 'toolsmacrosmacros' -Value '186' -Type String
# Developer tab | Visual Basic
# unchecked: 0
Set-ItemProperty -Path $k -Name 'toolsmacrosvbe' -Value '1695' -Type String
# File tab | Options
# unchecked: weboptions=value deleted, generaloptions=value deleted
Set-ItemProperty -Path $k -Name 'weboptions' -Value '4107' -Type String
Set-ItemProperty -Path $k -Name 'generaloptions' -Value '4108' -Type String

Disable

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

Revert to "Not configured"

# Revert to "Not configured": visio16/L_Disablecommandbarbuttonsandmenuitems
$k = 'HKCU:\software\policies\microsoft\office\16.0\visio\disabledcmdbaritemscheckboxes'
Remove-ItemProperty -Path $k -Name 'filesendtomailrecipient' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'inserthyperlink' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'toolsmacrosmacros' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'toolsmacrosvbe' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'toolsoptions' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'weboptions' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'generaloptions' -ErrorAction SilentlyContinue

Options (5)

LabelControlRegistry valueREG typeConstraints / details
File Tab | Share | EmailL_FileSendToMailRecipientCheck boxbooleanfilesendtomailrecipientREG_SZ
Checked: REG_SZ = 2188
Unchecked: REG_SZ = 0
Insert tab | HyperlinkL_InsertHyperlinkCheck boxbooleaninserthyperlinkREG_SZ
Checked: REG_SZ = 1576
Unchecked: REG_SZ = 0
Developer tab | MacrosL_ToolsMacrosMacrosCheck boxbooleantoolsmacrosmacrosREG_SZ
Checked: REG_SZ = 186
Unchecked: REG_SZ = 0
Developer tab | Visual BasicL_ToolsMacrosVisualBasicEditorCheck boxbooleantoolsmacrosvbeREG_SZ
Checked: REG_SZ = 1695
Unchecked: REG_SZ = 0
File tab | OptionsL_VisioOptions99Check 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.