The host file on the computer system is locked in yellow, rendering essential features inactive. If you're concerned and unsure how to handle this situation, don't worry. In this article, Mytour will guide you on handling the yellow-locked host file and applying host file tricks to make it more effective.
Guide to Handling the Yellow-Hued Host File
Step 1: Create a file with the extension .reg
Right-click and choose New -->Text Document
Open the newly created file and copy the command
- Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\runas]
@='Take Ownership'
'NoWorkingDirectory'=''
[HKEY_CLASSES_ROOT\*\shell\runas\command]
@='cmd.exe /c takeown /f \'%1\' && icacls \'%1\' /grant administrators:F'
'IsolatedCommand'='cmd.exe /c takeown /f \'%1\' && icacls \'%1\' /grant administrators:F'
[HKEY_CLASSES_ROOT\Directory\shell\runas]
@='Take Ownership'
'NoWorkingDirectory'=''
[HKEY_CLASSES_ROOT\Directory\shell\runas\command]
@='cmd.exe /c takeown /f \'%1\' /r /d y && icacls \'%1\' /grant administrators:F /t'
'IsolatedCommand'='cmd.exe /c takeown /f \'%1\' /r /d y && icacls \'%1\' /grant administrators:F /t'
- Save as with the name unlock_hosts_file_Mytour.reg
- In the section Save as type, choose All Files
- Select ANSI for Encoding
Double-click on the file, and when the confirmation dialog appears, choose Yes
Step 2: Access the Host file and change ownership following the path: C:\Windows\System32\Drivers\etc
Then right-click on the hosts file and click Take Ownership. Finally, restart your computer.
And there you have it, the Host file is now unlocked
Here, we've guided you on handling the yellow-locked Hosts file error. Additionally, you can explore methods to edit the host file and How to read, open the Host file on Windows XP/7/8, etc.
The host file is always a crucial file in the computer system, managing connections between the computer and various linked networks. Therefore, mastering host file tricks is essential, especially when users cannot access Facebook due to restrictions or applying host file tricks like editing the file to access blocked websites worldwide.
Wishing you all success!