How to access my Host file again ?

Mxyzptlk

New member
I wanted to stop going to certain websites as I kept getting distracted. So I bloked them using my host file and Cancelled the aDmin's access to the host file. Now I cant access it, what do i do ?
 

ubuysa

The BSOD Doctor
The quickest way to regain access is to take ownership of the hosts file and then modify the access control list to allow administrators access. To do this enter the following two commands (at an elevated command prompt) one after the other.

Code:
takeown /f '[I]the path to your hosts file[/I]'
icacls '[I]the path to your hosts file[/I]' /grant administrators:F

Let me know how you get on...

PA. I wanted to post the full path to the hosts file for you but the forum security won't allow me. I'm sure you know where it is since you've edited it already. :)
 
Top