不要對 ActiveX 控制項執行反惡意程式碼程式 的登錄值 270C (Zones\2)電腦HKLM\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2

原則 ID
IZ_PolicyAntiMalwareCheckingOfActiveXControls_5
適用範圍
電腦設定、使用者設定
支援的作業系統
至少 Internet Explorer 11.0
來源
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (版本 1.0)
類別
Windows 元件 › Internet Explorer › 網際網路控制台 › 安全性畫面 › 信任的網站區域

登錄

270C

REG_DWORD電腦使用者
啟用時的值
取決於選項值
元素
不要對 ActiveX 控制項執行反惡意程式碼程式
選項
項目儲存的值
啟用3
停用0
以 .reg · CMD · PowerShell 套用
電腦整部電腦的設定
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2]

; 選項 (只使用其中一個)
; 啟用
"270C"=dword:00000003
; 停用
"270C"=dword:00000000
CMD
:: 選項 (只使用其中一個)

:: 啟用
reg add "HKLM\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /v "270C" /t REG_DWORD /d 3 /f
:: 停用
reg add "HKLM\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /v "270C" /t REG_DWORD /d 0 /f
PowerShell
# 共通: 建立機碼
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2' -Force | Out-Null

# 選項 (只使用其中一個)
# 啟用
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2' -Name '270C' -PropertyType DWord -Value 3 -Force | Out-Null
# 停用
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2' -Name '270C' -PropertyType DWord -Value 0 -Force | Out-Null
使用者各帳戶的設定
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2]

; 選項 (只使用其中一個)
; 啟用
"270C"=dword:00000003
; 停用
"270C"=dword:00000000
CMD
:: 選項 (只使用其中一個)

:: 啟用
reg add "HKCU\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /v "270C" /t REG_DWORD /d 3 /f
:: 停用
reg add "HKCU\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" /v "270C" /t REG_DWORD /d 0 /f
PowerShell
# 共通: 建立機碼
New-Item -Path 'HKCU:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2' -Force | Out-Null

# 選項 (只使用其中一個)
# 啟用
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2' -Name '270C' -PropertyType DWord -Value 3 -Force | Out-Null
# 停用
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2' -Name '270C' -PropertyType DWord -Value 0 -Force | Out-Null