Modify Hosts File in Windows 7

Windows 7 won’t allow you to modify hosts file, even you are logged in as administrator. Hosts file can be found in C:\Windows\System32\drivers\etc. Even if you cleared read-only flag in file properites, file can’t be saved. Message would come up as:

You don’t have permission to save in this location. Contact the administrator to obtain permission.

Workaround is very simple. Administrated privileges need to be given to notepad.exe program before you open hosts file.

Simple type notepad in Run. Right click it and select Run as Administrator. Now you will be able to save file after modification.

Advertisements

One Response to Modify Hosts File in Windows 7

  1. paulg says:

    Even running notepad as administrator with all virus protection off I still get access denied/

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s

%d bloggers like this: