How To Fix Internet Connection After Spyware Removal Killed it

I found These on some Support Forums.  I have not tried all of them.

I also found this Article from MS if you have XP SP2 Installed
http://support.microsoft.com/kb/892350

Posted: Feb 19 2003, 11:03 PM
If anyone is interested, I have a zipfile, self extractor which will/should correct any winsock /TCP problems you encounter after running Adaware, any version.
I do Internet related installations, for hundreds of different computers every year, Adaware is the first thing that goes in, if they ever had an Internet connection before. I use this program religously.(and always will use it)
I get some of the same type errors described here, the most common problem, is a corrupted registry entries to kill your browser, after much research, a quick fix was found to repair these entries and get everything back up and running.(on my network)
Although this fix has worked flawlessly over the last year, I urge you to still make a registry backup anyway.
If your machine has already fell victim to winsock issues, you really don't have anything to lose. I would like to know if it has helped though.
Use and Reboot

you can download this file from:
http://members.shaw.ca/techcd/WinsockXPFix.exe

Local Copy I HAVE TESTED THIS [CRAIG] AND IT WORKED!

If this ends up working well perhaps a simple GUI could be added.
also win9x - Me has similar fixes most can be done right from the Windows cab files.

reply to: techcd@shaw.ca
Posted: Feb 20 2003, 01:37 AM
Repairing Winsock in Win9x - Me do this
open Network settings
1.) Remove all protocols or everything EXCEPT leave the NIC Adapter
2.) Click Apply & Close the Properties box, but on reboot notice, hit Cancel...do not reboot!
3.) Open Regedit and delete these keys:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\VXD\Dhcp
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\VXD\Dhcpoptions
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\VXD\MSTCP
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\VXD\Winsock2

also ..scroll down delete

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Winsock2

close regedit

4.) Open Network Properties again, and Click ADD - PROTOCOL - MicroSoft/TCPIP(should Add Client for MS Networks Automatically)

have your windows CD ready or the CAB files,
Reboot and Should be good.

NOTE: Simply removing the Protocols in Network settings will not work because those registry entries stay, even if you have no network at all. Once deleted, putting the TCP/IP protocol back in , basically rebuilds the TCP from scratch, it is the same as when Windows was first installed clean.
also any speed patches to TcpRWin values & MTU will be reset back to Windows defaults.
Hope this Helps, I have a script to do these actions automatically with a single reboot if anyone is interested.

This post has been edited by Option^Explicit on Feb 20 2003, 01:41 AM
Posted: Feb 20 2003, 10:24 AM
Here's my Winsock fix for Win 98 and ME. It's simple, it has been tested many times, and it does the trick:

Open Control Panel. Go to the Add and Remove programs/windows setup tab. Take the check mark out of Communication, and click 'apply'. When asked to reboot, say no.

Now copy the two bold lines to Notepad, and save as Dialup.reg (save as 'all files')
Doubleclick your new Dialup.reg file, and answer 'yes' to the prompt whether you'd like the contents of Dialup.reg added to the Registry.


REGEDIT4

[-HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\WinSock2]



Go back to the Add and Remove programs/windows setup tab, put the check mark back at 'Communication', and click OK again. You'll probably need your Windows CD-ROM.

This post has been edited by TonyK on Feb 20 2003, 10:24 AM

Tony
Posted: From http://www.bu.edu/pcsc/internetaccess/winsock2fix.html

Winsock2 Fix (w2fix.exe)
Written by: Tom Knych
E-mail: tomk@bu.edu

This program should be used on Windows 98, 98SE, or Windows Me computers whose Winsock2 information has been corrupted by poorly written Internet programs.

This program is designed to fix a situation where all of the following are true:

  • the computer can get a valid IP address
  • the computer can ping DNS numbers
  • the computer can be pinged from other computers
  • all other network services do not work (Telnet, ftp and Web browsers)

This program removes the Winsock2 key from the Registry and uninstalls then reinstalls Dial-up Networking. A backup of the registry is made before any changes are attempted (the registry is backed up to user.tom system.tom).

Instructions for the Winsock 2 Fix:

IMPORTANT: w2fix.exe ONLY WORKS for Windows 98, 98SE, and Windows Millennium

  1. Download w2fix.exe to the desktop. (Important: w2fix.exe cannot be run from a floppy disk as the program reboots the computer and a floppy disk would interfere with the boot sequence.) I HAVE NOT TESTED THIS FILE [CRAIG]

    Note: If you accidentally downloaded the program to a location other than the desktop, copy it to the desktop now.

  2. Double click on the w2fix file on your desktop and follow the on-screen instructions. You will be prompted to reboot your computer twice before the fix is complete.

  3. You can delete the w2fix.exe file from your computer after the fix is installed.
How do I reinstall the TCP/IP protocol in Windows XP
If you need to reinstall the TCP/IP protocol in Windows XP, you will notice that the Uninstall button is disabled.

The TCP/IP stack is a core component of Windows XP and can NOT be uninstalled.

You can reset the stack to its' installed state by using the built-in netsh tool.

When you run:

netsh int ip reset <PATH>\resetlog.txt

the following registry keys are rewritten:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\DHCP\Parameters\
NOTE: If <PATH>\resetlog.txt exists, it will be appended.

Here is a sample snippet of a log file:

reset   SYSTEM\CurrentControlSet\Services\Dhcp\Parameters\Options\15\RegLocation
            old REG_MULTI_SZ =
                SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\?\DhcpDomain
                SYSTEM\CurrentControlSet\Services\TcpIp\Parameters\DhcpDomain

added   SYSTEM\CurrentControlSet\Services\Netbt\Parameters\Interfaces\Tcpip_{2DDD011E-B1B6-4886-87AC-B4E72693D10C}\NetbiosOptions
added   SYSTEM\CurrentControlSet\Services\Netbt\Parameters\Interfaces\Tcpip_{BAA9D128-54BB-43F6-8922-313D537BE03E}\NetbiosOptions
reset   SYSTEM\CurrentControlSet\Services\Netbt\Parameters\Interfaces\Tcpip_{BD2859BA-B26A-4E2B-A3FE-3D246F90A81A}\NameServerList
            old REG_MULTI_SZ = 10.1.1.2
deleted SYSTEM\CurrentControlSet\Services\Netbt\Parameters\EnableLmhosts
added   SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{2DDD011E-B1B6-4886-87AC-B4E72693D10C}\AddressType
added   SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{2DDD011E-B1B6-4886-87AC-B4E72693D10C}\DefaultGatewayMetric
added   SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{2DDD011E-B1B6-4886-87AC-B4E72693D10C}\DisableDynamicUpdate
deleted SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{2DDD011E-B1B6-4886-87AC-B4E72693D10C}\DontAddDefaultGateway
reset   SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{2DDD011E-B1B6-4886-87AC-B4E72693D10C}\EnableDhcp
            old REG_DWORD = 0
NOTE: If the log file is empty, the registry keys have not been altered.
Completely Removing TCP/IP

Warning!!!! Be very careful when working in the System Registry. Do not modify anything, but what is in the instructions below. To do so may cause your Operating System to stop functioning.
  1. Remove TCP/IP from Windows
    1. Click on Start.
    2. Click on Settings.
    3. Under Windows XP
      - Skip to Step 3
    4. Click on Control Panel.
    5. Double click on Network.
    6. Under Windows 2000
      - Network and Dial-up Connections
    7. Under Windows XP
      - Network and Dial-up Connections (Category View)
      - Network and Dial-up Connections (Classic View)
    8. From the list under The following network components are installed remove/uninstall any reference to TCP/IP.
    9. Under Windows 2000
      - Double click on Local Area Connection
      - Select Properties
      - Look for Components checked are used by this connection
    10. Under Windows XP
      - Double click on Local Area Connection
      - Select Properties
      -Look for This connection uses the following items
    11. Click on OK.
    12. The computer will display a message stating the your network is not complete. Select Continue.
    13. The computer will ask to reboot, select NO.

  2. System Registry Back Up
    1. Click Start.
    2. Click Run.
    3. Type in regedit.
    4. Click OK.
    5. Highlight My Computer on the left.
    6. Click the Registry menu at the top and select Export Registry File.
    7. Name the file regback and save it to your Desktop.

  3. Remove TCP/IP from the System Registry
    1. In the left pane of the Registry Editor, click on the "+" sign next to HKEY_LOCAL_MACHINE.
    2. Remove the following Registry entries:
    3. HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\WinSock
    4. HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\WinSock2
    5. Close the Registry Editor. Your changes will be automatically saved. Reboot your computer.

  4. Reinstalling TCP/IP
    1. Click on Start.
    2. Click on Settings.
    3. Under Windows XP
      - Skip to Step 3
    4. Click on Control Panel.
    5. Double click on Network.
    6. Under Windows 2000
      - Network and Dial-up Connections
    7. Under Windows XP
      - Network and Dial-up Connections (Category View)
      - Network and Dial-up Connections (Classic View)
    8. Click on Add or Install.
    9. Under Windows 2000
      - Double click on Local Area Connection
      - Select Properties
    10. Under Windows XP
      - Double click on Local Area Connection
      - Select Properties
    11. Select Protocol and then click on Add.
    12. On the left, under Manufacturers, select Microsoft.
    13. Under Windows 2000/XP
      - Select TCP/IP, skip to Step 9.
    14. Click on OK.
    15. Click on OK.
    16. The computer will ask to reboot, select Yes.
HOW TO: Remove and Reinstall TCP/IP on a Windows 2000 Domain Controller
http://support.microsoft.com/default.aspx?scid=kb;EN-US;299451
How to Troubleshoot TCP/IP Connectivity with Windows XP
http://support.microsoft.com/default.aspx?scid=kb;EN-US;314067
How to Reset Internet Protocol (TCP/IP) in Windows XP
http://support.microsoft.com/default.aspx?kbid=299357

Good Luck!

If this information helps please