Open in the explorer

Allow scripting of Internet Explorer WebBrowser controls

Autoriser la création de scripts basés sur des contrôles WebBrowser pour Internet Explorer

Type
Computer and user
GPO path
Computer Configuration › Policies › Administrative Templates › Windows Components › Internet Explorer › Internet Control Panel › Security Page › Intranet Zone User Configuration › Policies › Administrative Templates › Windows Components › Internet Explorer › Internet Control Panel › Security Page › Intranet Zone FR: Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Internet Explorer › Panneau de configuration Internet › Onglet Sécurité › Zone intranetFR: Configuration utilisateur › Stratégies › Modèles d'administration › Composants Windows › Internet Explorer › Panneau de configuration Internet › Onglet Sécurité › Zone intranet
Supported on
At least Internet Explorer 7.0 FR: Au moins Internet Explorer 7.0
ADMX file
inetres.admx
Internal name
inetres/IZ_Policy_WebBrowserControl_3

Explanation

This policy setting determines whether a page can control embedded WebBrowser controls via script.

If you enable this policy setting, script access to the WebBrowser control is allowed.

If you disable this policy setting, script access to the WebBrowser control is not allowed.

If you do not configure this policy setting, the user can enable or disable script access to the WebBrowser control. By default, script access to the WebBrowser control is allowed only in the Local Machine and Intranet zones.

French text from Windows 11 26H2

Ce paramètre de stratégie détermine si une page peut gérer les contrôles incorporés WebBrowser à l’aide d’un script.

Si vous activez ce paramètre de stratégie, l’accès du script au contrôle WebBrowser est autorisé.

Si vous désactivez ce paramètre de stratégie, l’accès du script au contrôle WebBrowser est interdit.

Si vous ne configurez pas ce paramètre de stratégie, l’utilisateur peut activer ou désactiver l’accès du script au contrôle WebBrowser. Par défaut, l’accès du script au contrôle WebBrowser est autorisé uniquement dans les zones Ordinateur local et Intranet.

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1
HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1
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.

Computer (HKLM)

Enable

# Enable: inetres/IZ_Policy_WebBrowserControl_3
$k = 'HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Internet Explorer web browser control
# Possible options:
#   Enable = 0
#   Disable = 3
Set-ItemProperty -Path $k -Name '1206' -Value 0 -Type DWord

Disable

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

Revert to "Not configured"

# Revert to "Not configured": inetres/IZ_Policy_WebBrowserControl_3
$k = 'HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1'
Remove-ItemProperty -Path $k -Name '1206' -ErrorAction SilentlyContinue

User (HKCU)

Enable

Disable

Revert to "Not configured"

Options (1)

LabelControlRegistry valueREG typeConstraints / details
Internet Explorer web browser controlContrôle de navigateur Web d’Internet ExplorerIZ_Partname1206Drop-down listenum1206REG_DWORD
Required · Default choice (UI): #0
LabelValue
EnableREG_DWORD = 0
DisableREG_DWORD = 3

Availability