Config Server Firewall

Enable Ping in Windows Firewall (Quick & Easy Guide)

If you want to allow ping in Windows Firewall on Windows 10, Windows 11, or Windows Server, this guide will show you how. I will cover two methods: using PowerShell and using the GUI.

Allow Ping Using PowerShell

To enable ping using PowerShell, you need to run two commands:

For IPv4:

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

For IPv6:

Enable-NetFirewallRule -DisplayName "File and Printer Sharing (Echo Request - ICMPv6-In)"

Important:

Once executed, you should be able to ping your system using the ping command.

To disable the firewall rules for ping using PowerShell, you can use the Disable-NetFirewallRule command:

Disable-NetFirewallRule -DisplayName "File and Printer Sharing (Echo Request - ICMPv4-In)"
Disable-NetFirewallRule -DisplayName "File and Printer Sharing (Echo Request - ICMPv6-In)"

Allow Ping Using GUI

If you prefer using the GUI:

For a standalone computer, enabling the "Private, Public" profiles is usually enough. If you’re unsure, enable all profiles.

Windows Defender Firewall Advanced Settings
Windows Defender Firewall Advanced Settings
File and Printer Sharing Echo Request
Enable these rules to allow ICMP ping requests
enable ping in windows firewall

Important Notes

And that’s how you enable ping in Windows Firewall using both PowerShell and the GUI.