. "$PSScriptRoot\_common.ps1" Section 'icmp-echo-allow' { Remove-NetFirewallRule -DisplayName 'ICMPv4 Echo Request (Allow Inbound)' -ErrorAction SilentlyContinue New-NetFirewallRule -DisplayName 'ICMPv4 Echo Request (Allow Inbound)' ` -Direction Inbound -Protocol ICMPv4 -IcmpType 8 -Action Allow -Profile Any -Enabled True | Out-Null Get-NetFirewallRule -ErrorAction SilentlyContinue | Where-Object { $_.DisplayName -match 'Echo Request' } | Enable-NetFirewallRule -ErrorAction SilentlyContinue }