Changing the hosts file in Vista

April 20, 2008 by aaron

In Vista, normal users are not allowed to save the hosts file, so the easiest way to edit it is to run notepad as an administrator.

  1. Go to start and either search for “notepad” or go to All Programs > Accessories
  2. Right click “notepad” and select the “Run as Administrator Option.”
  3. Once Notepad opens go to File > Open and browse to “C:\Windows\System32\Drivers\etc”
  4. Set the file filter to “All Files”
  5. Select and Open “hosts”
  6. Edit it and save it.

If you get an error about it being read only:

  1. Go to File > Open, right click the “hosts” file and select properties
  2. Uncheck read-only at the bottom and click OK.
  3. Click Cancel to go back to notepad”
  4. Save it
Categorized as:
comments powered by Disqus