Windows7 will not let me edit the hosts file and save it

Anonymous
2010-04-16T18:31:57+00:00

Windows7 will not let me edit the hosts file and save it. What must I do in order to save the edited host file?

Windows for home | Previous Windows versions | Files, folders, and storage

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
Answer accepted by question author
Anonymous
2010-04-16T18:47:57+00:00

It's a built-in safety feature.  There is an easy workaround.  ClickStart ->All Programs -> Accessories.  Right-clickNotepad, and then click Run as administrator.  If you are prompted for an administrator password or for a confirmation, type the password, or clickAllow or Yes.

Open the Hosts file (from the notepad you just opened) , make your changes, and then click File ->Save

Barbara

Was this answer helpful?

200+ people found this answer helpful.
0 comments No comments
Answer accepted by question author
Anonymous
2010-04-16T20:43:01+00:00

You need to either take ownership of the file (Right click the hosts file, Security tab, and give yourself full rights), or open Notepad as Administrator and open, edit and save your hosts file from there. It's designed that way so some rogue malware can't come in and change that.

Was this answer helpful?

70+ people found this answer helpful.
0 comments No comments

66 additional answers

Sort by: Most helpful
  1. Anonymous
    2012-08-08T01:25:45+00:00

    It also helps if you can follow the path to: C://Windows/System32/drivers/etc

    Find the host file and right click "Properties" the select "Security" tab.

    Select the Group or Username that has full control privileges on your machine. There should be a list of users in the box.

    Click on "Advanced" button and select from the "Permissions entries" the administrator that has full control privileges and then select the "Owner" tab. Select the "edit" button and then choose the owner to take control of that file.

    Click "ok." Next, from the same box, choose "Effective Permissions" tab and then click "Select." Go to the "Advance" button and then click "Find now" button. Select the administrator in the search results box that you want to give full control to if administrator doesn't have it as indicated by all the check marks.

    Click "ok." If the check marks are not automatically populated then making sure that you have selected the administrator that you want to give full control privileges to under the "security" tab, manually check ( or click to add check marks) all full control and writes privileges for that administrator. Make sure you go to the "edit" box in order to make these revisions.

    Hope this helps. If you have questions, email me at ******@jaesmith.com and I will help you through this process.

    BTW, you can take ownership and control of most folders and files you are having issues with.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  2. Anonymous
    2012-03-02T22:41:39+00:00

    This did Not allow me to save the file with out an extension, it saved the file as a .txt file.  

    The original was saved as a file, with no extension.  any ideas?

    Thanks,

    Jerry

    Was this answer helpful?

    0 comments No comments
  3. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more