Lists ICMP settings for the Windows Firewall current profile
Set objFirewall = CreateObject("HNetCfg.FwMgr")Set objPolicy = objFirewall.LocalPolicy.CurrentProfileSet objICMPSettings = objPolicy.ICMPSettingsWscript.Echo "Allow inbound echo request: " & _objICMPSettings.AllowInboundEchoRequestWscript.Echo "Allow inbound mask request: " & _objICMPSettings.AllowInboundMaskRequestWscript.Echo "Allow inbound router request: " & _objICMPSettings.AllowInboundRouterRequestWscript.Echo "Allow inbound timestamp request: " & _objICMPSettings.AllowInboundTimestampRequestWscript.Echo "Allow outbound destination unreachable: " & _objICMPSettings.AllowOutboundDestinationUnreachableWscript.Echo "Allow outbound packet too big: " & _objICMPSettings.AllowOutboundPacketTooBigWscript.Echo "Allow outbound parameter problem: " & _objICMPSettings.AllowOutboundParameterProblemWscript.Echo "Allow outbound source quench: " & _objICMPSettings.AllowOutboundSourceQuenchWscript.Echo "Allow outbound time exceeded: " & _objICMPSettings.AllowOutboundTimeExceededWscript.Echo "Allow redirect: " & objICMPSettings.AllowRedirect
This is a VB Script, this can be used by saving the file in .vbs file