Windows Defender 防火牆: 允許 ICMP 例外 的登錄值 AllowOutboundDestinationUnreachable 等 9 個 (DomainProfile\IcmpSettings)電腦HKLM\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile\IcmpSettings
- 原則 ID
- WF_IcmpSettings_Name_1
- 適用範圍
- 電腦設定
- 支援的作業系統
- 至少需要 Windows XP Professional SP2
- 來源
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (版本 1.0)
- 類別
- 網路 › 網路連線 › Windows Defender 防火牆 › 網域設定檔
登錄
AllowOutboundDestinationUnreachable
REG_DWORD電腦- 已核取
- 1
- 未核取
- 0
- 元素
- 允許無法到達輸出目的地
- 值類型
- REG_DWORD
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile\IcmpSettings] ; 選項 (只使用其中一個) ; 已核取 "AllowOutboundDestinationUnreachable"=dword:00000001 ; 未核取 "AllowOutboundDestinationUnreachable"=dword:00000000
CMD
:: 選項 (只使用其中一個) :: 已核取 reg add "HKLM\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile\IcmpSettings" /v "AllowOutboundDestinationUnreachable" /t REG_DWORD /d 1 /f :: 未核取 reg add "HKLM\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile\IcmpSettings" /v "AllowOutboundDestinationUnreachable" /t REG_DWORD /d 0 /f
PowerShell
# 共通: 建立機碼 New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile\IcmpSettings' -Force | Out-Null # 選項 (只使用其中一個) # 已核取 New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile\IcmpSettings' -Name 'AllowOutboundDestinationUnreachable' -PropertyType DWord -Value 1 -Force | Out-Null # 未核取 New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile\IcmpSettings' -Name 'AllowOutboundDestinationUnreachable' -PropertyType DWord -Value 0 -Force | Out-Null
AllowOutboundSourceQuench
REG_DWORD電腦- 已核取
- 1
- 未核取
- 0
- 元素
- 允許輸出來源抑制
- 值類型
- REG_DWORD
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile\IcmpSettings] ; 選項 (只使用其中一個) ; 已核取 "AllowOutboundSourceQuench"=dword:00000001 ; 未核取 "AllowOutboundSourceQuench"=dword:00000000
CMD
:: 選項 (只使用其中一個) :: 已核取 reg add "HKLM\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile\IcmpSettings" /v "AllowOutboundSourceQuench" /t REG_DWORD /d 1 /f :: 未核取 reg add "HKLM\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile\IcmpSettings" /v "AllowOutboundSourceQuench" /t REG_DWORD /d 0 /f
PowerShell
# 共通: 建立機碼 New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile\IcmpSettings' -Force | Out-Null # 選項 (只使用其中一個) # 已核取 New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile\IcmpSettings' -Name 'AllowOutboundSourceQuench' -PropertyType DWord -Value 1 -Force | Out-Null # 未核取 New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile\IcmpSettings' -Name 'AllowOutboundSourceQuench' -PropertyType DWord -Value 0 -Force | Out-Null
AllowRedirect
REG_DWORD電腦- 已核取
- 1
- 未核取
- 0
- 元素
- 允許重新導向
- 值類型
- REG_DWORD
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile\IcmpSettings] ; 選項 (只使用其中一個) ; 已核取 "AllowRedirect"=dword:00000001 ; 未核取 "AllowRedirect"=dword:00000000
CMD
:: 選項 (只使用其中一個) :: 已核取 reg add "HKLM\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile\IcmpSettings" /v "AllowRedirect" /t REG_DWORD /d 1 /f :: 未核取 reg add "HKLM\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile\IcmpSettings" /v "AllowRedirect" /t REG_DWORD /d 0 /f
PowerShell
# 共通: 建立機碼 New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile\IcmpSettings' -Force | Out-Null # 選項 (只使用其中一個) # 已核取 New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile\IcmpSettings' -Name 'AllowRedirect' -PropertyType DWord -Value 1 -Force | Out-Null # 未核取 New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile\IcmpSettings' -Name 'AllowRedirect' -PropertyType DWord -Value 0 -Force | Out-Null
AllowInboundEchoRequest
REG_DWORD電腦- 已核取
- 1
- 未核取
- 0
- 元素
- 允許輸入回應要求
- 值類型
- REG_DWORD
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile\IcmpSettings] ; 選項 (只使用其中一個) ; 已核取 "AllowInboundEchoRequest"=dword:00000001 ; 未核取 "AllowInboundEchoRequest"=dword:00000000
CMD
:: 選項 (只使用其中一個) :: 已核取 reg add "HKLM\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile\IcmpSettings" /v "AllowInboundEchoRequest" /t REG_DWORD /d 1 /f :: 未核取 reg add "HKLM\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile\IcmpSettings" /v "AllowInboundEchoRequest" /t REG_DWORD /d 0 /f
PowerShell
# 共通: 建立機碼 New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile\IcmpSettings' -Force | Out-Null # 選項 (只使用其中一個) # 已核取 New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile\IcmpSettings' -Name 'AllowInboundEchoRequest' -PropertyType DWord -Value 1 -Force | Out-Null # 未核取 New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile\IcmpSettings' -Name 'AllowInboundEchoRequest' -PropertyType DWord -Value 0 -Force | Out-Null
AllowInboundRouterRequest
REG_DWORD電腦- 已核取
- 1
- 未核取
- 0
- 元素
- 允許輸入路由器要求
- 值類型
- REG_DWORD
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile\IcmpSettings] ; 選項 (只使用其中一個) ; 已核取 "AllowInboundRouterRequest"=dword:00000001 ; 未核取 "AllowInboundRouterRequest"=dword:00000000
CMD
:: 選項 (只使用其中一個) :: 已核取 reg add "HKLM\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile\IcmpSettings" /v "AllowInboundRouterRequest" /t REG_DWORD /d 1 /f :: 未核取 reg add "HKLM\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile\IcmpSettings" /v "AllowInboundRouterRequest" /t REG_DWORD /d 0 /f
PowerShell
# 共通: 建立機碼 New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile\IcmpSettings' -Force | Out-Null # 選項 (只使用其中一個) # 已核取 New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile\IcmpSettings' -Name 'AllowInboundRouterRequest' -PropertyType DWord -Value 1 -Force | Out-Null # 未核取 New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile\IcmpSettings' -Name 'AllowInboundRouterRequest' -PropertyType DWord -Value 0 -Force | Out-Null
AllowOutboundTimeExceeded
REG_DWORD電腦- 已核取
- 1
- 未核取
- 0
- 元素
- 允許超出輸出時間
- 值類型
- REG_DWORD
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile\IcmpSettings] ; 選項 (只使用其中一個) ; 已核取 "AllowOutboundTimeExceeded"=dword:00000001 ; 未核取 "AllowOutboundTimeExceeded"=dword:00000000
CMD
:: 選項 (只使用其中一個) :: 已核取 reg add "HKLM\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile\IcmpSettings" /v "AllowOutboundTimeExceeded" /t REG_DWORD /d 1 /f :: 未核取 reg add "HKLM\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile\IcmpSettings" /v "AllowOutboundTimeExceeded" /t REG_DWORD /d 0 /f
PowerShell
# 共通: 建立機碼 New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile\IcmpSettings' -Force | Out-Null # 選項 (只使用其中一個) # 已核取 New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile\IcmpSettings' -Name 'AllowOutboundTimeExceeded' -PropertyType DWord -Value 1 -Force | Out-Null # 未核取 New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile\IcmpSettings' -Name 'AllowOutboundTimeExceeded' -PropertyType DWord -Value 0 -Force | Out-Null
AllowOutboundParameterProblem
REG_DWORD電腦- 已核取
- 1
- 未核取
- 0
- 元素
- 允許輸出參數問題
- 值類型
- REG_DWORD
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile\IcmpSettings] ; 選項 (只使用其中一個) ; 已核取 "AllowOutboundParameterProblem"=dword:00000001 ; 未核取 "AllowOutboundParameterProblem"=dword:00000000
CMD
:: 選項 (只使用其中一個) :: 已核取 reg add "HKLM\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile\IcmpSettings" /v "AllowOutboundParameterProblem" /t REG_DWORD /d 1 /f :: 未核取 reg add "HKLM\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile\IcmpSettings" /v "AllowOutboundParameterProblem" /t REG_DWORD /d 0 /f
PowerShell
# 共通: 建立機碼 New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile\IcmpSettings' -Force | Out-Null # 選項 (只使用其中一個) # 已核取 New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile\IcmpSettings' -Name 'AllowOutboundParameterProblem' -PropertyType DWord -Value 1 -Force | Out-Null # 未核取 New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile\IcmpSettings' -Name 'AllowOutboundParameterProblem' -PropertyType DWord -Value 0 -Force | Out-Null
AllowInboundTimestampRequest
REG_DWORD電腦- 已核取
- 1
- 未核取
- 0
- 元素
- 允許輸入時間戳記要求
- 值類型
- REG_DWORD
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile\IcmpSettings] ; 選項 (只使用其中一個) ; 已核取 "AllowInboundTimestampRequest"=dword:00000001 ; 未核取 "AllowInboundTimestampRequest"=dword:00000000
CMD
:: 選項 (只使用其中一個) :: 已核取 reg add "HKLM\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile\IcmpSettings" /v "AllowInboundTimestampRequest" /t REG_DWORD /d 1 /f :: 未核取 reg add "HKLM\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile\IcmpSettings" /v "AllowInboundTimestampRequest" /t REG_DWORD /d 0 /f
PowerShell
# 共通: 建立機碼 New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile\IcmpSettings' -Force | Out-Null # 選項 (只使用其中一個) # 已核取 New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile\IcmpSettings' -Name 'AllowInboundTimestampRequest' -PropertyType DWord -Value 1 -Force | Out-Null # 未核取 New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile\IcmpSettings' -Name 'AllowInboundTimestampRequest' -PropertyType DWord -Value 0 -Force | Out-Null
AllowInboundMaskRequest
REG_DWORD電腦- 已核取
- 1
- 未核取
- 0
- 元素
- 允許輸入遮罩要求
- 值類型
- REG_DWORD
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile\IcmpSettings] ; 選項 (只使用其中一個) ; 已核取 "AllowInboundMaskRequest"=dword:00000001 ; 未核取 "AllowInboundMaskRequest"=dword:00000000
CMD
:: 選項 (只使用其中一個) :: 已核取 reg add "HKLM\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile\IcmpSettings" /v "AllowInboundMaskRequest" /t REG_DWORD /d 1 /f :: 未核取 reg add "HKLM\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile\IcmpSettings" /v "AllowInboundMaskRequest" /t REG_DWORD /d 0 /f
PowerShell
# 共通: 建立機碼 New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile\IcmpSettings' -Force | Out-Null # 選項 (只使用其中一個) # 已核取 New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile\IcmpSettings' -Name 'AllowInboundMaskRequest' -PropertyType DWord -Value 1 -Force | Out-Null # 未核取 New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile\IcmpSettings' -Name 'AllowInboundMaskRequest' -PropertyType DWord -Value 0 -Force | Out-Null
AllowOutboundPacketTooBig
REG_DWORD電腦- 已核取
- 1
- 未核取
- 0
- 元素
- 允許輸出封包太大
- 值類型
- REG_DWORD
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile\IcmpSettings] ; 選項 (只使用其中一個) ; 已核取 "AllowOutboundPacketTooBig"=dword:00000001 ; 未核取 "AllowOutboundPacketTooBig"=dword:00000000
CMD
:: 選項 (只使用其中一個) :: 已核取 reg add "HKLM\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile\IcmpSettings" /v "AllowOutboundPacketTooBig" /t REG_DWORD /d 1 /f :: 未核取 reg add "HKLM\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile\IcmpSettings" /v "AllowOutboundPacketTooBig" /t REG_DWORD /d 0 /f
PowerShell
# 共通: 建立機碼 New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile\IcmpSettings' -Force | Out-Null # 選項 (只使用其中一個) # 已核取 New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile\IcmpSettings' -Name 'AllowOutboundPacketTooBig' -PropertyType DWord -Value 1 -Force | Out-Null # 未核取 New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile\IcmpSettings' -Name 'AllowOutboundPacketTooBig' -PropertyType DWord -Value 0 -Force | Out-Null