開啟指令碼偵錯 的登錄值 Disable Script Debugger使用者HKCU\Software\Policies\Microsoft\Internet Explorer\Main

原則 ID
DisableDebugger
適用範圍
使用者設定
支援的作業系統
至少 Internet Explorer 7.0
來源
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (版本 1.0)
類別
Windows 元件 › Internet Explorer › 網際網路設定 › 進階設定 › 瀏覽

登錄

Disable Script Debugger

REG_SZ使用者
啟用時的值
no
停用時的值
yes
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Main]

; 選項 (只使用其中一個)
; 已啟用
"Disable Script Debugger"="no"
; 已停用
"Disable Script Debugger"="yes"
CMD
:: 選項 (只使用其中一個)

:: 已啟用
reg add "HKCU\Software\Policies\Microsoft\Internet Explorer\Main" /v "Disable Script Debugger" /t REG_SZ /d "no" /f
:: 已停用
reg add "HKCU\Software\Policies\Microsoft\Internet Explorer\Main" /v "Disable Script Debugger" /t REG_SZ /d "yes" /f
PowerShell
# 共通: 建立機碼
New-Item -Path 'HKCU:\Software\Policies\Microsoft\Internet Explorer\Main' -Force | Out-Null

# 選項 (只使用其中一個)
# 已啟用
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Internet Explorer\Main' -Name 'Disable Script Debugger' -PropertyType String -Value 'no' -Force | Out-Null
# 已停用
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Internet Explorer\Main' -Name 'Disable Script Debugger' -PropertyType String -Value 'yes' -Force | Out-Null