Allow scripting of Internet Explorer WebBrowser controls
Autoriser la création de scripts basés sur des contrôles WebBrowser pour Internet Explorer
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.
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\Lockdown_Zones\0HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Lockdown_Zones\0- 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_10
$k = 'HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Lockdown_Zones\0'
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 DWordDisable
# Disable: inetres/IZ_Policy_WebBrowserControl_10
# 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_10
$k = 'HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Lockdown_Zones\0'
Remove-ItemProperty -Path $k -Name '1206' -ErrorAction SilentlyContinueUser (HKCU)
Enable
Disable
Revert to "Not configured"
Options (1)
| Label | Control | Registry value | REG type | Constraints / details | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Internet Explorer web browser controlContrôle de navigateur Web d’Internet ExplorerIZ_Partname1206 | Drop-down listenum | 1206 | REG_DWORD | Required · Default choice (UI): #0
|