Home  >  Article  >  Computer Tutorials  >  How to solve the abnormal configuration of Win11 hosts file

How to solve the abnormal configuration of Win11 hosts file

WBOY
WBOYforward
2024-01-11 23:42:20890browse

Some users have discovered that the hosts file configuration is abnormal. How to solve the problem of abnormal configuration of the hosts file in Win11? The editor below will give you a detailed introduction to the solution to abnormal Win11hosts file configuration. If you are interested, come and take a look.

1. Click the search icon in the taskbar below, enter "cmd" in the search box, and select "Run as administrator" to open.

Win11 hosts文件配置异常怎么解决

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

Win11 hosts文件配置异常怎么解决

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

Win11 hosts文件配置异常怎么解决

4. If the hosts file is lost, it will be re-created to prevent it from being overwritten. Enter "a" and press Enter.

Win11 hosts文件配置异常怎么解决

5. After completion, the hosts file will be opened, just close it.

Win11 hosts文件配置异常怎么解决

The above is the detailed content of How to solve the abnormal configuration of Win11 hosts file. 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