允許由指令碼起始沒有大小或位置限制的視窗 的登錄值 2102 (Zones\1)電腦HKLM\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1
- 原則 ID
- IZ_PolicyWindowsRestrictionsURLaction_3
- 適用範圍
- 電腦設定、使用者設定
- 支援的作業系統
- 在 Windows XP 含 Service Pack 2 或 Windows Server 2003 含 Service Pack 1 至少需要 Internet Explorer 6.0
- 來源
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (版本 1.0)
- 類別
- Windows 元件 › Internet Explorer › 網際網路控制台 › 安全性畫面 › 內部網路區域
登錄
2102
REG_DWORD電腦使用者…\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1HKLM\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1 目前的機碼
HKCU\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1
HKCU\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1
- 啟用時的值
- 取決於選項值
- 元素
- 允許由指令碼起始沒有大小或位置限制的視窗
| 項目 | 儲存的值 |
|---|---|
| 啟用 | 0 |
| 停用 | 3 |
以 .reg · CMD · PowerShell 套用
電腦整部電腦的設定
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1] ; 選項 (只使用其中一個) ; 啟用 "2102"=dword:00000000 ; 停用 "2102"=dword:00000003
CMD
:: 選項 (只使用其中一個) :: 啟用 reg add "HKLM\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1" /v "2102" /t REG_DWORD /d 0 /f :: 停用 reg add "HKLM\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1" /v "2102" /t REG_DWORD /d 3 /f
PowerShell
# 共通: 建立機碼 New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1' -Force | Out-Null # 選項 (只使用其中一個) # 啟用 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1' -Name '2102' -PropertyType DWord -Value 0 -Force | Out-Null # 停用 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1' -Name '2102' -PropertyType DWord -Value 3 -Force | Out-Null
使用者各帳戶的設定
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1] ; 選項 (只使用其中一個) ; 啟用 "2102"=dword:00000000 ; 停用 "2102"=dword:00000003
CMD
:: 選項 (只使用其中一個) :: 啟用 reg add "HKCU\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1" /v "2102" /t REG_DWORD /d 0 /f :: 停用 reg add "HKCU\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1" /v "2102" /t REG_DWORD /d 3 /f
PowerShell
# 共通: 建立機碼 New-Item -Path 'HKCU:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1' -Force | Out-Null # 選項 (只使用其中一個) # 啟用 New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1' -Name '2102' -PropertyType DWord -Value 0 -Force | Out-Null # 停用 New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1' -Name '2102' -PropertyType DWord -Value 3 -Force | Out-Null