Board index » Visual Studio » Turning the Windows XP firewall on and off
|
BMarilyn92220
|
|
BMarilyn92220
|
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 - |
| Torgeir
Registered User |
Wed Dec 03 11:27:15 CST 2003
Re:Turning the Windows XP firewall on and off
Marius from Rome wrote:
QuoteIs it possible to use a VBscript file to turn the Windows XP firewall on and 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 - |
