Board index » Visual Studio » Turning the Windows XP firewall on and off

Turning the Windows XP firewall on and off

Visual Studio356
Is it possible to use a VBscript file to turn the Windows XP firewall on and

off?

Regards

Marius


-
 

Re:Turning the Windows XP firewall on and off

Marius from Rome wrote:



Quote
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)

msdn.microsoft.com/library/en-us/ics/ics/enabling_internet_connection_firewall_vbscript_.asp">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: www.microsoft.com/technet/scriptcenter">www.microsoft.com/technet/scriptcenter





-