How to modify the hosts file Win10 Win10 system hosts can not be modified solution

  

Win10 how to modify the hosts file? I believe that many win10 users have encountered insufficient permissions when modifying the hosts file, and can not directly modify the hosts file like XP and Win7 systems. Win10 hosts can not be modified how to do? The following computer Pepsi network shares two methods for everyone.

To modify the hosts file, you first need to find this file. The specific method is as follows:

1. Open the "Run" dialog box (you can use the Win+R combination shortcut to open it quickly). Then type the path to the hosts file: C:\\WINDOWS\\system32\\drivers\\etc When finished, click "OK" below to open it, as shown in the figure.

2, after finding the location of the hosts file, do not modify the file directly, otherwise there will be insufficient permissions and cannot be modified. The specific method is to right click on the hosts file, in the pop-up options, click to open "Properties", as shown.

3. After opening the properties of the hosts file, switch to the "Security" tab, then click to select the current user name that needs to be changed, and then click "Edit" below to pop up the editing permission operation interface. First click to select the account name that requires higher authority. For example, you need to assign the user file permission to the user named "Computer Pepsi". After selecting the user, check the "Modify" and "Write" permissions above and below. When you are done, click on "Apply" in the lower right corner, as shown.

After clicking the application, a "Windows Security" prompt box will pop up, which means that after modifying the system folder permissions, the system security may be reduced. Here we don't need to bother, just click "Yes". , as shown.

4. After setting the permissions for writing and modifying the hosts file for the current user, the Win10 hosts file can be easily modified. The specific method is to right click on the hosts file, and in the pop-up menu, click "Open", as shown in the figure.

5, then choose to open the changes using Notepad. For example, here we need to add a designated IP access to www.pc841.com. After the modification is completed, click “Save”. Then there will be no permission problems, as shown below.

6, Finally, we test the effect by ping, as shown below.

Related Editor's Recommendation: How to use the Ping command Use the Ping command to check the network failure method

How is this, if you successfully modified the hosts file? In addition to modifying the account permissions, solve the Win10 system hosts can not be modified, you can also copy the hosts file to the desktop, and then use Notepad to edit, after the modification is completed, then replace the system disk's hosts file, this can also solve Win10 Hosts can not be modified, interested friends may wish to try.

Copyright © Windows knowledge All Rights Reserved