Fix for when you edit Hosts or the Lmhosts file access denied error in vista

If you're new here, you may want to subscribe to Windows Reference RSS feed Thanks for visiting!


When you try to change the Hosts file or the Lmhosts file in Microsoft Windows Vista, you may receive an error message that resembles either of the following.

Error message 1

Access to C:\Windows\System32\drivers\etc\ hosts was denied

Error message 2

Cannot create the C:\Windows\System32\drivers\etc\hosts file.
Make sure that the path and file name are correct.

This issue occurs even though you log on by using an account that has administrative credentials.

Solution

Click Start, click All Programs, click Accessories, right-click Notepad, and then click Run as administrator.

If you are prompted for an administrator password or for a confirmation, type the password, or click Allow.

Open the Hosts file or the Lmhosts file, make the necessary changes, and then click Save on the Edit menu.

  • Share/Bookmark

Random Posts


Did you enjoy this post? Why not leave a comment below and continue the conversation, or subscribe to my feed and get articles like this delivered automatically each day to your feed reader.

Trackbacks & Pingbacks

No trackbacks/pingbacks yet.

Comments

Thank you SO much.

Worked perfect. Thanks.

Leave a comment

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

(required)

(required)