Using Powershell to Enable a Workstation to Reply to a Ping Request from Any Remote Address

by Nov 19, 2025IT Tips0 comments

Get an Administrative Powershell Session and then run the following

# Enable Echo Request
Get-NetFirewallRule -DisplayName "File and Printer Sharing (Echo Request - ICMPv4-In)" | Enable-NetFirewallRule

# Allow ping from any host instead of just localsubnet
Get-NetFirewallRule -DisplayName "File and Printer Sharing (Echo Request - ICMPv4-In)" | Set-NetFirewallRule -RemoteAddress "Any"

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

The reCAPTCHA verification period has expired. Please reload the page.