Open in the explorer

Allow file extensions for OLE embedding

Type
User
GPO path
User Configuration › Policies › Administrative Templates › Microsoft Office 2016 › Security Settings
Supported on
At least Windows Server 2008 R2 or Windows 7
ADMX file
office16.admx
Internal name
office16/L_AllowedExtensions

Explanation

This policy setting only applies to subscription versions of Office, such as Microsoft 365 Apps for enterprise, and to subscription versions of Project and Visio.​

This policy setting allows you to specify which file extensions Office won’t block when they are embedded as an OLE package in an Office file by using the Object Packager control.

By default, Office blocks certain file extensions. For a list of those file extensions, go to https://go.microsoft.com/fwlink/?linkid=847759.

Important: Malicious scripts and executables can be embedded as an OLE package and can cause harm if clicked by the user.

If you enable this policy setting, enter the file extensions to allow, separated by semicolons. For example, exe;vbs;js.

If you disable or don’t configure this policy setting, the default set of file extensions will be blocked.

If you want to block additional file extensions, enable the "Block additional file extensions for OLE embedding" policy setting.

Registry

HKEY_CURRENT_USER\software\policies\microsoft\office\common\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: office16/L_AllowedExtensions
$k = 'HKCU:\software\policies\microsoft\office\common\security'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# File extensions
Set-ItemProperty -Path $k -Name 'allowedextensions' -Value '<value>' -Type String

Disable

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

Revert to "Not configured"

# Revert to "Not configured": office16/L_AllowedExtensions
$k = 'HKCU:\software\policies\microsoft\office\common\security'
Remove-ItemProperty -Path $k -Name 'allowedextensions' -ErrorAction SilentlyContinue

Options (1)

LabelControlRegistry valueREG typeConstraints / details
File extensions:L_allowedextensionsoleText boxtextallowedextensionsREG_SZ

Application

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

Official templates downloaded on November 12, 2026.