Windows 7 的系統文件修復:sfc /scannow


在線檢查與修復

C:\Windows\system32>sfc /scannow

開始系統掃描。此過程將需要一些時間。

開始系統掃描的驗證階段。
驗證 100% 已完成。
Windows 資源保護找到了損壞文件但無法修復其中某些文件。
CBS.Log windir\Logs\CBS\CBS.log 中有詳細信息。例如
C:\Windows\Logs\CBS\CBS.log

C:\Windows\system32>findstr /c:"[SR]" %windir%\Logs\CBS\CBS.log >"%userprofile%\Desktop\sfcdetails.txt"

C:\Windows\system32>"%userprofile%\Desktop\sfcdetails.txt"

 在線手工修復

1、先准備 Windows 7 光盤中 INSTALL.WIM 文件,並安裝好 7-zip 軟件;
2、使用 7-zip 打開 INSTALL.WIM 文件,提取 1.xml 文件;
3、查看 1.xml 文件中系統版本(<NAME>Windows 7 HOMEBASIC</NAME>)對應的WIM索引號(<IMAGE INDEX="1">)
4、提取對應版本的相關文件;
5、以管理員身份打開 Command prompt 進行源文件替換,以jscript.dll為例。
takeown /f %windir%\system32\jscript.dll /a icacls %windir%\system32\jscript.dll /e /g administrators:F
copy /y jscript.dll %windir%\system32\jscript.dll

離線檢查與修復

1、使用 Windows 7 光盤引導計算機,並進入 修復計算機 模式中的 命令窗口。
2、a).對所有系統文件進行檢查並修復:
      sfc /scannow /offbootdir=d:\ /offwindir=d:\windows
   b).對特定系統文件修復:
      sfc /scanfile=d:\windows\system32\jscript.dll /offbootdir=d:\ /offwindir=d:\windows
PS:D:\Windows 為離線系統在修復模式下路徑。

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM