開機提示 Windows could not start because the following file is missing: \system32\drivers\tfs.sys,無法進入系統。透過恢復控制台替換核心檔案即可修復。
cd system32
ren ntkrnlpa.exe ntkrnlpa.old
ren ntoskrnl.exe ntoskrnl.old
cd "c:\windows\driver cache\i386"
expand sp2.cab -F:ntkrpamp.exe c:\windows\system32
expand sp2.cab -F:ntkrnlmp.exe c:\windows\system32
cd c:\windows\system32
ren ntkrpamp.exe ntkrnlpa.exe
ren ntkrnlmp.exe ntoskrnl.exe
exit
先執行:xcopy F:\i386\SP2.cab c:\windows\driver cache\i386\ (假設 F 為光碟機),再執行上述 expand 指令。
原理: 將損毀的核心執行檔 (ntkrnlpa.exe, ntoskrnl.exe) 備份,從 SP2.cab 解壓縮乾淨版本並重新命名取代,修復核心檔案遺失/損毀導致的開機失敗。