Home >System Tutorial >Windows Series >How to fix the problem of accidentally deleting the winsock and winsock2 registry

How to fix the problem of accidentally deleting the winsock and winsock2 registry

王林
王林forward
2024-01-24 16:51:261006browse

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?

Solution to accidentally deleting winsock and winsock2 registry in win10 home version

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.

win10家庭版 误删winsock和winsock2注册表的解决方案

3. After we have exported them all, we will copy both files to the computer in question using a USB flash drive.

win10家庭版 误删winsock和winsock2注册表的解决方案

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.

win10家庭版 误删winsock和winsock2注册表的解决方案

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.

win10家庭版 误删winsock和winsock2注册表的解决方案

#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!

Statement:
This article is reproduced at:somode.com. If there is any infringement, please contact admin@php.cn delete