As always on here we urge people to do backups, backups, backups (there you have it, i have said it three times) of their work before you implement any changes.
.........................................
But only do the "Repair install" as the last resort.
Repairing Damaged Winsock2
The symptoms when Winsock2 is damaged shows when you try to release and renew the IP address using IPCONFIG.
And you get the following error message:
An error occurred while renewing interface 'Internet': An operation was attempted on something that is not a socket.
Also Internet Explorer may give the following error message:
The page cannot be displayed Additionally, you may have no IP address or no Automatic Private IP Addressing (APIPA) address, and you may be receiving IP packets but not sending them.
-----
If you have WindowsXP with Service Pack 2, there is a one line command you can run to reset the winsock2 registry entries
netsh winsock reset catalog
------
There are two easy ways to determine if Winsock2 is damaged:
From the XP source files, go to the Support / Tools directory
Winsock Test Method 1
Run netdiag /test:winsock
The end should say Winsock test ..... passed
Winsock Test Method 2
1.Run Msinfo32
2.Click on the + by Components
3.Click on the by Network
4.Click on Protocol
5.There should be 10 sections if the Winsock2 key is ok
MSAFD Tcpip [TCP/IP]
MSAFD Tcpip [UDP/IP]
RSVP UDP Service Provider
RSVP TCP Service Provider
MSAFD NetBIOS [\Device\NetBT_Tcpip...
MSAFD NetBIOS [\Device\NetBT_Tcpip...
MSAFD NetBIOS [\Device\NetBT_Tcpip...
MSAFD NetBIOS [\Device\NetBT_Tcpip...
MSAFD NetBIOS [\Device\NetBT_Tcpip...
MSAFD NetBIOS [\Device\NetBT_Tcpip...
If the names are anything different from those in this list, then likely Winsock2 is corrupted and needs to be repaired.
If you have any 3rd party software installed, the name MSAFD may be changed.
There should be no fewer than 10 sections.
To repair Winsock2
1.Run Regedit (start > run, type in "regedit")
2.Delete the following two registry keys:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Winsock
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Winsock2
3.Restart the computer
4.Go to Network Connections
5.Right click and select Properties
6.Click on the Install button
7.Select Protocol
8.Click on the Add button
9.Click on the Have Disk button
10.Browse to the \Windows\inf directory
11.Click on the Open button
12.Click on the OK button
13.Highlight Internet Protocol (TCP/IP)
14.Click on the OK button
15.Reboot
............................................
Running Network Diagnostics
Network Diagnostics scans your system to gather information about your hardware, software, and network connections.
Start / Run / NETSH DIAG GUI
The following is the type of information that can be displayed:
Ping
Connect
Show
Verbose
Save to Desktop
Mail Service
News Service
Internet Proxy Server
Computer Information
Operating System
Windows Version
Modems
Network Clients
Network Adapters
Domain Name System (DNS)
Dynamic Host Configuration Protocol (DHCP)
Default Gateways
Internet Protocol Address
Windows Internet Naming Service (WINS)
........................................
<>
Repair Install
If XP is corrupted to the point where none of the previous solutions get it to boot,
you can do a Repair Install that might work as well as keep the current settings.
Make sure you have your valid WindowsXP key.
The whole process takes about half an hour depending on your computer
If you are being prompted for the administrator's password, you need to choose the 2nd repair option, not the first.
1.Insert and boot from your WindowsXP CD
2.At the second R=Repair option, press the R key
3.This will start the repair
4.Press F8 for I Agree at the Licensing Agreement
5.Press R when the directory where WindowsXP is installed is shown. Typically this is C:\WINDOWS
6.It will then check the C: drive and start copying files
7.It will automatically reboot when needed. Keep the CD in the drive.
8.You will then see the graphic part of the repair that is like during a normal install of XP (Collecting Information, Dynamic Update, Preparing Installation, Installing Windows, Finalizing Installation)
9.When prompted, click on the Next button
10.When prompted, enter your XP key
11.Normally you will want to keep the same Workgroup or Domain name
12.The computer will reboot
13.Then you will have the same screens as a normal XP Install
14.Activate if you want (usually a good idea)
15.Register if you want (but not necessary)
16.Finish
17.At this point you should be able to log in with any existing accounts.
..........................................
ReInstalling WindowsXP
If you need to reinstall WindowsXP and want to keep all your current installed applications and settings:
1.Start WindowsXP
2.Go to the location of your source files
3.Run WINNT32 /unattend
I've often need to do this to repair something that had gotten corrupted and didn't want to do a clean install.
..............................................
Reinstalling the TCP/IP Protocol
If you've worked on previous versions of Windows,
there are times when you need to completely reinstall the TCP/IP protocol stack.
This is typically due to corrupted files.
To do this with XP,
you need to run a small script:
netsh int ip reset [ log_file_name ]
the log_file_name needs to be specified.
e.g.
netsh int ip reset ip_reset.txt
....................................
Rollback a Device Driver
If you install a device drive that does not work correctly,
you can restore the previous one fairly easily.
1.Log in with an administrator account
2.Right click on My Computer
3.Select Properties
4.Click on the Hardware tab
5.Click on the Device Manager button
6.Go to the device you want to reconfigure
7.Click on the Driver tab
8.Click on the Roll Back Drive button
...........................................