scripting

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hello,
how to determine using script (WSH, WMI) if windows firewall is enabled on
specific connection?
Regards
 
OK, I've found it.

Set objFirewall = CreateObject("HNetCfg.FwMgr")
Set objPolicy = objFirewall.LocalPolicy.CurrentProfile
Wscript.Echo "Firewall enabled: " & objPolicy.FirewallEnabled
 
Back
Top