Allow VBScript to run in Internet Explorer: registry value 140C (Zones\2)ComputerHKLM\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2
- Policy ID
- IZ_PolicyAllowVBScript_5
- Scope
- Computer Configuration, User Configuration
- Supported on
- At least Internet Explorer 11.0
- Source
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (version 1.0)
- Category
- Windows Components › Internet Explorer › Internet Control Panel › Security Page › Trusted Sites Zone
Registry
140C
REG_DWORDComputerUser…\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2HKLM\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2 Current key
HKCU\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2
HKCU\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2
- Enabled value
- Depends on the option value
- Element
- Allow VBScript to run in Internet Explorer
| Item | Stored value |
|---|---|
| Enable | 0 |
| Disable | 3 |
| Prompt | 1 |
Apply with .reg · CMD · PowerShell
ComputerMachine-wide setting
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2] ; Options (use only one) ; Enable "140C"=dword:00000000 ; Disable "140C"=dword:00000003 ; Prompt "140C"=dword:00000001
CMD
:: Options (use only one) :: Enable reg add "HKLM\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /v "140C" /t REG_DWORD /d 0 /f :: Disable reg add "HKLM\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /v "140C" /t REG_DWORD /d 3 /f :: Prompt reg add "HKLM\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /v "140C" /t REG_DWORD /d 1 /f
PowerShell
# Common: create the key New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2' -Force | Out-Null # Options (use only one) # Enable New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2' -Name '140C' -PropertyType DWord -Value 0 -Force | Out-Null # Disable New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2' -Name '140C' -PropertyType DWord -Value 3 -Force | Out-Null # Prompt New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2' -Name '140C' -PropertyType DWord -Value 1 -Force | Out-Null
UserPer-account setting
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2] ; Options (use only one) ; Enable "140C"=dword:00000000 ; Disable "140C"=dword:00000003 ; Prompt "140C"=dword:00000001
CMD
:: Options (use only one) :: Enable reg add "HKCU\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /v "140C" /t REG_DWORD /d 0 /f :: Disable reg add "HKCU\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /v "140C" /t REG_DWORD /d 3 /f :: Prompt reg add "HKCU\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /v "140C" /t REG_DWORD /d 1 /f
PowerShell
# Common: create the key New-Item -Path 'HKCU:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2' -Force | Out-Null # Options (use only one) # Enable New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2' -Name '140C' -PropertyType DWord -Value 0 -Force | Out-Null # Disable New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2' -Name '140C' -PropertyType DWord -Value 3 -Force | Out-Null # Prompt New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2' -Name '140C' -PropertyType DWord -Value 1 -Force | Out-Null