MSMVPS.COM
The Ultimate Destination for Blogs by Current and Former Microsoft Most Valuable Professionals.
Trashed tcp on your nic?

Have you suffered a slow xp start and no working nic? Ipconfig will not work? Have you ever suffered a nic that would not repair in XP? You get errors suggesting that it cannot see the tcp. I started disabling antivirus services with no joy. I found this comment at http://www.bangsar.net/mt-archives/000279.html His comment lets you uninstall the tcp so that you can do a fresh install of the tcp.

Note that this did not solve my problem but it is sort of neat that you can yank out the tcp with an edit of the nettcpip.inf.

Quote:

Problem:
Can't connect to the network. Your connection says you are connected, but no packets go through at all. Your connection's "Connection Status" info does not show anything about your IP address. Clicking on Repair gives you "Failed to query TCP/IP settings" or something like that.

Solution:
Restart your PC into Safe Mode with Networking.

Edit your registry. Delete the following keys:-
HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/Winsock
HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/Winsock2

Open the nettcpip.inf file in your %winroot%/inf folder (%winroot% is usually c:/windows).
Find the [MS_TCPIP.PrimaryInstall] section. Change the Characteristics value from 0xA0 to 0x80.

Open the properties of the network connection you want to fix. In the General tab, click on the Install button. Click on the Have Disk button, and point the location to %winroot%/inf. After that select TCP/IP (not version 6).

Now you would notice that you can uninstall TCP/IP! Do that, then restart the PC.

Go back to your network connection, and install TCP/IP again as per the above. After another reboot, you should be up and running.

Endquote

Personally I could not get this to work last time I tried on XP. I hope you have better luck. I also noted that the XP network repair tool may yank out the ISA 2004 firewall client stuff. Just run the firewall clinet repair or install it again to fix that problem after you did your reboot.

I suffered a server that refused to startdhcp, dns and wins. I beat on the server a long time remove phantom nics, reboots and even a full restore. On that server I exported the winsock and winsock2 keys from the registry. I deleted those keys. I rebooted the server. I imported those keys. I rebooted the server and all was well. Pretty goofy but it worked and I had nothing to lose. Your mileage may vary and you better have good backup of the whole server before you do this kind of crazy stuff.

Note from DJ

Quote

This along with a TCP/IP reset using the netsh command:

netsh int ip reset resetlog.txt

Did the trick for me...

This happens to my system frequently and usually a system restore from a checkpoint from the previous night fixes it. This time not.

endquote

 

 


Posted Thu, Jun 9 2005 11:13 by jim

Comments

jim wrote Thanks
on Tue, Jul 12 2005 9:17
This along with a TCP/IP reset using the netsh command:

netsh int ip reset resetlog.txt

Did the trick for me...

This happens to my system frequently and usually a system restore from a checkpoint from the previous night fixes it. This time not.
jim wrote re: Trashed tcp on your nic?
on Thu, Oct 20 2005 22:38
I spent 20 hours trying to fix this and 2 almost sleepless nights. I have also been battling it off and on for over 6 months on my tecra S2 laptop from Toshiba. This fixed it up immediately. I also uninstalled XP SP@ and my Cisco VPN client which I noticed were both causing occasional network problems.

Thanks again
jim wrote re: Trashed tcp on your nic?
on Fri, Oct 28 2005 11:52
Got the same error message ("Failed to query TCP/IP settings") but it was after I've installed Forti Client that was incompatible with my anti-virus software.

I did a system restore and it worked.

HOW TO DO A SYSTEM RESTORE:
1. Click Start, point to All Programs, point to Accessories, point to System Tools, and then click System Restore
2. Click Restore my computer to an earlier time, and then click Next.

I found it out from Microsoft support:
http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q286562&ID=KB;EN-US;Q286562&

Can be useful to some people.

Terry Hargraves wrote re: Trashed tcp on your nic?
on Mon, Jan 2 2006 16:30
I had precisely this "Failed to query TCP/IP" error on a notebook. Couldn't do a system restore because the user had already been monkeying with it for months.

Uninstalling and reinstalling TCP/IP per these instructions did the trick!!

Thank you, my New Year's Day holiday can now be resumed!
Evil Beezle wrote re: Trashed tcp on your nic?
on Sat, Feb 25 2006 6:50
Tried the above and it did allow me to uninstall TCP/IP - Neat trick!
But overall this didn't fix the problem.

Turned out putting a different network card fixed the issue. (NEC worked, Davicom didn't!)

Get a decent network card - The Davicom is now in the bin.

Al
Kris wrote re: Trashed tcp on your nic?
on Mon, Jul 10 2006 21:57
Hi...
I tried the registry changes mentioned above, to no avail. I restored to an earlier date, twice, to no avail. Been trying to fix the "failed to query TCP/IP" error off and on for over a week, maybe two. Finally, on a hunch I'd had since the start, I uninstalled about 8 Windows XP updates that installed automatically around the time I lost my internet connection, and LO AND BEHOLD, I had my tcp/ip back! I didn't do the uninstall one at a time, so I don't know which one it was, but here are the numbers: KB916281, KB914389, KB917953, KB917344, KB917734, KB911280, KB918439
Pass it on, Microsoft screws us again!!!
Kris
Eric wrote re: Trashed tcp on your nic?
on Thu, Jul 20 2006 9:09
I had a user with a "network problem".  When I went to his PC and tried an ipconfig /all - nothing would be listed except "Windows IP Configuration" - no adapters or anything else listed.   I tried repairing a network connection and got the "Failed to query TCP/IP settings" mentioned above.  I was quite surprised that TCP/IP couldn't be uninstalled/re-installed natively.  The steps listed above allowed me to do this and fixed my problem.  What caused the problem is unknown but the user did state that it seemed to start happening after he unistalled a Beta version of Visual Studio .NET.
ubiquity wrote re: Trashed tcp on your nic?
on Sun, Jul 23 2006 1:53
Before trying that lengthy fix.  Try the simple solution at this URL: http://kentwell.net/glenn/14

It says, "...all I did was go into the Properties for the Local Area Connection and untick TCP/IP…click OK and then go back in and tick TCP/IP again. This must reset the settings for the TCP/IP protocol on that network interface.".

I tried that and it worked for me!
Gary wrote re: Trashed tcp on your nic?
on Wed, Jul 26 2006 10:26
I tried this and sure enough, I'm up and running again.  Big thanks.  Now I just need to get rid of the new second copy of XP that I installed before finding this.
Debbi wrote re: Trashed tcp on your nic?
on Wed, Aug 2 2006 9:54
I worked on two computer in the past two weeks with the same problem. I stumbled on your solution for the first computer and it worked great. Unfortunately I did not bookmark your site and spent a couple days using other solutions I found on the net--resetting TCP/IP or restacking it. Nothing worked. I finally found your site again when I did a google search on "nettcpip". Followed your instructions and it worked like a charm! I cant understand why this isnt a standard solution or one offered by Microsoft support.

Thank you so much. Your site is bookmarked now. :)
Mark wrote re: Trashed tcp on your nic?
on Mon, Sep 11 2006 20:20

You guys Rock! I've been batteling for several days now off and on after ghosting to a new hard drive to fix the tcp/ip bug that disables the netcard, and this fix worked. Microsoft themselves are unaware how to fix this error as far as I can see.

Justin wrote re: Trashed tcp on your nic?
on Mon, Oct 23 2006 20:05

or if you have sp 2 you could skip alot of it with the command

netsh winsock reset

Jerry wrote re: Trashed tcp on your nic?
on Thu, Dec 7 2006 5:33

netsh int ip reset resetlog.txt worked for me !

Thanks for that I was starting to despair...

slugg0 wrote re: Trashed tcp on your nic?
on Thu, Jul 19 2007 18:29

The tip from ubiquity worked for me:

"go into the Properties for the Local Area Connection and untick TCP/IP…click OK and then go back in and tick TCP/IP again. "

You must reboot for the changes to take full effect.

The problem occurred after installing drivers for a $20 USB camera purchased at a local drug store. Be careful what you install on your machine!

Centaurette wrote re: Trashed tcp on your nic?
on Wed, Aug 1 2007 8:13

I was having the 169.254.x.x/255.255.0.0/not able to renew, etc, etc issue.  The tricks listed here didn't work at all.  I'm sure the inf files were bad.  What worked was 1) copying onto disk the inf folder from the desktop pc that is able to  connect to the net with no problem 2) deleting the Winsock and Winsock2 from the registry 3) deleting the inf folder from the non-internet laptop 4) copying the inf folder from disk to the laptop 5) went into the connection I wanted to fix 6) clicked on Properties and then Install 7) clicked on Protocol, then Have Disk, then typed c:\Windows\inf 8) restarted the computer.  Somewhere along the line, doing that disabled the IPv6 Windows Firewall Driver...even though I had the Windows Firewall set to off.  I used ipconfig /all just to verify and lo and behold...success!!!  Finally!!  I had read on another site about someone who just replaced a couple files and registry keys, but I figured replacing the whole folder couldn't hurt since they were both XP.  What doesn't matter with this fix is whether one is XP Pro and one is XP Home...at least that I can tell.  In case I'm wrong, I took the inf folder from Home pc to Pro laptop.

drcollins wrote re: Trashed tcp on your nic?
on Sat, Aug 4 2007 11:15

I cannot get tcpip to uninstall.  I have tried all of the above instructions with no avail.  I am unable to run restore.  24 hrs of head scratching and eyes burning.  I have replaced the nic  Any other hints would be apprectiated.

sfnorris wrote re: Trashed tcp on your nic?
on Thu, Aug 9 2007 16:08

I have tried all of the above with no joy. I'm going to install another hard drive so I can retrieve email etc. and start over.

ARRRGGGGG!

Gadfly wrote re: Trashed tcp on your nic?
on Sun, Aug 12 2007 22:28

Reinstalling TCP/IP as per the directions did indeed revive my ability to connect to the net.

I usually have a backup copy of my C: disk so that in cases of disastrous failures I can reinstall.  In this case the older version worked until some updates were installed and the  problem returned. On that copy reverting to a restore point a day earlier solved the problem.

I then reinstalled the originally failed copy of C: - only to find there were no restore points on it - so I reinstalled TCP/IP and that solved the problem on that copy.

It really appears that MS update was the culprit in both cases.

Gad

Gadfly wrote re: Trashed tcp on your nic?
on Sun, Aug 12 2007 22:33

BTW the ticking and unticking of TCP/IP internet protocol did not work for me.

Gad

JK wrote re: Trashed tcp on your nic?
on Sun, Aug 19 2007 16:27

When I tried reinstalling the tcp/ip on the system, I get the following error: "Could not add the requested component. the error is: an extended error has occurred." Any clue how to get around this?

Girkers wrote re: Trashed tcp on your nic?
on Fri, Aug 24 2007 1:22

Thanks for this worked a treat.

BadGirl wrote re: Trashed tcp on your nic?
on Sat, Aug 25 2007 11:17

I also had encountered this problem on my mom's laptop.  I think it was due to a virus corrupted some network files.  I'm not sure but I did a restore and it's back up.  Thanks

sefy wrote re: Trashed tcp on your nic?
on Sun, Sep 9 2007 5:06

You'r the real man . . . You'r great solution work for me . . . You'r the best . . . .[ I'm so (edited) happy ]

Tony Sahajlain wrote re: Trashed tcp on your nic?
on Mon, Sep 17 2007 11:08

Dude, thanx a lot for putting on web. I wasted a night and a day getting my internet up and running. It got fixed after i followed the steps mentioned on this post.

\ooo/

Tony - The "M E T A L H E A D"

HAPPY! wrote re: Trashed tcp on your nic?
on Tue, Sep 18 2007 0:06

Fabulous!  I had my doubts, but it worked.  Thank you so much, I know you just saved me a ton of time!  FYI, I tried the comments from 'ubiquity', 'Jerry' and 'Justin' first because they looked easier....nothing.  But the original post worked like a charm.

Stuart wrote re: Trashed tcp on your nic?
on Mon, Sep 24 2007 17:23

Did all the steps mentioned and it didnt work, but then checked the services, the DHCP client service wouldnt start due to dependincies.

windowsxp.mvps.org/dhcp.htm

found that the TCPIP.sys was missing from the system32 folder.  

all working now.

Victor wrote re: Trashed tcp on your nic?
on Tue, Oct 30 2007 21:04

Stuart - THANKS A MILLION

I tried a ton of sites and tips to no avail.  

This stopped DHCP Service was an awesome symptom description!

Some spyware/virus replaced the tcpip.sys file in the

system32\drivers and the system32\dllcache folder.

Thanks to you and the link that you provided, everything is back to normal!!!

VVV @ www » Blog Archive » Win XP: failed to query TCP/IP settings of the connection wrote VVV @ www » Blog Archive » Win XP: failed to query TCP/IP settings of the connection
on Tue, Nov 27 2007 14:11

Pingback from  VVV @ www  » Blog Archive   » Win XP: failed to query TCP/IP settings of the connection

Robert wrote re: Trashed tcp on your nic?
on Fri, Dec 7 2007 14:21

Just uninstall network card in device manager, restart PC and reinstall network card, job done.  Works for me

Billy wrote re: Trashed tcp on your nic?
on Sat, Jan 5 2008 19:28

Tried the original solution and it did allow me to uninstall TCP/IP - Pretty cool.

netsh int ip reset resetlog.txt

netsh winsock reset

But overall this didn't fix the problem.

I knew that the problem was related to one of the Security Updates for Windows XP.

I identified Security Update for Windows XP (KB917953) as the culprit.

Use Windows Explorer to navigate to the C:Windows "$NtUninstallKB917953$" folder and use the uninstall utility in the folder.

Note:  I noticed two other folders related:

"$NtUninstallKB917953$(2)"  and

"$NtUninstallKB917953_0$"

I did not have to do anything using those in order to fix the problem.

Old Techie wrote re: Trashed tcp on your nic?
on Tue, Jan 15 2008 22:22

Spent about a day fighting this one until I found this post. Original susgestion worked after trying all the easy stuff.

Frank wrote re: Trashed tcp on your nic?
on Thu, Oct 9 2008 12:05

Unticking and reticking TCP/IP did not work.  Before trying the harder stuff, I uninstalled Windows XP SP3.  That fixed it.  Originally, SP3 gave me an MSWSOCK.DLL error.  Trying to fix that, I got the QUERY TCP/IP error.  SP3 is incompatible with the SiS 900 PCI Fast Ethernet Adapter on my MB or my Linksys WRT150N wireless-n router.

Zauberer wrote re: Trashed tcp on your nic?
on Tue, Dec 2 2008 23:08

I only have to say… Thank You!!!, Thank You!!!, Thank You!!!, So much…

After too much Googling finally a real solution… My wireless adapter was only working with fixed IP address since a virus changed the DNS and my computer has never the same. The command “netsh int ip reset” does not help so much in most of the cases.

Add a Comment

(optional)  
(optional)
(required)  
Remember Me?


Copyright © is the original authors. Blog site is an independent site not sponsored by Microsoft. The Yoda blog server and the Brianna SQL server would like to thank www.ownwebnow.com and www.exchangedefender.com. They wouldn't be here and broadcasting without the generosity of Vlad Mazek and his companies.

Powered by Community Server (Commercial Edition), by Telligent Systems