Charles Blair wrote:
> I have been unable to find any way to programmatically enable ICF on a
> network adapter in XP. I have looked at "netsh firewall" but this seems to
> be for IPv6 only, and I have had no luck finding a command reference for
> enabling thru WMI. Any help would be greatly appreciated.
Hi
You can do it with WMI:
Internet Connection Sharing and Internet Connection Firewall
http://msdn.microsoft.com/library/en...start_page.asp
E.g. here is a VBScript demonstrating how to enable Internet Connection
Firewall
on a connection:
Platform SDK: Internet Connection Sharing and Internet Connection Firewall
Enabling Internet Connection Firewall (VBScript)
http://msdn.microsoft.com/library/en..._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