fbpx

Knowledge base

REMOVING SYSTEM FILE PROTECTION FROM A HOSTS FILE 

This article explains how to remove system file protection from hosts file on your computer. This may be required after a virus has infected a computer.

STEPS

Browse to the hosts file (C:\windows\system32\drivers\etc)

Right click on the hosts file, go into Security and Take Ownership

Re-open the security options and grant administrators Full Control

Open a command prompt and change to the location of the hosts file (cd/dC:\windows\system32\drivers\etc)

Type the following command into the command prompt to enable the hosts file to be edited again attrib-r-a-h-s hosts