If your PC cannot get online and when you try to repair the connection you get a message saying ‘falied to query the TCP/IP settings of the connection, you may have a corrupt TCP/IP stack.
Most of this data is from a Microsoft KB Article located at http://support.microsoft.com/?kbid=299357
The reset command is available in the IP context of the NetShell utility. Follow these steps to use the reset command to reset TCP/IP manually:
- To open a command prompt, click Start and then click Run. Copy and paste (or type) the following command in the Open box and then press ENTER:
cmd
- At the command prompt, copy and paste (or type) the following command and then press ENTER:
netsh int ip reset c:\resetlog.txt
Note If you do not want to specify a directory path for the log file, use the following command:
netsh int ip reset resetlog.txt - Reboot the computer.
When you run the reset command, it rewrites two registry keys that are used by TCP/IP. This has the same result as removing and reinstalling the protocol.

