How to alter hosts file on Windows Vista SP2

Asked By 200 points N/A Posted on -

Hi All,

I got a minor issue with my desktop computer. It is running on Vista operating system and is on Service Pack 2. I want to alter my hosts file, so that I can have some of the sites inaccessible as well as to put a stop to some of the advertisements, commercial ads to keep on popping up.

Now, after entering all those sites necessary, while I am saving it, there is a pop up that tells me that I do not have permission to do these changes. In short, my access is denied. But, how come it is, when in fact my login is considered to be administrator as well.

I really need help.


Best Answer by ConnorConnor
Best Answer
Best Answer
Answered By 0 points N/A #126159

How to alter hosts file on Windows Vista SP2



The solution is very simple here is the solution:

  • First of all click on the start button.
  • A pop-up menu is appear the click on the All programs and then click on the Accessories.
  • A new menu will appear then right click on the note pad and then click on the Run as Administrator button.
  • Then you have to give the password if you restricted otherwise not.
  • Then open the Host file and then make the necessary changes.
  • After changes save the file from the edit menu.
  • When the file is saved then close the windows.
  • You will changed in the host file.

This simple solution will be solve your problem.

Thank You


Answered By 0 points N/A #126160

How to alter hosts file on Windows Vista SP2


Hay Dom Rivero,

You put a very good question which might help a lot of people.

Usually, not like other operating systems, Windows Vista has a bit security issue at hosts file.

If you try normally as other operating systems to modify hosts file, it will not save changes and require an administrator and prompt you for permissions to modify it.

For this purpose you need to first open a notepad file as an administrator and open hosts file and perform following steps as show in the image.

Login/Register to Answer

Related Questions