Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How to change hosts file in Vista?

share|improve this question
up vote 8 down vote accepted


notepad %windir%\system32\drivers\etc\hosts

into the search box in the start menu and press Ctrl+Shift+Enter.

Admin privileges, the right file from the start and it even gets created if it doesn't exist (after a prompt by Notepad).

The keystroke saved for not needing Win+R gets lost for Ctrl+Shift+Enter, though. So yes, it's way more cumbersome to do in Vista than in XP.

I think I may have wasted ... let me check ... 0 seconds on that this year. Nice :-)

share|improve this answer

Isn't easy like at XP.

  • Start -> All Programs -> Accessories
  • Run "Notepad" as administrator
  • Click on File -> Open
  • Go to C:\Windows\System32\Drivers\etc
  • Change the file filter to "All Files (.)"
  • Open "hosts" file
  • Make changes and save.
  • Done
share|improve this answer
That's exactly the same as in XP, sans 2 words. – Phoshi Oct 19 '09 at 18:13
Well, if one takes the convoluted way, it looks like a really horrible procedure :-) – Joey Oct 19 '09 at 18:41
Difference is that in XP users run as administrator by default, so you don't need all the extra work to run notepad as administrator – davr Oct 19 '09 at 19:23
That's the two words difference, yes :-) – Joey Oct 19 '09 at 20:23
@davr; You mean a right click? Truly vista is the spawn of the devil itself. – Phoshi Oct 19 '09 at 21:14

Another useful software to edit hosts file : HOSTSMAN

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.