Microsoft Excel 2016 › Disable Items in User Interface › Predefined
Disable predefined commands
Supported on SUPPORTED_Windows7 (defined in the Windows templates)
What it does
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.
What it writes
- Hive
- HKEY_CURRENT_USER
- Registry key
software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes- When disabled
- software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes\filepublishaswebpage = value removed; software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes\weboptions = value removed; software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes\generaloptions = value removed; software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes\fileopensearchtheweb = value removed
Why it needs changes for Intune
- Policy references a Windows supportedOn definition.
- ADMX-INTUNE-WINDOWS-SUPPORTEDON-REFERENCE
Options
| Option | Type | Registry value | Allowed values |
|---|---|---|---|
| File tab | Options | Customize Ribbon | All Commands | Web Page Preview | Checkbox | filewebpagepreview |
On (1) or off (0) |
| File tab | Share | Email | Checkbox | sendtomailrecipient |
On (1) or off (0) |
| Insert tab | Links | Hyperlink | Checkbox | inserthyperlink |
On (1) or off (0) |
| Review tab | Changes | Protect Sheet | Checkbox | toolsprotectsheet |
On (1) or off (0) |
| Review tab | Changes | Protect Workbook | Checkbox | flyoutanchorprotectworkbookmenu |
On (1) or off (0) |
| Review tab | Changes | Protect and Share Workbook | Checkbox | toolsprotectshare |
On (1) or off (0) |
| View tab | Macros | Macros | Checkbox | flyoutanchormacros |
On (1) or off (0) |
| Developer tab | Code | Macros | Checkbox | toolsmacromacros |
On (1) or off (0) |
| Developer tab | Code | Record Macro | Checkbox | toolsmacrorecord |
On (1) or off (0) |
| Developer tab | Code | Macro Security | Checkbox | toolsmacrosecurity |
On (1) or off (0) |
| Developer tab | Code | Visual Basic | Checkbox | toolsmacrovbe |
On (1) or off (0) |
| File tab | Options | Customize Ribbon | All Commands | Document Location | Checkbox | webaddress |
On (1) or off (0) |
Configure and deploy
Choose a state and the option values; the output below is generated from the template for exactly that.
Enabled · User · template defaults
Registry file (.reg)
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes]
"filewebpagepreview"="3655"
"flyoutanchormacros"="16106"
"flyoutanchorprotectworkbookmenu"="16132"
"inserthyperlink"="1576"
"sendtomailrecipient"="2188"
"toolsmacromacros"="186"
"toolsmacrorecord"="184"
"toolsmacrosecurity"="3627"
"toolsmacrovbe"="1695"
"toolsprotectshare"="3059"
"toolsprotectsheet"="893"
"webaddress"="1740"
PowerShell
$ErrorActionPreference = 'Stop'
function Set-RegistryValue {
param(
[Parameter(Mandatory = $true)][string] $Path,
[Parameter(Mandatory = $true)][string] $Name,
[Parameter(Mandatory = $true)][string] $PropertyType,
[Parameter(Mandatory = $true)][object] $Value
)
if (-not (Test-Path -LiteralPath $Path)) {
New-Item -Path $Path -Force | Out-Null
}
New-ItemProperty -LiteralPath $Path -Name $Name -PropertyType $PropertyType -Value $Value -Force | Out-Null
}
function Remove-RegistryValue {
param(
[Parameter(Mandatory = $true)][string] $Path,
[Parameter(Mandatory = $true)][string] $Name
)
if (Test-Path -LiteralPath $Path) {
Remove-ItemProperty -LiteralPath $Path -Name $Name -Force -ErrorAction SilentlyContinue
}
}
function Clear-RegistryKeyValues {
param(
[Parameter(Mandatory = $true)][string] $Path
)
if (-not (Test-Path -LiteralPath $Path)) {
return
}
foreach ($propertyName in (Get-Item -LiteralPath $Path).Property) {
Remove-ItemProperty -LiteralPath $Path -Name $propertyName -Force -ErrorAction SilentlyContinue
}
}
# Policy: Disable predefined commands
# Name: L_Disablecommandbarbuttonsandmenuitems
# Scope: User
# State: Enabled
# Source: excel16.admx
Set-RegistryValue -Path 'Registry::HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes' -Name 'filewebpagepreview' -PropertyType 'String' -Value '3655'
Set-RegistryValue -Path 'Registry::HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes' -Name 'sendtomailrecipient' -PropertyType 'String' -Value '2188'
Set-RegistryValue -Path 'Registry::HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes' -Name 'inserthyperlink' -PropertyType 'String' -Value '1576'
Set-RegistryValue -Path 'Registry::HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes' -Name 'toolsprotectsheet' -PropertyType 'String' -Value '893'
Set-RegistryValue -Path 'Registry::HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes' -Name 'flyoutanchorprotectworkbookmenu' -PropertyType 'String' -Value '16132'
Set-RegistryValue -Path 'Registry::HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes' -Name 'toolsprotectshare' -PropertyType 'String' -Value '3059'
Set-RegistryValue -Path 'Registry::HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes' -Name 'flyoutanchormacros' -PropertyType 'String' -Value '16106'
Set-RegistryValue -Path 'Registry::HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes' -Name 'toolsmacromacros' -PropertyType 'String' -Value '186'
Set-RegistryValue -Path 'Registry::HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes' -Name 'toolsmacrorecord' -PropertyType 'String' -Value '184'
Set-RegistryValue -Path 'Registry::HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes' -Name 'toolsmacrosecurity' -PropertyType 'String' -Value '3627'
Set-RegistryValue -Path 'Registry::HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes' -Name 'toolsmacrovbe' -PropertyType 'String' -Value '1695'
Set-RegistryValue -Path 'Registry::HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes' -Name 'webaddress' -PropertyType 'String' -Value '1740'
- The OMA-URI is an inferred ADMX-backed Policy CSP candidate derived from the source ADMX file name and policy name.
- Some Microsoft policies use built-in Policy CSP pages whose area names don't match the ADMX file name, so verify the candidate against Microsoft Learn before deployment.
- The generated payload is incomplete because one or more ADMX element values were not supplied: L_OfficeButtonxcelOptionsCustomizationCombinedPreviewWebPagePreview, L_OfficeButtonExcelOptionsCustomizationMailRecipient, L_InsertLinksHyperlink, L_ReviewChangesProtectSheet, L_ReviewChangesProtectWorkbook, L_ReviewChangesProtectSharing, L_ViewMacrosMacros, L_DeveloperCodeMacros, L_DeveloperCodeRecordMacro, L_DeveloperCodemacroSecurity, L_DeveloperCodeVisualbasic, L_OfficeButtonExcelOptionsCustomizeDocumentLocation
ADMX profile candidate (OMA-URI)
./User/Vendor/MSFT/Policy/Config/ADMX_excel16/L_DisablecommandbarbuttonsandmenuitemsIntune remediation scripts
Detection
$ErrorActionPreference = 'Stop'
$reasons = [System.Collections.Generic.List[string]]::new()
function Test-RegistryValueExists {
param(
[Parameter(Mandatory = $true)][string] $Path,
[Parameter(Mandatory = $true)][string] $Name
)
if (-not (Test-Path -LiteralPath $Path)) {
return $false
}
return $null -ne (Get-ItemProperty -LiteralPath $Path -Name $Name -ErrorAction SilentlyContinue)
}
function Test-RegistryValueEquals {
param(
[Parameter(Mandatory = $true)][string] $Path,
[Parameter(Mandatory = $true)][string] $Name,
[Parameter(Mandatory = $true)][string] $Kind,
[Parameter(Mandatory = $true)][object] $Expected
)
if (-not (Test-Path -LiteralPath $Path)) {
return $false
}
$valueObject = Get-ItemProperty -LiteralPath $Path -Name $Name -ErrorAction SilentlyContinue
if ($null -eq $valueObject) {
return $false
}
$actual = $valueObject.$Name
switch ($Kind) {
'String' { return [string]$actual -ceq [string]$Expected }
'ExpandString' { return [string]$actual -ceq [string]$Expected }
'DWord' { return [uint32]$actual -eq [uint32]$Expected }
'QWord' { return [uint64]$actual -eq [uint64]$Expected }
'MultiString' {
$actualArray = @($actual)
$expectedArray = @($Expected)
if ($actualArray.Count -ne $expectedArray.Count) { return $false }
for ($index = 0; $index -lt $actualArray.Count; $index++) {
if ([string]$actualArray[$index] -cne [string]$expectedArray[$index]) { return $false }
}
return $true
}
'Binary' {
$actualArray = [byte[]]$actual
$expectedArray = [byte[]]$Expected
if ($actualArray.Length -ne $expectedArray.Length) { return $false }
for ($index = 0; $index -lt $actualArray.Length; $index++) {
if ($actualArray[$index] -ne $expectedArray[$index]) { return $false }
}
return $true
}
default { return [string]$actual -ceq [string]$Expected }
}
}
# Policy: Disable predefined commands
# Name: L_Disablecommandbarbuttonsandmenuitems
# Scope: User
# State: Enabled
# Source: excel16.admx
$isMatch = Test-RegistryValueEquals -Path 'Registry::HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes' -Name 'filewebpagepreview' -Kind 'String' -Expected '3655'
if (-not $isMatch) {
$reasons.Add('Value mismatch: HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes\filewebpagepreview') | Out-Null
}
$isMatch = Test-RegistryValueEquals -Path 'Registry::HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes' -Name 'sendtomailrecipient' -Kind 'String' -Expected '2188'
if (-not $isMatch) {
$reasons.Add('Value mismatch: HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes\sendtomailrecipient') | Out-Null
}
$isMatch = Test-RegistryValueEquals -Path 'Registry::HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes' -Name 'inserthyperlink' -Kind 'String' -Expected '1576'
if (-not $isMatch) {
$reasons.Add('Value mismatch: HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes\inserthyperlink') | Out-Null
}
$isMatch = Test-RegistryValueEquals -Path 'Registry::HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes' -Name 'toolsprotectsheet' -Kind 'String' -Expected '893'
if (-not $isMatch) {
$reasons.Add('Value mismatch: HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes\toolsprotectsheet') | Out-Null
}
$isMatch = Test-RegistryValueEquals -Path 'Registry::HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes' -Name 'flyoutanchorprotectworkbookmenu' -Kind 'String' -Expected '16132'
if (-not $isMatch) {
$reasons.Add('Value mismatch: HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes\flyoutanchorprotectworkbookmenu') | Out-Null
}
$isMatch = Test-RegistryValueEquals -Path 'Registry::HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes' -Name 'toolsprotectshare' -Kind 'String' -Expected '3059'
if (-not $isMatch) {
$reasons.Add('Value mismatch: HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes\toolsprotectshare') | Out-Null
}
$isMatch = Test-RegistryValueEquals -Path 'Registry::HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes' -Name 'flyoutanchormacros' -Kind 'String' -Expected '16106'
if (-not $isMatch) {
$reasons.Add('Value mismatch: HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes\flyoutanchormacros') | Out-Null
}
$isMatch = Test-RegistryValueEquals -Path 'Registry::HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes' -Name 'toolsmacromacros' -Kind 'String' -Expected '186'
if (-not $isMatch) {
$reasons.Add('Value mismatch: HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes\toolsmacromacros') | Out-Null
}
$isMatch = Test-RegistryValueEquals -Path 'Registry::HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes' -Name 'toolsmacrorecord' -Kind 'String' -Expected '184'
if (-not $isMatch) {
$reasons.Add('Value mismatch: HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes\toolsmacrorecord') | Out-Null
}
$isMatch = Test-RegistryValueEquals -Path 'Registry::HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes' -Name 'toolsmacrosecurity' -Kind 'String' -Expected '3627'
if (-not $isMatch) {
$reasons.Add('Value mismatch: HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes\toolsmacrosecurity') | Out-Null
}
$isMatch = Test-RegistryValueEquals -Path 'Registry::HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes' -Name 'toolsmacrovbe' -Kind 'String' -Expected '1695'
if (-not $isMatch) {
$reasons.Add('Value mismatch: HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes\toolsmacrovbe') | Out-Null
}
$isMatch = Test-RegistryValueEquals -Path 'Registry::HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes' -Name 'webaddress' -Kind 'String' -Expected '1740'
if (-not $isMatch) {
$reasons.Add('Value mismatch: HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes\webaddress') | Out-Null
}
if ($reasons.Count -eq 0) {
Write-Output 'Compliant'
exit 0
}
$reasons | ForEach-Object { Write-Output $_ }
exit 1
Remediation
$ErrorActionPreference = 'Stop'
function Set-RegistryValue {
param(
[Parameter(Mandatory = $true)][string] $Path,
[Parameter(Mandatory = $true)][string] $Name,
[Parameter(Mandatory = $true)][string] $PropertyType,
[Parameter(Mandatory = $true)][object] $Value
)
if (-not (Test-Path -LiteralPath $Path)) {
New-Item -Path $Path -Force | Out-Null
}
New-ItemProperty -LiteralPath $Path -Name $Name -PropertyType $PropertyType -Value $Value -Force | Out-Null
}
function Remove-RegistryValue {
param(
[Parameter(Mandatory = $true)][string] $Path,
[Parameter(Mandatory = $true)][string] $Name
)
if (Test-Path -LiteralPath $Path) {
Remove-ItemProperty -LiteralPath $Path -Name $Name -Force -ErrorAction SilentlyContinue
}
}
function Clear-RegistryKeyValues {
param(
[Parameter(Mandatory = $true)][string] $Path
)
if (-not (Test-Path -LiteralPath $Path)) {
return
}
foreach ($propertyName in (Get-Item -LiteralPath $Path).Property) {
Remove-ItemProperty -LiteralPath $Path -Name $propertyName -Force -ErrorAction SilentlyContinue
}
}
# Policy: Disable predefined commands
# Name: L_Disablecommandbarbuttonsandmenuitems
# Scope: User
# State: Enabled
# Source: excel16.admx
Set-RegistryValue -Path 'Registry::HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes' -Name 'filewebpagepreview' -PropertyType 'String' -Value '3655'
Set-RegistryValue -Path 'Registry::HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes' -Name 'sendtomailrecipient' -PropertyType 'String' -Value '2188'
Set-RegistryValue -Path 'Registry::HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes' -Name 'inserthyperlink' -PropertyType 'String' -Value '1576'
Set-RegistryValue -Path 'Registry::HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes' -Name 'toolsprotectsheet' -PropertyType 'String' -Value '893'
Set-RegistryValue -Path 'Registry::HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes' -Name 'flyoutanchorprotectworkbookmenu' -PropertyType 'String' -Value '16132'
Set-RegistryValue -Path 'Registry::HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes' -Name 'toolsprotectshare' -PropertyType 'String' -Value '3059'
Set-RegistryValue -Path 'Registry::HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes' -Name 'flyoutanchormacros' -PropertyType 'String' -Value '16106'
Set-RegistryValue -Path 'Registry::HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes' -Name 'toolsmacromacros' -PropertyType 'String' -Value '186'
Set-RegistryValue -Path 'Registry::HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes' -Name 'toolsmacrorecord' -PropertyType 'String' -Value '184'
Set-RegistryValue -Path 'Registry::HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes' -Name 'toolsmacrosecurity' -PropertyType 'String' -Value '3627'
Set-RegistryValue -Path 'Registry::HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes' -Name 'toolsmacrovbe' -PropertyType 'String' -Value '1695'
Set-RegistryValue -Path 'Registry::HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes' -Name 'webaddress' -PropertyType 'String' -Value '1740'
History 1 retained release
- 5568.100010 Aug 2026
- Already present in the first release ChangeIntel keeps.
Template
- Internal name
L_Disablecommandbarbuttonsandmenuitems- Namespace
excel16.Office.Microsoft.Policies.Windows- Template file
excel16.admx- Release
- Microsoft 365 Apps 5568.1000 · file set
8be05d876aae137d…
Definition, editor controls and support
Definition
<policy class="User" displayName="$(string.L_Disablecommandbarbuttonsandmenuitems)" explainText="$(string.L_DisablecommandbarbuttonsandmenuitemsPredefinedExplain)" key="software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes" name="L_Disablecommandbarbuttonsandmenuitems" presentation="$(presentation.L_Disablecommandbarbuttonsandmenuitems)" xmlns="http://schemas.microsoft.com/GroupPolicy/2006/07/PolicyDefinitions">
<parentCategory ref="excel16.Office.Microsoft.Policies.Windows:L_Predefined" />
<supportedOn ref="Microsoft.Policies.Windows:SUPPORTED_Windows7" />
<disabledList>
<item key="software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes" valueName="filepublishaswebpage">
<value>
<delete />
</value>
</item>
<item key="software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes" valueName="weboptions">
<value>
<delete />
</value>
</item>
<item key="software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes" valueName="generaloptions">
<value>
<delete />
</value>
</item>
<item key="software\policies\microsoft\office\16.0\excel\disabledcmdbaritemscheckboxes" valueName="fileopensearchtheweb">
<value>
<delete />
</value>
</item>
</disabledList>
<elements>
<boolean id="L_OfficeButtonxcelOptionsCustomizationCombinedPreviewWebPagePreview" valueName="filewebpagepreview">
<trueValue>
<string>3655</string>
</trueValue>
<falseValue>
<string>0</string>
</falseValue>
</boolean>
<boolean id="L_OfficeButtonExcelOptionsCustomizationMailRecipient" valueName="sendtomailrecipient">
<trueValue>
<string>2188</string>
</trueValue>
<falseValue>
<string>0</string>
</falseValue>
</boolean>
<boolean id="L_InsertLinksHyperlink" valueName="inserthyperlink">
<trueValue>
<string>1576</string>
</trueValue>
<falseValue>
<string>0</string>
</falseValue>
</boolean>
<boolean id="L_ReviewChangesProtectSheet" valueName="toolsprotectsheet">
<trueValue>
<string>893</string>
</trueValue>
<falseValue>
<string>0</string>
</falseValue>
</boolean>
<boolean id="L_ReviewChangesProtectWorkbook" valueName="flyoutanchorprotectworkbookmenu">
<trueValue>
<string>16132</string>
</trueValue>
<falseValue>
<string>0</string>
</falseValue>
</boolean>
<boolean id="L_ReviewChangesProtectSharing" valueName="toolsprotectshare">
<trueValue>
<string>3059</string>
</trueValue>
<falseValue>
<string>0</string>
</falseValue>
</boolean>
<boolean id="L_ViewMacrosMacros" valueName="flyoutanchormacros">
<trueValue>
<string>16106</string>
</trueValue>
<falseValue>
<string>0</string>
</falseValue>
</boolean>
<boolean id="L_DeveloperCodeMacros" valueName="toolsmacromacros">
<trueValue>
<string>186</string>
</trueValue>
<falseValue>
<string>0</string>
</falseValue>
</boolean>
<boolean id="L_DeveloperCodeRecordMacro" valueName="toolsmacrorecord">
<trueValue>
<string>184</string>
</trueValue>
<falseValue>
<string>0</string>
</falseValue>
</boolean>
<boolean id="L_DeveloperCodemacroSecurity" valueName="toolsmacrosecurity">
<trueValue>
<string>3627</string>
</trueValue>
<falseValue>
<string>0</string>
</falseValue>
</boolean>
<boolean id="L_DeveloperCodeVisualbasic" valueName="toolsmacrovbe">
<trueValue>
<string>1695</string>
</trueValue>
<falseValue>
<string>0</string>
</falseValue>
</boolean>
<boolean id="L_OfficeButtonExcelOptionsCustomizeDocumentLocation" valueName="webaddress">
<trueValue>
<string>1740</string>
</trueValue>
<falseValue>
<string>0</string>
</falseValue>
</boolean>
</elements>
</policy>Editor controls
<presentation id="L_Disablecommandbarbuttonsandmenuitems" xmlns="http://schemas.microsoft.com/GroupPolicy/2006/07/PolicyDefinitions">
<checkBox refId="L_OfficeButtonxcelOptionsCustomizationCombinedPreviewWebPagePreview">File tab | Options | Customize Ribbon | All Commands | Web Page Preview</checkBox>
<checkBox refId="L_OfficeButtonExcelOptionsCustomizationMailRecipient">File tab | Share | Email</checkBox>
<checkBox refId="L_InsertLinksHyperlink">Insert tab | Links | Hyperlink</checkBox>
<checkBox refId="L_ReviewChangesProtectSheet">Review tab | Changes | Protect Sheet</checkBox>
<checkBox refId="L_ReviewChangesProtectWorkbook">Review tab | Changes | Protect Workbook</checkBox>
<checkBox refId="L_ReviewChangesProtectSharing">Review tab | Changes | Protect and Share Workbook</checkBox>
<checkBox refId="L_ViewMacrosMacros">View tab | Macros | Macros</checkBox>
<checkBox refId="L_DeveloperCodeMacros">Developer tab | Code | Macros</checkBox>
<checkBox refId="L_DeveloperCodeRecordMacro">Developer tab | Code | Record Macro</checkBox>
<checkBox refId="L_DeveloperCodemacroSecurity">Developer tab | Code | Macro Security</checkBox>
<checkBox refId="L_DeveloperCodeVisualbasic">Developer tab | Code | Visual Basic</checkBox>
<checkBox refId="L_OfficeButtonExcelOptionsCustomizeDocumentLocation">File tab | Options | Customize Ribbon | All Commands | Document Location</checkBox>
</presentation>Supported platforms and category
excel16.Office.Microsoft.Policies.Windows:category:L_Disableitemsinuserinterface
<category displayName="$(string.L_Disableitemsinuserinterface)" name="L_Disableitemsinuserinterface" xmlns="http://schemas.microsoft.com/GroupPolicy/2006/07/PolicyDefinitions">
<parentCategory ref="excel16.Office.Microsoft.Policies.Windows:L_MicrosoftOfficeExcel" />
</category>
excel16.Office.Microsoft.Policies.Windows:category:L_MicrosoftOfficeExcel
<category displayName="$(string.L_MicrosoftOfficeExcel)" name="L_MicrosoftOfficeExcel" xmlns="http://schemas.microsoft.com/GroupPolicy/2006/07/PolicyDefinitions" />
excel16.Office.Microsoft.Policies.Windows:category:L_Predefined
<category displayName="$(string.L_Predefined)" name="L_Predefined" xmlns="http://schemas.microsoft.com/GroupPolicy/2006/07/PolicyDefinitions">
<parentCategory ref="excel16.Office.Microsoft.Policies.Windows:L_Disableitemsinuserinterface" />
</category>
excel16.Office.Microsoft.Policies.Windows:unresolved:Microsoft.Policies.Windows:SUPPORTED_Windows7
<unresolved reference="Microsoft.Policies.Windows:SUPPORTED_Windows7" />
excel16.Office.Microsoft.Policies.Windows:category:L_Disableitemsinuserinterface
<category displayName="$(string.L_Disableitemsinuserinterface)" name="L_Disableitemsinuserinterface" xmlns="http://schemas.microsoft.com/GroupPolicy/2006/07/PolicyDefinitions">
<parentCategory ref="excel16.Office.Microsoft.Policies.Windows:L_MicrosoftOfficeExcel" />
</category>
<strings><string id="excel16.Office.Microsoft.Policies.Windows:L_Disableitemsinuserinterface">Disable Items in User Interface</string></strings>
excel16.Office.Microsoft.Policies.Windows:category:L_MicrosoftOfficeExcel
<category displayName="$(string.L_MicrosoftOfficeExcel)" name="L_MicrosoftOfficeExcel" xmlns="http://schemas.microsoft.com/GroupPolicy/2006/07/PolicyDefinitions" />
<strings><string id="excel16.Office.Microsoft.Policies.Windows:L_MicrosoftOfficeExcel">Microsoft Excel 2016</string></strings>
excel16.Office.Microsoft.Policies.Windows:category:L_Predefined
<category displayName="$(string.L_Predefined)" name="L_Predefined" xmlns="http://schemas.microsoft.com/GroupPolicy/2006/07/PolicyDefinitions">
<parentCategory ref="excel16.Office.Microsoft.Policies.Windows:L_Disableitemsinuserinterface" />
</category>
<strings><string id="excel16.Office.Microsoft.Policies.Windows:L_Predefined">Predefined</string></strings>