Cannot modify the Hosts or Lmhosts file in Vista

  
                  

Q: When I try to change the Hosts file or the Lmhosts file in Microsoft Windows Vista, I get one of the following two error messages.

Error message 1
Access denied C:\\Windows\\System32\\drivers\\etc\\ hosts

Error message 2
Cannot create file C:\\Windows\\System32\\drivers\\ Etc\\hosts.
Please confirm that the path and file name are correct.

This issue occurs even if you are logged in with an account that has administrative credentials. How can I solve it?

A: In fact, the solution to this problem is very simple, you only need to run as an administrator.

You can follow these steps:

1. Click "Start", click "All Programs", click "Accessories", right click "Notepad", then single Click "Run as administrator". (If you are prompted for an administrator password or for confirmation, type your password or click Allow.)

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

Copyright © Windows knowledge All Rights Reserved