Allows you to run scripts, like Javascript
Permet d'exécuter des scripts comme Javascript
Explanation
This setting lets you decide whether to let people run scripts, like JavaScript. This setting is enabled by default.
If you enable this setting, scripting is turned on for all your computers.
If you disable this setting, scripts can’t run.
Ce paramètre vous permet de décider si les utilisateurs sont autorisés à exécuter des scripts comme JavaScript. Ce paramètre est activé par défaut.
Si vous activez ce paramètre, les scripts sont activés pour tous vos ordinateurs.
Si vous désactivez ce paramètre, des scripts ne peuvent pas être exécutés.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\MicrosoftEdge\Internet Settings\Zones\3HKEY_CURRENT_USER\Software\Policies\Microsoft\MicrosoftEdge\Internet Settings\Zones\3- Value name
1400
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 0 |
| Disabled | REG_DWORD = 2 |
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: microsoftedge/AllowActiveScripting
$k = 'HKLM:\Software\Policies\Microsoft\MicrosoftEdge\Internet Settings\Zones\3'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name '1400' -Value 0 -Type DWordDisable
# Disable: microsoftedge/AllowActiveScripting
$k = 'HKLM:\Software\Policies\Microsoft\MicrosoftEdge\Internet Settings\Zones\3'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name '1400' -Value 2 -Type DWordRevert to "Not configured"
# Revert to "Not configured": microsoftedge/AllowActiveScripting
$k = 'HKLM:\Software\Policies\Microsoft\MicrosoftEdge\Internet Settings\Zones\3'
Remove-ItemProperty -Path $k -Name '1400' -ErrorAction SilentlyContinueUser (HKCU)
Enable
Disable
Revert to "Not configured"