Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學

解決 Windows 7 無法修改 hosts 檔案:以系統管理員身分執行記事本即可

編輯:Windows 7 系統介紹

Windows 7 預設保護系統檔案,直接雙擊 C:\Windows\System32\drivers\etc\hosts 用記事本開啟會發現無法儲存(提示權限不足)。

最簡單解決方案

  1. 開始 → 所有程式 → 附屬應用程式 → 右鍵「記事本」→ 選擇「以系統管理員身分執行」。
  2. 在記事本中「檔案」→「開啟」→ 瀏覽至 C:\Windows\System32\drivers\etc → 檔案類型選「所有檔案」→ 選取 hosts。
  3. 修改完成後直接「儲存」即可成功。

原理:管理員權限繞過 UAC 對系統目錄的寫入限制。同樣適用於其他受保護系統檔案編輯。

Copyright © Windows教程網 All Rights Reserved