Aha.
Edit the Hosts File
Non-frequent Edit
- Open Notepad with Administrative privileges by clicking Start, All Programs, Accessories, and then right-click Notepad and select to open as Administrator.
- Now that Notepad is open with Administrative privileges browse to (C:\Windows\System32\drivers\etc) in Notepad and open the hosts file.
Now you can edit and save the hosts file.
Frequent Editing
I sometimes frequently edit my hosts file and like a shortcut on my desktop for easy editing. Here’s how to create a shortcut on your desktop and lets you quickly and easily open your hosts file with Notepad and edit it.
- Send a shortcut to Notepad to your desktop by right-clicking Notepad in the start menu and selecting send to desktop.
- Right-click the shortcut to Notepad on your desktop and select properties.
- Click the advanced button near the bottom of the shortcut tab and check off run as administrator. Click OK in the advanced properties window.
- Replace %SystemRoot%\system32\notepad.exe with %SystemRoot%\system32\notepad.exe C:\Windows\System32\drivers\etc\hosts in the target box. Click OK in the properties window to save the changes.
Now all you have to do is open that shortcut to open your hosts file with Notepad with administrative privileges.