Q: When you try to change a Hosts file or Lmhosts file in Microsoft Windows Vista, you receive any of the following two error messages.
Error message 1
Denied access to C:\Windows\System32\drivers\etc\ hosts
Error message 2
Cannot create file C:\Windows\System32\drivers\etc\hosts.
Make sure the path and filename are correct.
This problem can occur even if you are logged on 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 be in the identity of the administrator to run on it.
You can follow these steps:
1, 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 confirmation, type the password or click Allow.) )
2, open the Hosts file or Lmhosts file, make the necessary changes, and then click Save on the Edit menu.