Paramètres de notification des fonctions WEBSERVICE : valeur de Registre webservicefunctionwarningsUtilisateurHKCU\software\policies\microsoft\office\16.0\excel\security

ID de stratégie
L_WebContentWarningLevel
Étendue
Configuration utilisateur
Pris en charge sur
Au minimum Windows Server 2008 R2 ou Windows 7
Source
Microsoft 365 Apps / Office Administrative Templates (version 5568.1000)
Catégorie
Microsoft Excel 2016 › Options Excel › Sécurité

Registre

webservicefunctionwarnings

REG_DWORDUtilisateur
Valeur si activée
Dépend de la valeur de l'option
Élément
-
Options
EntréeValeur stockée
Activer toutes les fonctions WEBSERVICE (non recommandé)0
Désactiver tout avec notification1
Désactiver tout sans notification2
Appliquer avec .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\excel\security]

; Options (en utiliser une seule)
; Activer toutes les fonctions WEBSERVICE (non recommandé)
"webservicefunctionwarnings"=dword:00000000
; Désactiver tout avec notification
"webservicefunctionwarnings"=dword:00000001
; Désactiver tout sans notification
"webservicefunctionwarnings"=dword:00000002
CMD
:: Options (en utiliser une seule)

:: Activer toutes les fonctions WEBSERVICE (non recommandé)
reg add "HKCU\software\policies\microsoft\office\16.0\excel\security" /v "webservicefunctionwarnings" /t REG_DWORD /d 0 /f
:: Désactiver tout avec notification
reg add "HKCU\software\policies\microsoft\office\16.0\excel\security" /v "webservicefunctionwarnings" /t REG_DWORD /d 1 /f
:: Désactiver tout sans notification
reg add "HKCU\software\policies\microsoft\office\16.0\excel\security" /v "webservicefunctionwarnings" /t REG_DWORD /d 2 /f
PowerShell
# Commun : créer la clé
New-Item -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\security' -Force | Out-Null

# Options (en utiliser une seule)
# Activer toutes les fonctions WEBSERVICE (non recommandé)
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\security' -Name 'webservicefunctionwarnings' -PropertyType DWord -Value 0 -Force | Out-Null
# Désactiver tout avec notification
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\security' -Name 'webservicefunctionwarnings' -PropertyType DWord -Value 1 -Force | Out-Null
# Désactiver tout sans notification
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\security' -Name 'webservicefunctionwarnings' -PropertyType DWord -Value 2 -Force | Out-Null