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

Win7 系統檔案檢查器 (SFC) 掃描修復遺失/損毀系統檔案教學

編輯:Windows 7 系統介紹

方法一:自動掃描修復

  1. 「開始」搜尋 cmd → 右鍵「以系統管理員身分執行」。
  2. 輸入 sfc /scannow 按 Enter,系統自動掃描所有受保護系統檔案並以正確版本取代錯誤版本。

方法二:查看無法修復的檔案詳細資訊

  1. 管理員 CMD 執行:
    findstr /c:"[SR]" %windir%\Logs\CBS\CBS.log > "%userprofile%\Desktop\sfcdetails.txt"
  2. 開啟桌面 sfcdetails.txt,記錄包含每次 SFC 掃描時間與無法修復檔案清單。

方法三:手動取代無法自動修復的檔案

  1. 取得檔案擁有權:takeown /f 路徑\檔名
  2. 授予管理員完整權限:icacls 路徑\檔名 /grant 管理員:F
  3. 用已知正常檔案覆蓋:copy 來源路徑\檔名 目的路徑\檔名

範例:修復 jscript.dll
takeown /f C:\Windows\System32\jscript.dll
icacls C:\Windows\System32\jscript.dll /grant Administrators:F
copy C:\temp\jscript.dll C:\Windows\System32\jscript.dll

SFC 是修復系統檔案損毀的首選工具,建議定期執行或遇到不明錯誤時優先使用。

Copyright © Windows教程網 All Rights Reserved