我就是进不去。不管我做什么......它是由恶意软件引起的,我的主机文件被“变成”了一个无法以任何方式、形状或形式更改或删除的系统文件。
我尝试了无数次“互联网修复”,但均无济于事。任何人都可以帮忙吗?
每当我尝试修改、添加、编辑、更改或删除我的主机文件时,我都会收到拒绝访问错误。安全模式没有帮助。以管理员身份运行并启用管理员没有帮助(Windows 7、64 位机器,顺便说一句)......没有任何作用。
任何人?除了完全擦除和重建之外还有什么想法吗?
谢谢!
我就是进不去。不管我做什么......它是由恶意软件引起的,我的主机文件被“变成”了一个无法以任何方式、形状或形式更改或删除的系统文件。
我尝试了无数次“互联网修复”,但均无济于事。任何人都可以帮忙吗?
每当我尝试修改、添加、编辑、更改或删除我的主机文件时,我都会收到拒绝访问错误。安全模式没有帮助。以管理员身份运行并启用管理员没有帮助(Windows 7、64 位机器,顺便说一句)......没有任何作用。
任何人?除了完全擦除和重建之外还有什么想法吗?
谢谢!
它实际上可能是您的防病毒软件。您是否检查过该途径?
Windows has placed special permissions on system files since around Vista. I tried many ways to edit my Hosts file including attempting to "take control" of the file as administrator with no luck. Now I found an easy way to edit these types of files:
Bring up Windows Start menu
Type in the name of your text editor (e.g. notepad) into the search box and press enter.
When your editor shows up, right click the program and select 'Run as administrator' from the list of options. (I used textpad.exe, but any should work). If you skip this step it will not work!
You will have to use the open dialog in your editor to open the file since Windows will not allow drag-n-drop. In Textpad, the etc folder was hidden, so I had to type it into the file box to get into that directory within the open dialog.
Now that you see the hosts file, select it for editing.
Perform your editing and click save when finished.
I found a Microsoft support reference to this issue here: http://support.microsoft.com/kb/923947
It should save with no access denied permissions. If you still get an error, then your issue is probably being compounded with another issue like an extremely protective antivirus program (which you can probably temporarily disable and repeat the steps above. I performed this workaround in Windows 7x64 that runs Microsoft Security Essentials and it worked without having to do anything else. I hope this helps.
我建议您下载 Hiren 的工具箱 ( http://www.hirensbootcd.org/download/ ) 并尝试清理一下,试一试……这是一个很棒的工具汇编。
是的,它有一个关于修改主机文件的工具。您是否尝试将主机文件拖到桌面删除只读(如果有)然后编辑它?如果不生成一个新的!
Paste this in a new notepad file and save it somewhere as hosts.bat
takeown /f "%windir%\system32\drivers\etc\hosts" && icacls "%windir%\system32\drivers\etc\hosts" /grant administrators:F
attrib -r -h -s hosts
%windir%\notepad.exe %windir%\system32\drivers\etc\hosts
Copy that file to c:\windows\system32\hosts.bat
Click start then type "hosts" (no qutoes) and hit enter. You will notice you are not prompted for UAC but can save the file and the changes stick!
尝试以安全模式重新启动计算机。
如果您不知道如何在安全模式下重新启动,请执行以下步骤:
进入安全模式后,尝试编辑文件。
As a quick first step, I would try running cmd.exe (as adminstrator) and then using the command
attrib -r -h -s hosts
but I would guess something else is going on
change attribute is No avail reboot is No avail
there are two notepad.exe in x64 windows,
you must use full path c:\windows\system2\notepad.exe ,this one is 64 bit version,
only type notepad whithout path may be launch 32 bit notepad. (c:\windows\syswow64\notepad.exe)
"Run as administrator" just let you enforce launch 64 bit notepad.exe
using 32 bit software to edit c:\windows\system32\drivers\etc\hosts
the x64 system will automatic redirect to c:\windows\syswow64\drivers\etc
and there is no hosts file.
the GUI stiil display current folder is c:\windows\system32
but the real folder is c:\windows\syswow64
change attribute is No avail
If you're on a 64-bit architecture and trying to edit with a 32-bit editor (e.g. Notepad++) you can't save the file. Try editing your file with the regular notepad that is shipped with Windows. To be absolutely sure, also run Notepad as an Administrator