系統檔案遺失或損毀會導致藍畫面、功能異常、更新失敗。Win7 內建 sfc.exe 可自動掃描並修復受保護的系統檔案。
cmd → 右鍵「以系統管理員身分執行」。
sfc /scannow 按 Enter,等待掃描完成 (約 5~15 分鐘)。
未發現完整性違規:系統檔案正常。已修復:自動替換損毀檔案。無法修復:需進階手動處理 (見方法三)。findstr /c:"[SR]" %windir%\Logs\CBS\CBS.log > "%userprofile%\Desktop\sfcdetails.txt"

sfcdetails.txt,搜尋 Cannot repair 關鍵字,記錄無法修復的檔案名稱與路徑。針對 SFC 無法修復的檔案 (如 jscript.dll),需取得已知正常的同版本檔案 (另一台相同版本 Win7、安裝光碟 install.wim 解壓、或官方更新包)。
takeown /f "C:\Windows\System32\jscript.dll"
icacls "C:\Windows\System32\jscript.dll" /grant administrators:F
copy "D:\Source\jscript.dll" "C:\Windows\System32\jscript.dll"
sfc /scannow 驗證。提醒:手動取代系統檔案風險較高,建議先建立系統還原點或完整備份。