Home >System Tutorial >Windows Series >How to fix the problem of accidentally deleting the winsock and winsock2 registry
Recently, many friends have made the same mistake. They accidentally deleted the winsock and winsock2 registry when deleting things, causing us to be completely unable to connect to the Internet. So when we encounter this How should the situation be resolved?
1. First, we find a computer with the same system that can access the Internet, then press win R and enter regedit in the run box. .exe press OK and find winsock and winsock2.
The path is:
HKEY LOCAL MACHINEISystem\CurrentControlSetiServicesWWinsock
HKEY LOCAL MACHINEISystemiCurrentControlSetiServiceslWinsock2
2. Then we right-click respectively and select in the pop-up box Export options.
3. After we have exported them all, we will copy both files to the computer in question using a USB flash drive.
4. Then press win R to open the run window, enter regedit.exe here, and click OK. We can find the upper-level directory of winsock HKEY LOCAL MACHINESystemiCurrentControlSetServices .
Then we find the file in the upper left corner, click Import, determine the path to winsock.reg, and finally click OK to import winsock2.reg in the same way.
5. Then we click the Start button, find the Windows system, click Command Prompt here, run it as an administrator, then enter the command netsh winsock reset, and press Just press the Enter key.
#6. Finally, we can restart the computer and surf the Internet normally.
The above is the detailed content of How to fix the problem of accidentally deleting the winsock and winsock2 registry. For more information, please follow other related articles on the PHP Chinese website!