When performing multiple installs and uninstalls of programs that use the network, or after performing changes that may have gone wrong on the system, you may encounter problems with the TCP/IP protocol where it is no longer loaded by the system.
We will see here how to completely reinstall the TCP/IP stack along with the TCP/IP v4 protocol under Windows.
Click on “Start”, “Run” and type “Regedit”. Then press OK so that the registry database opens.
Go to the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services key
Find the Winsock and Winsock2 keys and delete them. Then close the registry editor.
Suppression des clés dans le registre
Click on “Start”, “Run” and type “cmd”. Press “OK” and you should have a command box in front of you.
Enter the following command: netsh interface ip reset ip_log_file.txt
The “ip_log_file.txt” is the events log and is obligatory for the command to function correctly.
Journal issu à l'exécution de la commande
Once the command has finished you can go to the Documents and Settings\User folder. If you want you can look at the log file that has been created by the user.
Go to the “Network Connections” folder (available under the “Control Panel”) right click on the “Local Area Network Connection”, and select “Properties”. Next click on the [Add] button.
A new window will open and here you should select “Protocol” and then press the [Add] button. Next click on the [have Disk] button and enter C:\WINDOWS\inf for the location. You will then be able to select “Internet Protocol (TCP/IP)” which will appear in the list.
Réinstallation du protocole
You will then need to restart your computer after all the changes have been made so that they will take effect.
If you want to have more information about the netsh command then you can read this article from Microsoft.
You can also download this batch file which will execute the netsh command for you if you want.