Ouvrir dans l'explorateur

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

Cette stratégie n'a pas de traduction française dans les modèles de l'éditeur ; le texte original est en anglais.

Type
Utilisateur
Chemin GPO
Configuration utilisateur › Stratégies › Modèles d'administration › Microsoft Excel 2016 › Options Excel › Sécurité › Centre de gestion de la confidentialité EN : User Configuration › Policies › Administrative Templates › Microsoft Excel 2016 › Excel Options › Security › Trust Center
Pris en charge sur
At least Windows Server 2016, Windows 10
Fichier ADMX
excel16.admx
Nom interne
excel16/L_BlockXLLFromInternet

Explication

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.

Registre

HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\excel\security
Nom de la valeur
non défini dans l'ADMX

Valeurs d'activation / désactivation : non défini dans l'ADMX (voir les options ci-dessous).

PowerShell

Commandes PowerShell qui écrivent dans le registre ce que la stratégie écrirait. Les valeurs entre chevrons (<…>) sont à remplacer.

Écrire directement dans le registre contourne la stratégie de groupe : si une GPO gère cette valeur, elle sera réécrite au prochain gpupdate ; sinon la valeur reste en place (effet « tatouage »). Préférez une GPO ou, en local, LGPO.exe. Exécutez PowerShell en administrateur pour HKLM. Certaines stratégies demandent un redémarrage ou gpupdate /force.

Activer

# Activer : 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 }
#
# Options possibles :
#   Block = 1
#   Show Additional Warning = 0
#   Allow = 2
Set-ItemProperty -Path $k -Name 'blockxllfrominternet' -Value 1 -Type DWord

Désactiver

# Désactiver : excel16/L_BlockXLLFromInternet
# Aucune valeur n'est écrite à l'état « Désactivé » (rien de défini dans l'ADMX)

Revenir à « Non configuré »

# Revenir à « Non configuré » : excel16/L_BlockXLLFromInternet
$k = 'HKCU:\software\policies\microsoft\office\16.0\excel\security'
Remove-ItemProperty -Path $k -Name 'blockxllfrominternet' -ErrorAction SilentlyContinue

Options (1)

LibelléContrôleValeur de registreType REGContraintes / détails
L_BlockXLLFromInternetEnumListe déroulanteenumblockxllfrominternetREG_DWORD
Choix par défaut (interface) : n° 0
LibelléValeur
BlockREG_DWORD = 1
Show Additional WarningREG_DWORD = 0
AllowREG_DWORD = 2

Application

Microsoft 365 Apps / Office (Microsoft) — modèles de novembre 2026

Modèles officiels téléchargés le 12 novembre 2026.