WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

OLE COM ADO CDO ADSI LDAP
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Windows Firewall


Question:

Can the windows Firewall be turned off with Winbatch? I've seen where I can create exception objects, but nothing on the "on / off" status.

Answer:

Depend on what platform...but the code might look like something like this:
objFirewall = CreateObject("HNetCfg.FwMgr")
objPolicy = objFirewall.LocalPolicy.CurrentProfile
objPolicy.FirewallEnabled = @FALSE
Reference:
http://www.microsoft.com/technet/scriptcenter/resources/qanda/sept05/hey0916.mspx
Article ID:   W17101
File Created: 2007:07:03:14:28:18
Last Updated: 2007:07:03:14:28:18