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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top