This article was previously publi=
shed under Q299357
a Microsoft Windows Server 2003 version of this
On This Page
In Microsoft Windows XP, the TCP/IP stack is considered to be a
core component of the operating system, and you cannot remove TCP/IP=
Therefore, when you view the list of components for a network interf=
may notice that the
Uninstall button is disabled when Internet Protocol (TCP/IP) is sele=
cted. In extreme cases, the best solution for this issue may be to reins=
tall the Internet Protocol stack. But with the
NetShell utility, you can reset the TCP/IP stack to restore it to it=
s state that existed when the operating system was installed.
This article describes how to use the NetShell utility for this
The NetShell uti=
lity (netsh) is a command-line scripting interface for configurin=
monitoring Windows XP networking. This tool provides an interactive
network shell interface to the user.
In Windows XP, a res=
et command is available in the IP context of the NetShell utility.
When you run the reset command, it rewrites pertinent registr=
y keys that are used by the
Internet Protocol (TCP/IP) stack to reach the same result as the rem=
the reinstallation of the protocol.
Also, remove the Client for Microsoft Networks and File and Printer Shar=
ing for Microsoft Networks, then reinstall them after the reboot.
To manually run the ip reset command su=
ccessfully, you must specify a file name
for the log where actions that are taken by netsh will be rec=
orded. For example, at a command prompt, type either of the samples that=
are listed in the "Command samples" section. The TCP/IP stack will t=
hen be reset on a system, and the actions that were taken will be record=
ed in the log
file, Resetlog.txt. The first sample creates the log file in the cur=
directory, while the second sample creates a path where the log
will reside. In either case, where the specified log file already ex=
the new log will be appended to the end of the existing file. Warning Programs that access or monitor the Internet such as an=
tivirus, firewall or proxy clients may be negatively affected when you r=
un the netsh winsock reset command. If you have a program that no=
longer functions correctly after you use this resolution, reinstall the=
program to restore functionality.
netsh int ip reset resetlog.txt n=
etsh int ip reset c:\resetlog.txt
Log File for NETSH INT IP RESET
The following is a sample of the log file that is generated by netsh<=
/b> when an IP reset command is issued. The actual log file may vary
depending on the configuration of the system where the command is is=
sued. When the TCP/IP registry keys have not been altered from their ori=
configuration, there may be no actions logged in the file.