search
HomeComputer TutorialsComputer KnowledgeHow to solve the problem of abnormal configuration of hosts file on win11 computer and unable to access the Internet?

php editor Xiaoxin introduces you to a common problem: the solution to the abnormal configuration of the hosts file on a win11 computer that results in the inability to access the Internet. When using the Win11 system, sometimes you may encounter incorrect or abnormal configuration of the hosts file, resulting in the inability to access the Internet normally. This problem may occur during system upgrades, software installations, or virus infections. Fortunately, there are some simple steps we can take to fix this problem and restore normal Internet functionality. Next, we will introduce the solution to you in detail, hoping to help you.

win11 computer hosts file configuration abnormality and unable to access the Internet problem analysis

1. In the search box of the taskbar, enter: cmd

right-click the command prompt and select Run as administrator.

How to solve the problem of abnormal configuration of hosts file on win11 computer and unable to access the Internet?

#2. The user account control interface will appear, click Yes.

How to solve the problem of abnormal configuration of hosts file on win11 computer and unable to access the Internet?

3. In the administrator: command prompt, enter:

01for /f %P in ('dir %windir%WinSxShosts /b /s ') do copy %P %windir%System32driveversetc & echo %P & Notepad %P

and then press the Enter key (Enter key on the keyboard).

How to solve the problem of abnormal configuration of hosts file on win11 computer and unable to access the Internet?

#4. You need to wait for a while and some prompts will appear.

(If the hosts file is lost, it will be created, otherwise it will be overwritten)

Then enter:

a

and then press the Enter key (on the keyboard Enter key).

How to solve the problem of abnormal configuration of hosts file on win11 computer and unable to access the Internet?

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

How to solve the problem of abnormal configuration of hosts file on win11 computer and unable to access the Internet?

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

Statement
This article is reproduced at:软件自学网. If there is any infringement, please contact admin@php.cn delete
Download Hidester VPN/Proxy to Access Your Favorite Content - MiniToolDownload Hidester VPN/Proxy to Access Your Favorite Content - MiniToolApr 22, 2025 am 12:50 AM

Learn about Hidester VPN and Hidester proxy and download Hidester VPN for Windows, Mac, Android, and iOS to use this VPN service to view websites with no limit. For more useful free computer tools and troubleshooting tips, you may visit php.cn Softwa

Windows Keyboard Opening Shortcuts Instead of Typing [Fixed]Windows Keyboard Opening Shortcuts Instead of Typing [Fixed]Apr 22, 2025 am 12:48 AM

Have you ever encountered the trouble of “Windows keyboard opening shortcuts instead of typing”? In this post from php.cn, you will learn how to fix this issue.

Easy Ways to Add the Control Panel Icon to Desktop on Win 10 / 11Easy Ways to Add the Control Panel Icon to Desktop on Win 10 / 11Apr 22, 2025 am 12:46 AM

In this post, php.cn Software will introduce what Control Panel is and how to add the Control Panel icon to desktop on your Windows 10 or Windows 11 computer. You can also learn some related information about desktop icon settings.

Granblue Fantasy Relink Save File Location & Backup Save DataGranblue Fantasy Relink Save File Location & Backup Save DataApr 22, 2025 am 12:45 AM

If you play Granblue Fantasy: Relink on your PC, you may wonder where you can find its save file. In this post, php.cn introduces everything you want to know - Granblue Fantasy Relink save file location and how to back up the savegame of this game.

How to Fix Event ID 1104: The Security Log Is Now Full? - MiniToolHow to Fix Event ID 1104: The Security Log Is Now Full? - MiniToolApr 22, 2025 am 12:44 AM

Event Viewer keeps track of activity for better management. However, if the upper limit of the security log is reached, no more events can be logged. In this post on php.cn Website, we will show you how to deal with Event ID 1104 the security log is

Watch: How to Enable Secure Boot on Gigabyte Motherboard?Watch: How to Enable Secure Boot on Gigabyte Motherboard?Apr 22, 2025 am 12:43 AM

Secure Boot is a security standard that can prevent your computer from booting with untrustworthy software. Enabling it will add an extra layer of security to your device. In this post from php.cn Website, we will show you how to enable Secure Boot o

Windows 11 23H2 Release Date: September 26, 2023 - MiniToolWindows 11 23H2 Release Date: September 26, 2023 - MiniToolApr 22, 2025 am 12:42 AM

Coming to a new year, what Windows 11 users are looking forward to are not only the patch updates but also the annual major update for Windows 11. This post will talk about the Windows 11 23H2 release date. In addition, if you want to recover deleted

How to Turn off Bixby on Samsung Phone? See a Guide! - MiniToolHow to Turn off Bixby on Samsung Phone? See a Guide! - MiniToolApr 22, 2025 am 12:41 AM

Can you completely disable Bixby? How to turn off Bixby on Samsung phones? It is not hard to disable this voice assistant. In this post from php.cn, we will go to any length to help you find the method. Besides, a way to turn off “Hi, Bixby” is also

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor