Windows 10:- Editing my hosts file

Posted on
6,129 Points
1 Endorsement
Last Modified:
Experience Level: Intermediate
Edward van Biljon (MVP)
Experienced Messaging Specialist with a demonstrated history of working in the information technology and services industry.
In this video we chat about editing your local hosts file. This can be done to test a new application or redirect a URL to something else or maybe you have a new Exchange server with a different name space you want to test.

Video Steps

1. Launch Notepad

Click the start button and type in Notepad.

2. Select RunAs Administrator

Once you have typed in Notepad, you will be presented with a list of options, select RunAs Administrator

3. Navigation

Once you have Notepad Open, click on File then open and navigate to C:\Windows\System32\Drivers\etc.

4. Open Hosts

Once you have navigated to the location, you will see a blank page as it is listing .txt files, change it to "All Files" in the bottom right.

5. Enter Information

Enter in the information like and the url for example outlook.office365.com, now click on File and Save or Ctrl S.
1 Comment
LVL 37


by:Andrew Leniart
This process with the hosts file has been confusing users for years. I've always thought that MS would do well to give an option of switching to an elevated mode on the fly in Notepad and many other of their applications.
Today I received a windows update and my Windows search results just showed a big black square. I use this to quickly find documents and programs on my PC.  At first I thought something was wrong, perhaps a virus. The full fix is simple.
This article showcases how to fix basic cloud storage and sync errors in OneDrive for Business on primarily Windows OS workstations, but some of the tips and troubleshooting steps could be easily applied to OneDrive - Personal usage (non-work relate…

Keep in touch with Experts Exchange

Tech news and trends delivered to your inbox every month