Web developers wiki ASP.NET Sitecore Sharepoint Kentico by Evident Interactive

Edit hosts file in Windows 7 & Windows Vista

Modified: 2009/12/03 13:26 by sierra - Categorized as: Windows
The “host” file is under C:\windows\system32\drivers\etc\ or %systemroot%\system32\drivers\etc\ and hence cannot be edited by normal users.

To create a desktop shortcut to an editable hostfile, perform the following actions:

  • Click Start – search for "Notepad"
  • Right-click and select "Send to" -> "Desktop (create shortcut)"
  • Right click on Notepad shortcut that has been created on your desktop, and select "properties"
  • Navigate to the tab "Shortcut"
  • In the "Target" Textbox, fill in the following: %windir%\system32\notepad.exe "C:\Windows\System32\drivers\etc\hosts"
  • Click the button "Advanced"
  • Make sure the option “Run as Administrator“ is checked
  • Click "OK"


  • This should launch the hosts file with with elevated privileges.

 © Evident Interactive BV