Cannot Save Hosts File in Vista

Having recently upgraded to Windows Vista to get to grips with IIS7 I opened up the Hosts file to add in a host header for local web development, upon saving it informed me it couldn’t save.

There’s a very simple solution to this:

  1. Click Start
  2. Click All Programs
  3. Click Accessories
  4. Right-click Notepad
  5. Select Run as administrator

Now when you save the hosts file it will allow you to update. If you’re user is not setup as an Administrator you may be asked to enter the administrator password.

Have fun!

2 Comments

Relevant Rude Rules learned
-Vista Basic Home edition lacks IIS7
-Vista Premium requires NET- Framework 2 or 3 to run IIS7
-you must follow these rukes to Allow IIS7 to run after you install same:
Start>Control>>Admin Tools>Internet Infor Services IIS Mngr> change properties at will..
regards
Old Mystic Geek

I need to change the hosts file all day long tying to troubleshoot Pervasive. Thanks for your help.

Peace,

Tim