Articles

How do I save a host file?

How do I save a host file?

Windows

  1. Press the Windows key.
  2. Type Notepad in the search field.
  3. In the search results, right-click Notepad and select Run as administrator.
  4. From Notepad, open the following file: c:\Windows\System32\Drivers\etc\hosts.
  5. Make the necessary changes to the file.
  6. Select File > Save to save your changes.

Where is the host file in Windows 2008?

Location in the file system

Operating System Version(s) Location
Microsoft Windows 3.1 %WinDir%\HOSTS
95, 98, ME %WinDir%\hosts
NT, 2000, XP, 2003, Vista, 2008, 7, 2012, 8, 10 %SystemRoot%\System32\drivers\etc\hosts
Windows Mobile, Windows Phone Registry key under HKEY_LOCAL_MACHINE\Comm\Tcpip\Hosts

Why can’t I save my hosts file?

You need to either take ownership of the file (Right click the hosts file, Security tab, and give yourself full rights), or open Notepad as Administrator and open, edit and save your hosts file from there. It’s designed that way so some rogue malware can’t come in and change that.

How do I add a host file to my computer?

Create a new Windows host file Right-click the hosts file, and select Rename. In the etc folder, right-click on the blank space and select New > Text Document. Click Yes to confirm. Right-click the hosts file and then click Open With or Open.

How do I save hosts file in Windows 10?

Here, go to C:\\Windows\\System32\\drivers\\etc folder, select “All files” from the drop-down menu and click on the “Open” button. 3. Now, make the changes you want to make. Once done, select “File → Save” or press Ctrl + S keyboard shortcut to save the modified hosts file.

How to change / edit and save hosts file?

First open notepad as administrator. click file menu and click open. choose the hosts file (c:\\windows\\system32\\drivers\\etc\\hosts) once the hosts file is opened edit whatever u want in it. then click close button on the top right corner of the window. it will ask u “do u want to save”. click save.

How do I save the hosts file in Notepad?

This will open Notepad in admin mode, now browse for the hosts file using the file menu and open it. Once you have made the changes you can now save it in the same location as notepad is running in administrator mode. Nirmal is a Technology Blogger and a Microsoft MVP in Windows.

How to add host name to hosts file?

Please follow the steps below in order to add entry of Host in hosts file for host name and SAPTRANSHOST – Step 1. Go to this path 2. Open ‘hosts’ file in notepad in Administrator mode Step 3. Go to end of the file and add given below line