Allow VBScript to run in Internet Explorer
Autoriser VBScript à s’exécuter dans Internet Explorer
Explanation
This policy setting allows you to manage whether VBScript can be run on pages from the specified zone in Internet Explorer.
If you selected Enable in the drop-down box, VBScript can run without user intervention.
If you selected Prompt in the drop-down box, users are asked to choose whether to allow VBScript to run.
If you selected Disable in the drop-down box, VBScript is prevented from running.
If you do not configure or disable this policy setting, users are asked to choose whether to allow VBScript to run.
Ce paramètre de stratégie permet d’indiquer si VBScript peut s’exécuter dans les pages d’une zone spécifiée dans Internet Explorer.
Si vous sélectionnez Activer dans la liste déroulante, VBScript peut s’exécuter de façon automatique.
Si vous sélectionnez Demander dans la liste déroulante, les utilisateurs doivent indiquer s’ils souhaitent autoriser l’exécution de VBScript.
Si vous sélectionnez Désactiver dans la liste déroulante, l’exécution de VBScript est bloquée.
Si vous ne configurez pas ou désactivez ce paramètre de stratégie, il est demandé aux utilisateurs d’indiquer s’ils autorisent l’exécution de VBScript.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Lockdown_Zones\2HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Lockdown_Zones\2- 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_PolicyAllowVBScript_6
$k = 'HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Lockdown_Zones\2'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Allow VBScript to run in Internet Explorer
# Possible options:
# Enable = 0
# Disable = 3
# Prompt = 1
Set-ItemProperty -Path $k -Name '140C' -Value 1 -Type DWordDisable
# Disable: inetres/IZ_PolicyAllowVBScript_6
# No value is written in the "Disabled" state (nothing defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": inetres/IZ_PolicyAllowVBScript_6
$k = 'HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Lockdown_Zones\2'
Remove-ItemProperty -Path $k -Name '140C' -ErrorAction SilentlyContinueUser (HKCU)
Enable
Disable
Revert to "Not configured"
Options (1)
| Label | Control | Registry value | REG type | Constraints / details | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Allow VBScript to run in Internet ExplorerAutoriser VBScript à s’exécuter dans Internet ExplorerIZ_Partname140C | Drop-down listenum | 140C | REG_DWORD | Required · Default choice (UI): #2
|