Disable UI extending from documents and templates
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.
Registry
HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\common\toolbars- 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: office16/L_NoExtensibilityCustomizationFromDocumentPolicy
$k = 'HKCU:\software\policies\microsoft\office\16.0\common\toolbars\word'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Disallow in Word
# unchecked: 0
Set-ItemProperty -Path $k -Name 'noextensibilitycustomizationfromdocument' -Value 1 -Type DWord
$k = 'HKCU:\software\policies\microsoft\office\16.0\common\toolbars\excel'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Disallow in Excel
# unchecked: 0
Set-ItemProperty -Path $k -Name 'noextensibilitycustomizationfromdocument' -Value 1 -Type DWord
$k = 'HKCU:\software\policies\microsoft\office\16.0\common\toolbars\powerpoint'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Disallow in PowerPoint
# unchecked: 0
Set-ItemProperty -Path $k -Name 'noextensibilitycustomizationfromdocument' -Value 1 -Type DWord
$k = 'HKCU:\software\policies\microsoft\office\16.0\common\toolbars\access'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Disallow in Access
# unchecked: 0
Set-ItemProperty -Path $k -Name 'noextensibilitycustomizationfromdocument' -Value 1 -Type DWord
$k = 'HKCU:\software\policies\microsoft\office\16.0\common\toolbars\outlook'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Disallow in Outlook
# unchecked: 0
Set-ItemProperty -Path $k -Name 'noextensibilitycustomizationfromdocument' -Value 1 -Type DWord
$k = 'HKCU:\software\policies\microsoft\office\16.0\common\toolbars\publisher'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Disallow in Publisher
# unchecked: 0
Set-ItemProperty -Path $k -Name 'noextensibilitycustomizationfromdocument' -Value 1 -Type DWord
$k = 'HKCU:\software\policies\microsoft\office\16.0\common\toolbars\project'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Disallow in Project
# unchecked: 0
Set-ItemProperty -Path $k -Name 'noextensibilitycustomizationfromdocument' -Value 1 -Type DWord
$k = 'HKCU:\software\policies\microsoft\office\16.0\common\toolbars\visio'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Disallow in Visio
# unchecked: 0
Set-ItemProperty -Path $k -Name 'noextensibilitycustomizationfromdocument' -Value 1 -Type DWord
$k = 'HKCU:\software\policies\microsoft\office\16.0\common\toolbars\infopath'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Disallow in InfoPath
# unchecked: 0
Set-ItemProperty -Path $k -Name 'noextensibilitycustomizationfromdocument' -Value 1 -Type DWordDisable
# Disable: office16/L_NoExtensibilityCustomizationFromDocumentPolicy
# No value is written in the "Disabled" state (nothing defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": office16/L_NoExtensibilityCustomizationFromDocumentPolicy
$k = 'HKCU:\software\policies\microsoft\office\16.0\common\toolbars\word'
Remove-ItemProperty -Path $k -Name 'noextensibilitycustomizationfromdocument' -ErrorAction SilentlyContinue
$k = 'HKCU:\software\policies\microsoft\office\16.0\common\toolbars\excel'
Remove-ItemProperty -Path $k -Name 'noextensibilitycustomizationfromdocument' -ErrorAction SilentlyContinue
$k = 'HKCU:\software\policies\microsoft\office\16.0\common\toolbars\powerpoint'
Remove-ItemProperty -Path $k -Name 'noextensibilitycustomizationfromdocument' -ErrorAction SilentlyContinue
$k = 'HKCU:\software\policies\microsoft\office\16.0\common\toolbars\access'
Remove-ItemProperty -Path $k -Name 'noextensibilitycustomizationfromdocument' -ErrorAction SilentlyContinue
$k = 'HKCU:\software\policies\microsoft\office\16.0\common\toolbars\outlook'
Remove-ItemProperty -Path $k -Name 'noextensibilitycustomizationfromdocument' -ErrorAction SilentlyContinue
$k = 'HKCU:\software\policies\microsoft\office\16.0\common\toolbars\publisher'
Remove-ItemProperty -Path $k -Name 'noextensibilitycustomizationfromdocument' -ErrorAction SilentlyContinue
$k = 'HKCU:\software\policies\microsoft\office\16.0\common\toolbars\project'
Remove-ItemProperty -Path $k -Name 'noextensibilitycustomizationfromdocument' -ErrorAction SilentlyContinue
$k = 'HKCU:\software\policies\microsoft\office\16.0\common\toolbars\visio'
Remove-ItemProperty -Path $k -Name 'noextensibilitycustomizationfromdocument' -ErrorAction SilentlyContinue
$k = 'HKCU:\software\policies\microsoft\office\16.0\common\toolbars\infopath'
Remove-ItemProperty -Path $k -Name 'noextensibilitycustomizationfromdocument' -ErrorAction SilentlyContinueOptions (9)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| Disallow in WordL_NoExtensibilityCustomizationFromDocumentPolicyWord | Check boxboolean | noextensibilitycustomizationfromdocumentin software\policies\microsoft\office\16.0\common\toolbars\word | REG_DWORD | Checked: REG_DWORD = 1Unchecked: REG_DWORD = 0 |
| Disallow in ExcelL_NoExtensibilityCustomizationFromDocumentPolicyExcel | Check boxboolean | noextensibilitycustomizationfromdocumentin software\policies\microsoft\office\16.0\common\toolbars\excel | REG_DWORD | Checked: REG_DWORD = 1Unchecked: REG_DWORD = 0 |
| Disallow in PowerPointL_NoExtensibilityCustomizationFromDocumentPolicyPowerPoint | Check boxboolean | noextensibilitycustomizationfromdocumentin software\policies\microsoft\office\16.0\common\toolbars\powerpoint | REG_DWORD | Checked: REG_DWORD = 1Unchecked: REG_DWORD = 0 |
| Disallow in AccessL_NoExtensibilityCustomizationFromDocumentPolicyAccess | Check boxboolean | noextensibilitycustomizationfromdocumentin software\policies\microsoft\office\16.0\common\toolbars\access | REG_DWORD | Checked: REG_DWORD = 1Unchecked: REG_DWORD = 0 |
| Disallow in OutlookL_NoExtensibilityCustomizationFromDocumentPolicyOutlook | Check boxboolean | noextensibilitycustomizationfromdocumentin software\policies\microsoft\office\16.0\common\toolbars\outlook | REG_DWORD | Checked: REG_DWORD = 1Unchecked: REG_DWORD = 0 |
| Disallow in PublisherL_NoExtensibilityCustomizationFromDocumentPolicyPublisher | Check boxboolean | noextensibilitycustomizationfromdocumentin software\policies\microsoft\office\16.0\common\toolbars\publisher | REG_DWORD | Checked: REG_DWORD = 1Unchecked: REG_DWORD = 0 |
| Disallow in ProjectL_NoExtensibilityCustomizationFromDocumentPolicyProject | Check boxboolean | noextensibilitycustomizationfromdocumentin software\policies\microsoft\office\16.0\common\toolbars\project | REG_DWORD | Checked: REG_DWORD = 1Unchecked: REG_DWORD = 0 |
| Disallow in VisioL_NoExtensibilityCustomizationFromDocumentPolicyVisio | Check boxboolean | noextensibilitycustomizationfromdocumentin software\policies\microsoft\office\16.0\common\toolbars\visio | REG_DWORD | Checked: REG_DWORD = 1Unchecked: REG_DWORD = 0 |
| Disallow in InfoPathL_NoExtensibilityCustomizationFromDocumentPolicyInfoPath | Check boxboolean | noextensibilitycustomizationfromdocumentin software\policies\microsoft\office\16.0\common\toolbars\infopath | REG_DWORD | Checked: REG_DWORD = 1Unchecked: REG_DWORD = 0 |
Application
Microsoft 365 Apps / Office (Microsoft) — November 2026 templates
Official templates downloaded on November 12, 2026.