Tips Network
Reinstall TCP/IP protocol

After performing system changes, sometimes you may have problems with the TCP/IP protocol under Windows. We will look at a trick to see how this can be reinstalled.

Tips & Tricks : categories

Customization, Internet, Network, Optimization, Others, Security, System

Reinstall TCP/IP protocol

June 04th, 2006 - 06:00 pm ET by Mathieu D.
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.

The netsh command looks after the network management as we have previously seen in the saving and restoring your IP configuration folder.

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.

Stack TCPIP Modification de la base de registre
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
CMD netsh ip reset
Stack Reinitialisation


The “ip_log_file.txt” is the events log and is obligatory for the command to function correctly.


Log netsh ip reset
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 complet
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.
Post a comment
Previous tip and trick Next tip and trick
Hiding user accounts Speed up page load times in Firefox