How to modify the hosts file

  
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 three links for you to share 2 ways.
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), and then type the path to the hosts file: C: WINDOWSsystem32driversetc After completion, click "OK" below to open, as shown. After

2, find

location hosts file is located, do not go directly to modify the file, otherwise there will be insufficient permissions, the problem can not 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, open the hosts file attributes, switch to the "Security" tab, then click on the currently selected user name you want to change, then click "Edit" at the bottom of the pop-up edit rights interface, first click to select Need higher account name, 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. Click on "Apply" in the lower right corner, as shown in the figure. After

click Apply, will pop up a "Windows Security" prompt box, to the effect that the revised system folder permissions, can reduce system security, here we do not care, just click "Yes" button, as shown in . After

4, to set the current user to write and modify the hosts file permissions, then you can easily modify Win10 hosts files. 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, and then choose to use Notepad to open the modification. 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, and finally we have to test the ping results, as shown below.

how, this is not successfully modify the hosts file it. 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