Here is how you enable these operating systems to respond to a ping...
- Open a command prompt as an administrator. Go to Start/Accessories/Command Prompt and right-click, selecting "run as administrator".
- At the command prompt, type (or paste) "netsh firewall set icmpsetting 8".
- Hit enter.
- Read the bit scolding you about using a deprecatedcommand, then promptly ignore all that if the command returned "Ok."
- Enjoy pinging your machine.