Unable to edit Hosts file – Microsoft Community
Thank you!! Asked 6 years, 10 months ago. Aside from that, he loves to fully customize systems with Rainmeter and Dreamscene, find out more about ancient civilizations like the Chachapoya, sharpen his digital photography skills and create software with a small group of selected developers. Any image, link, or discussion of nudity. Published on June 11, 10 min read.
Windows 10 edit hosts file access denied free –
A host file helps in addressing network nodes in a computer network. A hostname is a human-friendly name or label assigned to a device a host on a network and is used to distinguish one device from another on a specific network or over the internet.
If you have been a tech-savvy person, you would be able to access and modify the Windows hosts file to solve certain issues or block any websites on your device. Since it is a plain text file, it can be opened and edited in notepad. How will you edit the host file? This error will not let you open or edit the hosts file on your computer. Editing a hosts file is possible and you might need to do it for a variety of reasons.
Make sure to create a restore point just in case something goes wrong. Even if you try to open the file as an Administrator or use the built-in Administrator account to modify or edit the hosts file, you are still unable to make any changes to the file itself. Most of the people use notepad as a text editor on Windows Therefore, before you edit the host file, you need to run Notepad as Administrator on your device.
Type notepad and in the search results, you will see a shortcut for Notepad. Notepad window will appear. Select the hosts file and then click on Open. It is important to note that this method works with all text editor programs. Therefore, if you use another text editor program apart from notepad, you just need to open your program with Administrator access.
Alternatively, you can open the notepad with admin access and edit the files using the Command Prompt. Open the command prompt with admin access. Once the elevated command prompt opens, you need to execute the below-given command. The command will open the editable host file. Now you can make the changes to the hosts file on Windows By default, the hosts file is set to open but you cannot make any changes i.
In order to fix Access denied when editing hosts file error in Windows 10, you need to disable the read-only feature. Here you need to locate the hosts file, right-click on it and choose Properties.
In the attribute section, uncheck the Read-only box. Now you can try to open and edit the hosts file. Probably, the problem of access denied will be solved. Sometimes getting access to these files requires special privileges. It could be one reason that you may not be given full access, therefore, you are getting access denied error while opening hosts file. Here you need to locate the hosts file, right-click on the file and choose Properties.
Click on the Security tab and click on the Edit button. Here you will find a list of users and groups. You need to ensure that your user name has full access and control. If your name is not added in the list, you can click on the Add button. Hopefully, now you will be able to access and edit the hosts file without any issues. Some users noted that changing the file location has solved their problem. You can change the location and edit the file thereafter put the file back to its original location.
Paste the copied file on your Desktop where you can easily access that file. Open the hosts file on your Desktop with Notepad or another text editor with Admin access. Aditya is a self-motivated information technology professional and has been a technology writer for the last 7 years. He covers Internet services, mobile, Windows, software, and How-to guides. Your email address will not be published.
Posted by Aditya Farrad Aditya is a self-motivated information technology professional and has been a technology writer for the last 7 years. You may also like. Category How to , Tips. Published on June 13, 6 min read. Category How to , Tech , Tips. Published on June 11, 10 min read. Category How to , Software , Tech. Category Apple , How to , Software , Tips. Published on June 11, 5 min read. Leave a Reply Cancel reply Your email address will not be published.