Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VBScript for disabling firewall in XP

Status
Not open for further replies.

MadRastah

Technical User
Mar 2, 2006
1
US
So I've found a VBScript for disabling the firewall XP, but I'm trying to add it to a login script. I tried inserting it into a batch file, but that doesn't work. How do I achieve this?
 
Why not do it through the normal GPO? There is an option in there to disable the firewall.

Pat Richard, MCSE(2) MCSA:Messaging, CNA(2)
 
Code:
Set objFirewall = CreateObject("HNetCfg.FwMgr")
Set objPolicy = objFirewall.LocalPolicy.CurrentProfile

objPolicy.FirewallEnabled = FALSE
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top