{"id":150,"date":"2005-09-19T11:37:59","date_gmt":"2005-09-19T16:37:59","guid":{"rendered":"https:\/\/www.zubairalexander.com\/stage\/?p=150"},"modified":"2017-06-23T16:23:27","modified_gmt":"2017-06-23T23:23:27","slug":"resetting-tcpip-in-windows-xp-windows-server-2003","status":"publish","type":"post","link":"https:\/\/www.zubairalexander.com\/blog\/resetting-tcpip-in-windows-xp-windows-server-2003\/","title":{"rendered":"Resetting TCP\/IP in Windows XP &#038; Windows Server 2003"},"content":{"rendered":"<p>In earlier versions of Windows, TCP\/IP was a separate optional component that could be removed or added like any other protocol. In Windows XP\/2003, TCP\/IP is a core component of the operating system that cannot be removed. Especially on a Windows Server 2003, TCP\/IP functionally is critical for network operations and Active Directory domain environment. The entire Active Directory architecture is based on DNS hierarchy, which relies on TCP\/IP.<\/p>\n<p>There are situations where one may encounter a corrupt TCP\/IP stack. Although rare, this situation causes a major problem because you can&#8217;t remove and reinstall TCP\/IP anymore. So what&#8217;s the solution? Re-installing the operating system? Well, that&#8217;s one option. Another option is to reset TCP\/IP to the default state at the time when the operating system was installed. You can use the NetShell (netsh.exe) utility to reset TCP\/IP. This document describes how you can use the NetShell utility to reset TCP\/IP on Windows XP and Windows Server 2003. When you reset TCP\/IP, it will rewrite all the important keys in the registry which has the effect of removing and reinstalling the entire TCP\/IP stack.<\/p>\n<p><b>Resetting TCP\/IP<\/b><br \/>\nThe NetShell utility is a command line tool (netsh.exe) that allows you to monitor and configure networking components on Windows XP\/2003. To run this tool, go to the command prompt and type netsh. To display a list of commands that are available, type help, or simply type a question mark &#8220;?&#8221;.<\/p>\n<p><span style=\"font-family: Courier;\">C:\\&gt;netsh<br \/>\nnetsh&gt;?<\/span><\/p>\n<p>The following commands are available:<\/p>\n<p>Commands in this context:<br \/>\n.. &#8211; Goes up one context level.<br \/>\n? &#8211; Displays a list of commands.<br \/>\nabort &#8211; Discards changes made while in offline mode.<br \/>\nadd &#8211; Adds a configuration entry to a list of entries.<br \/>\nalias &#8211; Adds an alias.<br \/>\nbridge &#8211; Changes to the `netsh bridge&#8217; context.<br \/>\nbye &#8211; Exits the program.<br \/>\ncommit &#8211; Commits changes made while in offline mode.<br \/>\ndelete &#8211; Deletes a configuration entry from a list of entries.<br \/>\ndiag &#8211; Changes to the `netsh diag&#8217; context.<br \/>\ndump &#8211; Displays a configuration script.<br \/>\nexec &#8211; Runs a script file.<br \/>\nexit &#8211; Exits the program.<br \/>\nfirewall &#8211; Changes to the `netsh firewall&#8217; context.<br \/>\nhelp &#8211; Displays a list of commands.<br \/>\ninterface &#8211; Changes to the `netsh interface&#8217; context.<br \/>\noffline &#8211; Sets the current mode to offline.<br \/>\nonline &#8211; Sets the current mode to online.<br \/>\npopd &#8211; Pops a context from the stack.<br \/>\npushd &#8211; Pushes current context on stack.<br \/>\nquit &#8211; Exits the program.<br \/>\nras &#8211; Changes to the `netsh ras&#8217; context.<br \/>\nrouting &#8211; Changes to the `netsh routing&#8217; context.<br \/>\nset &#8211; Updates configuration settings.<br \/>\nshow &#8211; Displays information.<br \/>\nunalias &#8211; Deletes an alias.<br \/>\nwinsock &#8211; Changes to the `netsh winsock&#8217; context.<\/p>\n<p>The following sub-contexts are available:<br \/>\nbridge diag firewall interface ras routing winsock<\/p>\n<p>To view help for a command, type the command, followed by a space, and then<br \/>\ntype ?.<\/p>\n<p><u>Tip<\/u>: You can use abbreviations, or just the beginning part of a command instead of typing the entire command. For example, you can type int for interface, h for help, and either q or b to exit the program. If you want to go one level up in the path, type &#8220;..&#8221; without the quotes. You can also type the entire command without going into the individual contexts of netsh.<\/p>\n<p>To reset TCP\/IP, type the following at the command prompt.<br \/>\n<b><br \/>\nnetsh interface ip reset logfile_name<\/b><\/p>\n<p>Where logfile_name is the name of a log file in the current directory, e.g. resetlog.txt. You can also create a log file in a different folder if you provide the full path.<\/p>\n<p>When you reset TCP\/IP, the two areas of registry that are affected include:<\/p>\n<p>SYSTEM\\CurrentControlSet\\Services\\DHCP\\Parameters\\<br \/>\nSYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters\\<\/p>\n<p>For a sample Windows XP TCP\/IP reset log, check out <a href=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2005\/09\/resetlog.txt\">resetlog.txt<\/a>. If you notice that your log is empty, it could be because the TCP\/IP entries on your computer have not been changed since the default installation.<\/p>\n<hr \/>\n<p><center><span style=\"font-family: Verdana; font-size: xx-small;\">Copyright \u00a92005 Zubair Alexander. All rights reserved.<\/span><\/center><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In earlier versions of Windows, TCP\/IP was a separate optional component that could be removed or added like any other protocol. In Windows XP\/2003, TCP\/IP is a core component of the operating system that cannot be removed. Especially on a Windows Server 2003, TCP\/IP functionally is critical for network operations and Active Directory domain environment. [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[11,38,40],"tags":[],"class_list":["post-150","post","type-post","status-publish","format-standard","hentry","category-tips-tricks","category-windows-2003","category-windows-xp"],"aioseo_notices":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/posts\/150","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/comments?post=150"}],"version-history":[{"count":0,"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/posts\/150\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/media?parent=150"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/categories?post=150"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/tags?post=150"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}