Ouvrir dans l'explorateur

WEBSERVICE Function Notification Settings

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é EN : User Configuration › Policies › Administrative Templates › Microsoft Excel 2016 › Excel Options › Security
Pris en charge sur
At least Windows Server 2008 R2 or Windows 7
Fichier ADMX
excel16.admx
Nom interne
excel16/L_WebContentWarningLevel

Explication

This policy setting controls how Excel will warn users when WEBSERVICE functions are present.

If you enable this policy setting, you can choose from three options for determining how the specified applications will warn the user about WEBSERVICE functions:

- Disable all with notification: The application displays the Trust Bar for all WEBSERVICE functions. This option enforces the default configuration in Office.
- Disable all without notification: The application disables all WEBSERVICE functions and does not notify users.
- Enable all WEBSERVICE functions (not recommended): The application enables all WEBSERVICE functions and does not notify users. This option can significantly reduce security by allowing information disclosure to third party web services.

If you disable this policy setting, the “Disable all with notification” will be the default setting.
If you do not configure this policy setting, when users open workbooks that contain WEBSERVICE functions, Excel will open the files with the WEBSERVICE functions disabled and display the Trust Bar with a warning that WEBSERVICE functions are present and have been disabled. Users can inspect and edit the files if appropriate, but cannot use any disabled functionality until they enable it by clicking "Enable Content" on the Trust Bar. If the user clicks "Enable Content," then the document is added as a trusted document.

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_WebContentWarningLevel
$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 :
#   Enable all WEBSERVICE functions (not recommended) = 0
#   Disable all with notification = 1
#   Disable all without notification = 2
Set-ItemProperty -Path $k -Name 'webservicefunctionwarnings' -Value 1 -Type DWord

Désactiver

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

Revenir à « Non configuré »

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

Options (1)

LibelléContrôleValeur de registreType REGContraintes / détails
L_WebContentWarningLevelValueListe déroulanteenumwebservicefunctionwarningsREG_DWORD
Choix par défaut (interface) : n° 1
LibelléValeur
Enable all WEBSERVICE functions (not recommended)REG_DWORD = 0
Disable all with notificationREG_DWORD = 1
Disable all without notificationREG_DWORD = 2

Application

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

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