Home  >  Article  >  Computer Tutorials  >  How to solve the problem when Win10 encounters abnormal hosts file configuration and cannot access the Internet

How to solve the problem when Win10 encounters abnormal hosts file configuration and cannot access the Internet

WBOY
WBOYforward
2024-01-12 18:21:112220browse

Some friends are unable to access the Internet due to abnormal host file configuration when using Win10. So what should I do if Win10 hosts file configuration is abnormal and cannot access the Internet? The editor below will give you a detailed introduction to the solution to the abnormal Win10hosts file configuration and unable to access the Internet. If you are interested, come and take a look.

1. Click the search icon in the taskbar, enter "cmd", click "Command Prompt" and select "Run as administrator".

How to solve the problem when Win10 encounters abnormal hosts file configuration and cannot access the Internet

2. Click "Yes" in the pop-up prompt box.

How to solve the problem when Win10 encounters abnormal hosts file configuration and cannot access the Internet

3. In the window, enter "01for /f %P in ('dir %windir%WinSxShosts /b /s') do copy %P %windir%System32driveversetc & echo %P & Notepad %P", press Enter to execute the command.

How to solve the problem when Win10 encounters abnormal hosts file configuration and cannot access the Internet

4. Wait for a moment, enter "a" according to the prompts, and press Enter.

How to solve the problem when Win10 encounters abnormal hosts file configuration and cannot access the Internet

The above is the detailed content of How to solve the problem when Win10 encounters abnormal hosts file configuration and cannot access the Internet. For more information, please follow other related articles on the PHP Chinese website!

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