To turn off the firewall using Windows PowerShell in Windows Server 2012:
- Open Windows PowerShell.
- Type Set-NetFirewallProfile -Profile Domain,Public,Private -Enabled False.
Enable Ping:
Import-Module NetSecurityNew-NetFirewallRule -Name Allow_Ping -DisplayName “Allow Ping” -Description “Packet Internet Groper ICMPv4” -Protocol ICMPv4 -IcmpType 8 -Enabled True -Profile Any -Action Allow