No Windows 7 drivers yet? Try using Vista’s Windows 7 Already On The Way To Replacing Vista
Oct 05

This may sound silly suggestion to even post on Windows Reference but will help avoid some annoyance with Windows Vista and Windows 7. The host file is the one where one enters hostname and IP Address pair manually as against being served by a Name server (ex: DNS). As always the “host” file is under C:\windows\system32\drivers\etc\ or %systemroot%\system32\drivers\etc\ and hence cannot be edited by normal users.

To edit the host file,

Click Start – search for “Notepad“, right-click and select “Run as Administrator“. This should launch notepad with elevated privileges. Now, open the host file from the File menu, edit and save.

This should help!!!


This post has been viewed 1412 times.

 

One Response to “Edit hosts file in Windows 7 & Windows Vista”

  1. bob Says:

    Thanks Alex… I HATE WINDOWS 7! it wasn’t my idea, really. i think my ex-wife had a hand in it, but that’s a completely different post.

    this tip only works if you have a gui available. i want to run a command as administrator. not a command prompt, just a command. i need to be able to edit the hosts file from a command file, so need to run the command as administrator. runas doesn’t work. thoughts?

Leave a Reply