Torgeir
Wed Dec 03 11:27:15 CST 2003
Marius from Rome wrote:
> Is it possible to use a VBscript file to turn the Windows XP firewall on and
> off?
Hi
The VBScript in the link below demonstrates how to enable Internet Connection
Firewall on a connection, change the line
"EveryConnection.EnableInternetFirewall" to
"EveryConnection.DisableInternetFirewall" to let it disable instead of enable.
Platform SDK: Internet Connection Sharing and Internet Connection Firewall
Enabling Internet Connection Firewall (VBScript)
http://msdn.microsoft.com/library/en-us/ics/ics/enabling_internet_connection_firewall_vbscript_.asp
Note that when running this script it will pop up a warning box where the user
needs to select between cancel or continue , and it doesn't look like it is
possible to suppress this warning box...
--
torgeir
Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of the 1328 page
Scripting Guide:
http://www.microsoft.com/technet/scriptcenter