Does Windows Management Instrumentation (WMI) provide a way to access Internet Connection Sharing (ICS) and Internet Connection Firewall (ICF) configuration settings?
As far as I know, WMI doesn't provide access to ICS and ICF settings. However, you can use the scripting objects in the Home Networking Configuration Manager component (hnetcfg.dll) to retrieve and manage I . . .

