I can't overwrite my hosts file in Windows 7.

I open Notepad as an administrator and open the hosts file (C:\Windows\System32\drivers\etc) as an administrator.

96.44.181.245 www.Google.com

has been put in there along with a host of others. Whenever I remove it and try to overwrite the file, it will not let me. It says access denied even though I am doing it as an administrator.

Any ideas?

link|improve this question

feedback

1 Answer

up vote 2 down vote accepted

If you're logged in as an administrative user, that's not enough. You will need to right click on the Notepad icon and select Run as administrator.

link|improve this answer
that didnt work but thanks. in the end iu added the current user with full access right in security then renamed the file .bak recreated the original hosts file and saved it with out any extension then it started to work – ben950 Mar 8 '11 at 20:47
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.