in powershell enter sconfig
option 4
then option 3 to enable ping and click yes on both prompts

Allow ping through Windows Firewall
Windows Firewall with Advanced Security
Inbound Rules
“File and printer Sharing (Echo Request – ICMPv4-In)” and enable the rule.3
if IPv6 is needed enable the “File and Printer Sharing (Echo Request – ICMPv6-In)” rule