How to Open hosts file as Administrator (Windows)

How to open the hosts file and edit it as an admin

If you are facing issues while editing your hosts file in Windows, or getting an error like shown in screenshot below, here’s your solution.

image 1

The trick is to open the Notepad first as an administrator, and then navigate to the hosts file to open and edit it.

Just follow these steps:

  1. Hit your Windows key and search for Notepad.
  2. Right click on Notepad and click on ‘Run as administrator’.
image 3
  1. Now navigate to the hosts file path (c:\Windows\System32\drivers\etc) and open the hosts file.
  2. Make your edits, and it will save without any errors now.

Hope this helps!

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *

four × one =