To enable it, go to Start > Administrative Tools > Windows Firewall With Advanced Security
Now go to Inbound Rules on the left pane of the new window, and find the File and Printer Sharing (Echo Request – ICMPv4-In) from the rules. Enable it by right clicking. Now, your server will respond back to ping requests from IPv4 packets. You can also enable this for IPv6 from the rule right below it.