| Unable to save changes to Hosts file |
Cause | User Account Control (UAC) enabled |
Resolution | [BCB:4:Operating system warning:ECB]
Section I: Run Notepad as administrator
- Go to Start, Windows Accessories, Notepad or Start, All Programs, Accessories
- Right-click Notepad and select Run as administrator and confirm any prompts
- In Notepad, select File, Open
- Browse to C:\Windows\system32\drivers\etc
- Select All Files (*.*) from the drop-down list at the bottom of the window
- Select Hosts file and click Open
- Make changes to the Hosts files, and verify you can save
Section II: Change ownership
- Right-click Hosts and select Properties
- Select Security tab
- Click Advanced
- Select Owner tab
- Click Edit
- Select the currently logged-in user from the Change owner to list; if not listed:
- Click Other users or groups
- Type the user name in the Enter the object name to select field
- Click OK
- Click OK
- Click OK on the changing ownership message
- Click OK on the Advanced Security Settings window
- Click OK on the Properties window
- Open Hosts, make the changes, and save; if you cannot save, proceed to next Section
Section III: Force rename
- Open Hosts, make the changes, and save as a .txt file
- Move Hosts to the desktop
- Press Windows+R keys
- Type cmd and click OK
- Type cd\ and press Enter
- Type cd\windows\system32\drivers\etc and press Enter
- Type ren Hosts.txt Hosts and press Enter
- Close the command prompt window
- Verify Hosts is present in the etc folder, and contains the changes you made
- Delete Hosts copy on the Desktop
DocLink: How to modify the Hosts file
|
|