Disable UI extending from documents and templates
| Registry value | noextensibilitycustomizationfromdocument |
| Group Policy | Disable UI extending from documents and templates |
| German version | Benutzeroberflächenerweiterung von Dokumenten und Vorlagen deaktivieren |
| Intune settings catalog | Disable UI extending from documents and templates (User) |
| Scope | User · HKCU |
| ADMX | office16.admx · L_NoExtensibilityCustomizationFromDocumentPolicy |
Group Policy path
Registry
| Value | Data |
|---|---|
HKCU\Software\policies\microsoft\office\16.0\common\toolbars\word | |
| noextensibilitycustomizationfromdocument | Enabled = 1 · Disabled = 0 |
HKCU\Software\policies\microsoft\office\16.0\common\toolbars\excel | |
| noextensibilitycustomizationfromdocument | Enabled = 1 · Disabled = 0 |
HKCU\Software\policies\microsoft\office\16.0\common\toolbars\powerpoint | |
| noextensibilitycustomizationfromdocument | Enabled = 1 · Disabled = 0 |
HKCU\Software\policies\microsoft\office\16.0\common\toolbars\access | |
| noextensibilitycustomizationfromdocument | Enabled = 1 · Disabled = 0 |
HKCU\Software\policies\microsoft\office\16.0\common\toolbars\outlook | |
| noextensibilitycustomizationfromdocument | Enabled = 1 · Disabled = 0 |
HKCU\Software\policies\microsoft\office\16.0\common\toolbars\publisher | |
| noextensibilitycustomizationfromdocument | Enabled = 1 · Disabled = 0 |
HKCU\Software\policies\microsoft\office\16.0\common\toolbars\project | |
| noextensibilitycustomizationfromdocument | Enabled = 1 · Disabled = 0 |
HKCU\Software\policies\microsoft\office\16.0\common\toolbars\visio | |
| noextensibilitycustomizationfromdocument | Enabled = 1 · Disabled = 0 |
HKCU\Software\policies\microsoft\office\16.0\common\toolbars\infopath | |
| noextensibilitycustomizationfromdocument | Enabled = 1 · Disabled = 0 |
Not configured = the value does not exist – the application default applies and users may change the setting.
PowerShell
Check the current value (read-only)
# --- Settings ---
$root = 'HKCU:' # other signed-in user (elevated): 'Registry::HKEY_USERS\<SID>'
$key = "$root\Software\policies\microsoft\office\16.0\common\toolbars\word"
foreach ($name in @('noextensibilitycustomizationfromdocument')) {
try { '{0} = {1}' -f $name, (Get-ItemPropertyValue -Path $key -Name $name -ErrorAction Stop) }
catch { '{0}: not configured' -f $name }
}
$key = "$root\Software\policies\microsoft\office\16.0\common\toolbars\excel"
foreach ($name in @('noextensibilitycustomizationfromdocument')) {
try { '{0} = {1}' -f $name, (Get-ItemPropertyValue -Path $key -Name $name -ErrorAction Stop) }
catch { '{0}: not configured' -f $name }
}
$key = "$root\Software\policies\microsoft\office\16.0\common\toolbars\powerpoint"
foreach ($name in @('noextensibilitycustomizationfromdocument')) {
try { '{0} = {1}' -f $name, (Get-ItemPropertyValue -Path $key -Name $name -ErrorAction Stop) }
catch { '{0}: not configured' -f $name }
}
$key = "$root\Software\policies\microsoft\office\16.0\common\toolbars\access"
foreach ($name in @('noextensibilitycustomizationfromdocument')) {
try { '{0} = {1}' -f $name, (Get-ItemPropertyValue -Path $key -Name $name -ErrorAction Stop) }
catch { '{0}: not configured' -f $name }
}
$key = "$root\Software\policies\microsoft\office\16.0\common\toolbars\outlook"
foreach ($name in @('noextensibilitycustomizationfromdocument')) {
try { '{0} = {1}' -f $name, (Get-ItemPropertyValue -Path $key -Name $name -ErrorAction Stop) }
catch { '{0}: not configured' -f $name }
}
$key = "$root\Software\policies\microsoft\office\16.0\common\toolbars\publisher"
foreach ($name in @('noextensibilitycustomizationfromdocument')) {
try { '{0} = {1}' -f $name, (Get-ItemPropertyValue -Path $key -Name $name -ErrorAction Stop) }
catch { '{0}: not configured' -f $name }
}
$key = "$root\Software\policies\microsoft\office\16.0\common\toolbars\project"
foreach ($name in @('noextensibilitycustomizationfromdocument')) {
try { '{0} = {1}' -f $name, (Get-ItemPropertyValue -Path $key -Name $name -ErrorAction Stop) }
catch { '{0}: not configured' -f $name }
}
$key = "$root\Software\policies\microsoft\office\16.0\common\toolbars\visio"
foreach ($name in @('noextensibilitycustomizationfromdocument')) {
try { '{0} = {1}' -f $name, (Get-ItemPropertyValue -Path $key -Name $name -ErrorAction Stop) }
catch { '{0}: not configured' -f $name }
}
$key = "$root\Software\policies\microsoft\office\16.0\common\toolbars\infopath"
foreach ($name in @('noextensibilitycustomizationfromdocument')) {
try { '{0} = {1}' -f $name, (Get-ItemPropertyValue -Path $key -Name $name -ErrorAction Stop) }
catch { '{0}: not configured' -f $name }
}Admin rights needed: HKCU\Software\Policies is read-only for standard users. An elevated session writes to the admin's own HKCU – to set it for another signed-in user, change $root to Registry::HKEY_USERS\<SID>.
Enable
# --- Settings ---
$root = 'HKCU:' # other signed-in user (elevated): 'Registry::HKEY_USERS\<SID>'
try {
$key = "$root\Software\policies\microsoft\office\16.0\common\toolbars\word"
if (-not (Test-Path $key)) { New-Item -Path $key -Force -ErrorAction Stop | Out-Null }
New-ItemProperty -Path $key -Name 'noextensibilitycustomizationfromdocument' -PropertyType DWord -Value 1 -Force -ErrorAction Stop | Out-Null # Enabled
$key = "$root\Software\policies\microsoft\office\16.0\common\toolbars\excel"
if (-not (Test-Path $key)) { New-Item -Path $key -Force -ErrorAction Stop | Out-Null }
New-ItemProperty -Path $key -Name 'noextensibilitycustomizationfromdocument' -PropertyType DWord -Value 1 -Force -ErrorAction Stop | Out-Null # Enabled
$key = "$root\Software\policies\microsoft\office\16.0\common\toolbars\powerpoint"
if (-not (Test-Path $key)) { New-Item -Path $key -Force -ErrorAction Stop | Out-Null }
New-ItemProperty -Path $key -Name 'noextensibilitycustomizationfromdocument' -PropertyType DWord -Value 1 -Force -ErrorAction Stop | Out-Null # Enabled
$key = "$root\Software\policies\microsoft\office\16.0\common\toolbars\access"
if (-not (Test-Path $key)) { New-Item -Path $key -Force -ErrorAction Stop | Out-Null }
New-ItemProperty -Path $key -Name 'noextensibilitycustomizationfromdocument' -PropertyType DWord -Value 1 -Force -ErrorAction Stop | Out-Null # Enabled
$key = "$root\Software\policies\microsoft\office\16.0\common\toolbars\outlook"
if (-not (Test-Path $key)) { New-Item -Path $key -Force -ErrorAction Stop | Out-Null }
New-ItemProperty -Path $key -Name 'noextensibilitycustomizationfromdocument' -PropertyType DWord -Value 1 -Force -ErrorAction Stop | Out-Null # Enabled
$key = "$root\Software\policies\microsoft\office\16.0\common\toolbars\publisher"
if (-not (Test-Path $key)) { New-Item -Path $key -Force -ErrorAction Stop | Out-Null }
New-ItemProperty -Path $key -Name 'noextensibilitycustomizationfromdocument' -PropertyType DWord -Value 1 -Force -ErrorAction Stop | Out-Null # Enabled
$key = "$root\Software\policies\microsoft\office\16.0\common\toolbars\project"
if (-not (Test-Path $key)) { New-Item -Path $key -Force -ErrorAction Stop | Out-Null }
New-ItemProperty -Path $key -Name 'noextensibilitycustomizationfromdocument' -PropertyType DWord -Value 1 -Force -ErrorAction Stop | Out-Null # Enabled
$key = "$root\Software\policies\microsoft\office\16.0\common\toolbars\visio"
if (-not (Test-Path $key)) { New-Item -Path $key -Force -ErrorAction Stop | Out-Null }
New-ItemProperty -Path $key -Name 'noextensibilitycustomizationfromdocument' -PropertyType DWord -Value 1 -Force -ErrorAction Stop | Out-Null # Enabled
$key = "$root\Software\policies\microsoft\office\16.0\common\toolbars\infopath"
if (-not (Test-Path $key)) { New-Item -Path $key -Force -ErrorAction Stop | Out-Null }
New-ItemProperty -Path $key -Name 'noextensibilitycustomizationfromdocument' -PropertyType DWord -Value 1 -Force -ErrorAction Stop | Out-Null # Enabled
'Done.'
}
catch { Write-Error "Failed: $($_.Exception.Message)" }Reset to Not configured
# --- Settings --- $root = 'HKCU:' # other signed-in user (elevated): 'Registry::HKEY_USERS\<SID>' $key = "$root\Software\policies\microsoft\office\16.0\common\toolbars\word" Remove-ItemProperty -Path $key -Name 'noextensibilitycustomizationfromdocument' -ErrorAction SilentlyContinue $key = "$root\Software\policies\microsoft\office\16.0\common\toolbars\excel" Remove-ItemProperty -Path $key -Name 'noextensibilitycustomizationfromdocument' -ErrorAction SilentlyContinue $key = "$root\Software\policies\microsoft\office\16.0\common\toolbars\powerpoint" Remove-ItemProperty -Path $key -Name 'noextensibilitycustomizationfromdocument' -ErrorAction SilentlyContinue $key = "$root\Software\policies\microsoft\office\16.0\common\toolbars\access" Remove-ItemProperty -Path $key -Name 'noextensibilitycustomizationfromdocument' -ErrorAction SilentlyContinue $key = "$root\Software\policies\microsoft\office\16.0\common\toolbars\outlook" Remove-ItemProperty -Path $key -Name 'noextensibilitycustomizationfromdocument' -ErrorAction SilentlyContinue $key = "$root\Software\policies\microsoft\office\16.0\common\toolbars\publisher" Remove-ItemProperty -Path $key -Name 'noextensibilitycustomizationfromdocument' -ErrorAction SilentlyContinue $key = "$root\Software\policies\microsoft\office\16.0\common\toolbars\project" Remove-ItemProperty -Path $key -Name 'noextensibilitycustomizationfromdocument' -ErrorAction SilentlyContinue $key = "$root\Software\policies\microsoft\office\16.0\common\toolbars\visio" Remove-ItemProperty -Path $key -Name 'noextensibilitycustomizationfromdocument' -ErrorAction SilentlyContinue $key = "$root\Software\policies\microsoft\office\16.0\common\toolbars\infopath" Remove-ItemProperty -Path $key -Name 'noextensibilitycustomizationfromdocument' -ErrorAction SilentlyContinue 'Policy values removed (Not configured).'
Intune (settings catalog)
Disable UI extending from documents and templates (User)
Settings catalog → Add settings → search for the name above.
Intune Settings Catalog Viewer ↗
Alternative: custom profile (OMA-URI)
| OMA-URI | ./User/Vendor/MSFT/Policy/Config/office16v2~Policy~L_MicrosoftOfficeSystem~L_GloablOptions~L_Customize/L_NoExtensibilityCustomizationFromDocumentPolicy |
| Data type | String |
| Value | <enabled/> · <disabled/> |
This policy has options: add one <data id="…" value="…"/> per element after <enabled/>. The element IDs are in the ADMX file.
Cloud Policy
Cloud Policy (config.office.com → Customization → Policy Management) offers many user policies of the Microsoft 365 Apps – search for Disable UI extending from documents and templates. It also applies to unmanaged devices and wins over GPO and Intune for the same setting.
Microsoft explanation
This policy setting controls whether Office 2016 applications load any custom user interface (UI) code included with a document or template. Office 2016 allows developers to extend the UI with customization code that is included in a document or template.
If you enable this policy setting, Office 2016 applications cannot load any UI customization code included with documents and templates.
If you disable or do not configure this policy setting, Office 2016 applications load any UI customization code included with a document or template when opening it.
Same category: Microsoft Office 2016 › Global Options › Customize
- Turn off user customizations via UIdisabletoolbarcustomizationui
- Turn off all user customizationsnousercustomization
- Large iconsbtnsize
- List font names in their fontfontview
- Do not show ScreenTips on toolbarstooltips
- Show shortcut keys in ScreenTipsshowkbdshortcuts
- Menu animationsanimation
- Allow roaming of all user customizationscustomuiroaming
- Default Office themedefault ui theme
All policies in this category · All 945 policies of office16.admx