Open in the explorer

Block Excel XLL Add-ins that come from an untrusted source

Type
User
GPO path
User Configuration › Policies › Administrative Templates › Microsoft Excel 2016 › Excel Options › Security › Trust Center
Supported on
At least Windows Server 2016, Windows 10
ADMX file
excel16.admx
Internal name
excel16/L_BlockXLLFromInternet

Explanation

This policy setting allows you to block Excel XLL Add-ins that come from an untrusted source.

If you enable this policy setting, you can set one of these options:
- Block: XLL add-ins from untrusted sources are blocked. Users will receive a notification that the add-in was blocked.
- Show Additional Warning: Show an additional warning prompt after the user chooses to enable an XLL add-in from an untrusted source.
- Allow: XLL add-ins from an untrusted source are allowed.

The exceptions when Excel XLL Add-ins will be allowed to run are:
- The XLL is stored in a Trusted Location.
- The XLL is digitally signed and the matching Trusted Publisher certificate is installed on the device.

If you disable this policy setting, the settings configured in the Macro and Add-in Settings sections of the Trust Center determine whether Excel XLL Add-ins that come from an untrusted source will be allowed.

If you disable or do not configure this policy setting, users will be able to override default behavior by modifying the registry.

For more information, see https://support.microsoft.com/topic/1e3752e2-1177-4444-a807-7b700266a6fb.

Registry

HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\excel\security
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: excel16/L_BlockXLLFromInternet
$k = 'HKCU:\software\policies\microsoft\office\16.0\excel\security'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
#
# Possible options:
#   Block = 1
#   Show Additional Warning = 0
#   Allow = 2
Set-ItemProperty -Path $k -Name 'blockxllfrominternet' -Value 1 -Type DWord

Disable

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

Revert to "Not configured"

# Revert to "Not configured": excel16/L_BlockXLLFromInternet
$k = 'HKCU:\software\policies\microsoft\office\16.0\excel\security'
Remove-ItemProperty -Path $k -Name 'blockxllfrominternet' -ErrorAction SilentlyContinue

Options (1)

LabelControlRegistry valueREG typeConstraints / details
L_BlockXLLFromInternetEnumDrop-down listenumblockxllfrominternetREG_DWORD
Default choice (UI): #0
LabelValue
BlockREG_DWORD = 1
Show Additional WarningREG_DWORD = 0
AllowREG_DWORD = 2

Application

Microsoft 365 Apps / Office (Microsoft) — November 2026 templates

Official templates downloaded on November 12, 2026.