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.
2. Click "Yes" in the pop-up prompt window.
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.
4. If the hosts file is lost, it will be re-created to prevent it from being overwritten. Enter "a" and press Enter.
5. After completion, the hosts file will be opened, just close it.
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!