Ouvrir dans l'explorateur

Dynamic Code 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
Ordinateur et utilisateur
Chemin GPO
Configuration ordinateur › Stratégies › Modèles d'administration › Microsoft Edge Configuration utilisateur › Stratégies › Modèles d'administration › Microsoft Edge EN : Computer Configuration › Policies › Administrative Templates › Microsoft EdgeEN : User Configuration › Policies › Administrative Templates › Microsoft Edge
Pris en charge sur
Microsoft Edge version 128, Windows 7 or later
Fichier ADMX
msedge.admx
Nom interne
msedge/DynamicCodeSettings

Explication

This policy controls the dynamic code settings for Microsoft Edge.

Disabling dynamic code improves the security of Microsoft Edge by preventing potentially hostile dynamic code and third-party code from making changes to Microsoft Edge's behavior. However this might cause compatibility issues with third-party software (for example, certain printer drivers) that must run in the browser process.

If you set this policy to 0 (the default) or leave unset, then Microsoft Edge uses the default settings.

If you set this policy to 1 – (EnabledForBrowser) then the Microsoft Edge browser process is prevented from creating dynamic code.

Policy options mapping:

* Default (0) = Default dynamic code settings

* EnabledForBrowser (1) = Prevent the browser process from creating dynamic code

Use the preceding information when configuring this policy.

Registre

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Edge
HKEY_CURRENT_USER\Software\Policies\Microsoft\Edge
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.

Ordinateur (HKLM)

Activer

# Activer : msedge/DynamicCodeSettings
$k = 'HKLM:\Software\Policies\Microsoft\Edge'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Dynamic Code Settings
# Options possibles :
#   Default dynamic code settings = 0
#   Prevent the browser process from creating dynamic code = 1
Set-ItemProperty -Path $k -Name 'DynamicCodeSettings' -Value 0 -Type DWord

Désactiver

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

Revenir à « Non configuré »

# Revenir à « Non configuré » : msedge/DynamicCodeSettings
$k = 'HKLM:\Software\Policies\Microsoft\Edge'
Remove-ItemProperty -Path $k -Name 'DynamicCodeSettings' -ErrorAction SilentlyContinue

Utilisateur (HKCU)

Activer

Désactiver

Revenir à « Non configuré »

Options (1)

LibelléContrôleValeur de registreType REGContraintes / détails
Dynamic Code SettingsDynamicCodeSettingsListe déroulanteenumDynamicCodeSettingsREG_DWORD
LibelléValeur
Default dynamic code settingsREG_DWORD = 0
Prevent the browser process from creating dynamic codeREG_DWORD = 1

Application

Microsoft Edge (+ Edge Update, WebView2) (Microsoft) — modèles de novembre 2026

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