Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p><strong>Possible solution 1: Disable ICS at all.</strong> You can stop ICS service, so none of the connections will be at sharing status and will not conflict with <code>NetConLib.dll</code>. (Not sure about the hidden ones, you must try).</p> <p>You can manage it from command line using: <code>net start SharedAccess</code> or <code>net stop SharedAccess</code> </p> <p>Also, if you need to disable it from reboot to, must disable service using: <code>sc config SharedAccess start= disabled</code></p> <p>Notes and references: </p> <ul> <li>Executing <code>sc config</code> will display "start= OPTIONS" and some other. The space below = and option is mandatory. You can check result running <code>services.msc</code> from Run or cmd.</li> <li>Exec <code>net</code> to display OPTIONS. The name of service is on the services.msc list under "Name of the service" label from ICS service.</li> <li>netsh routing is not on Win7 anymore, so you only can start/stop/enable/disable but not enable for a particular Interface. You must set by handMouse... This not work under Win7 <a href="http://forums.devshed.com/windows-help-34/enabling-ics-under-command-line-89499.html" rel="nofollow noreferrer">ICS into XP system</a></li> <li><code>Sc Config</code> command was from <a href="http://docs.oseems.com/general/operatingsystem/windows/firewall-command" rel="nofollow noreferrer">this cool documentation i found today</a>.</li> </ul> <p><strong>Possible solution 2:</strong> Remove ghost interfaces? I try also around Adapters and interfaces into registry and do not see anything about show/hid/ghost/enabled or similar. I also search here <a href="http://support.microsoft.com/kb/314053/es" rel="nofollow noreferrer">kb 314053</a> for registry conf.</p> <p>I can suggeest try Possible solution 1 :) or directly delete hidden/ghost adapters. You can do it by two ways. Devcon remove option will delete also drivers.</p> <ul> <li>Device manager: Run <code>set devmgr_show_nonpresent_devices=1</code> and run <code>devmgmt.msc</code>. You must see over "See" a "Show hidden" option. The show_nonpresent must reveal also hidden devices, not only inactive. <a href="http://support.microsoft.com/kb/269155#LetMeFixItMyselfAlways" rel="nofollow noreferrer">kb 269155 - You must click over #link named "Let me fix it myself"</a></li> <li>With devcon.exe utility: This is a device manager tool from Windows with power moves. <a href="http://msdn.microsoft.com/en-us/library/windows/hardware/ff544746%28v=vs.85%29.aspx#ddk_example_36_remove_a_particular_network_device_tools" rel="nofollow noreferrer">You will find a very big and helpfull guide here</a>.</li> </ul> <p>Basic usage for find netcards <code>devcon findall =net</code>, also you can <code>devcon findall =net *ndis*</code> to list all ndis cards. Basic usage for remove will be <code>devcon remove =net *ndis*</code> to remove all ndis card type.</p> <p>I try also enable/disable commands but nothing has change into my network interfaces list. I removed my own wifi card to test it :) Anyway, i didn't notice any option about "Unhide" feature for such devices from conections panel.</p> <p><strong>NEW EDIT (Too much verbose, right?)</strong></p> <p>I found a tool called <strong>ics-manager</strong> <a href="https://superuser.com/questions/470319/how-to-enable-internet-connection-sharing-using-command-line">from this superuser post. - read answer #3</a> You can download directly from <a href="https://github.com/utapyngo/icsmanager" rel="nofollow noreferrer">utapyngo's Git project page</a>.</p> <p>It's based on .Net Framework 4. Yo must download and run the build.bat to compile both exe's (You got also the C# source). The solution is to get only the compiled IcsManager.exe (command line version) with the only needed library IcsManagerLibrary.dll. </p> <p><strong>This app is using also <code>NETCONLib.dll</code></strong>, so you can use it, or read the source to see wich is the correct function you need to do it and implement on your development.</p> <p>If you got problems with the Ip range "192.168.137.1", you can set from Registry permanently, or run <code>netsh interface ipv4 set address name="YOUR-INTERFACE" source=static addr=192.168.2.1 mask=255.255.255.0</code>. You will got ugly errors from launch the <code>netsh interface</code> using tilde or accutes into interfaces name (Spanish default ethernet name is "Conexión de áreal local"... a joke).</p> <p>Note: You can pack all at once, using first a Bat to <code>call</code> the IcsManager.exe' with the arguments needed, then launch the netsh configure command later from same batch to full configure. </p> <p>Comment: About the prompt when try to overwrite an shared connection, it's surely because only one could be shared. I also see, they are configured as Public and Home to set the pair, but i can't find where's the registry key...Also make some exports from reg and using Diffs, no lucky. I got stuck at diffs and start to search "ICS C++ and C#" on Google, then found it.</p> <p>Extra: I got the <code>netsh</code> it into a bat, and <a href="https://superuser.com/questions/583320/how-to-run-a-windows-application-when-the-ethernet-cable-is-connected">it's launched for Windows Task when a Ethernet cable is plugged (Here is the howto)</a> in order to use with Android Reverse Tethering. As you can see, im too interesting into your question because it makes me research better and also learned a lot.</p> <p>Sorry about my bad English. Im not. Regards.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload