Enable ping response for Windows Server

I recently got two windows VPS for testing and stuff. The issue I faced was that even though they were Windows 2008 VPS, I still could not ping it. Came to know later that its a security feature and hence all pings are disabled.

Windows 2008 start menu

You just need to enable it by running the following command on command prompt

netsh firewall set icmpsetting 8

If you wish to disable it, later, you may run this to do so

netsh firewall set icmpsetting 8 disable

Windows 2008 command prompt