使用系统文件检查器工具修复丢失或损坏的系统文件[size=1.4em]Windows 8.1 Windows 8.1 Enterprise Windows 8.1 Pro Windows 8 Windows 8 Enterprise Windows 8 Pro Windows 7 Enterprise Windows 7 Home Basic Windows 7 Home Premium Windows 7 Professional Windows 7 Starter Windows 7 Ultimate Windows Vista Enterprise 64-bit Edition Windows Vista Ultimate 64-bit Edition Windows Vista Business Windows Vista Business 64-bit Edition Windows Vista Enterprise Windows Vista Ultimate Windows 106 @# ~5 B, [( N7 \& [4 j! a7 D
6 V& s, Q0 K$ a. _. v9 }
[size=1.6em]如果某些 Windows 功能不工作或 Windows 崩溃,请使用系统文件检查器扫描 Windows 并还原文件。 
' R F+ _: `; Z1 S 6 s+ N# t& p, y' ~
虽然下面的步骤初步看上去可能比较复杂,但只要按顺序逐步操作,我们会让你重新步入正轨。 运行系统文件检查器工具 (SFC.exe)[size=1.6em]为此,请按照下列步骤操作: [size=1.6em]键入以下命令,然后按 Enter 键。 命令操作可能需要几分钟才能完成。 [size=1.6em]DISM.exe /Online /Cleanup-image /Restorehealth [size=1.6em]重要说明: 当运行此命令时,DISM 通过 Windows 更新提供修复损坏所需的文件。 但是,如果 Windows 更新客户端已断开,则会将正在运行的 Windows 安装用作修复来源,或者将来自网络共享或可移动媒体(例如 Windows DVD)的 Windows 并行文件夹用作文件来源。 为此,请改为运行以下命令: [size=1.6em]DISM.exe /Online /Cleanup-Image /RestoreHealth /Source:C:\RepairSource\Windows /LimitAccess [size=1.6em]注意: 请使用修复来源的位置替换 C:\RepairSource\Windows 占位符。 有关使用 DISM 工具修复 Windows 的更多信息,请参考修复 Windows 映像。 [size=1.6em]sfc /scannow [size=1.6em]; D% j! Y# W H
, _! U- J( f4 u% o) p6 Q [size=1.6em]sfc /scannow 命令将扫描所有受保护的系统文件,并用位于 %WinDir%\System32\dllcache 的压缩文件夹中的缓存副本替换损坏的文件。6 m4 C8 D. b2 B
%WinDir% 占位符代表 Windows 操作系统文件夹。 例如:C:\Windows。
2 @# `* B$ o4 |8 [: ?: L4 R
3 _! |0 l* b6 v注意 在验证 100% 完成之前,请勿关闭此命令提示符窗口。 此流程完成后将显示扫描结果。
7 B7 q/ j! G& i S( R! J# xWindows 8.1 或 Windows 84 b* [. n% q7 Y- A
2 e8 D7 X! j" d- \
+ S4 K7 H3 K8 s# W. |( U% ?" R9 A/ C" y# @& d" \$ b4 H
Windows 10、Windows 7 或 Windows Vista" r& V6 @7 s! s; A! t
* _8 b! q8 |6 C L2 c
' i+ A! s [, d( t更多信息如何查看系统文件检查器进程的详细信息[size=1.6em]若要查看 CBS.Log 文件中包含的详细信息,可以使用 Findstr 命令将信息复制到 Sfcdetails.txt 文件,然后查看 Sfcdetails.txt 中的详细信息。 为此,请按照下列步骤操作: [size=1em]打开上文步骤 1 所述的提升的命令提示符。 [size=1em]在命令提示符处,键入以下命令,然后按 Enter 键: findstr /c:"[SR]" %windir%\Logs\CBS\CBS.log >"%userprofile%\Desktop\sfcdetails.txt" [size=1em]注意 Sfcdetails.txt 文件包含每次系统文件检查器工具在计算机上运行时的详细信息。 文件包括有关系统文件检查器工具未修复文件的信息。 验证日期和时间项以确定该问题文件为你上次运行系统文件检查器工具时找到的文件。 [size=1em]从你的桌面打开 Sfcdetails.txt 文件。 [size=1em]Sfcdetails.txt 文件使用以下格式: [size=1em]日期/时间 SFC 详细信息 以下示例日志文件包含无法修复的文件项: 2007-01-12 12:10:42, Info CSI 00000008 [SR] Cannot repair member file [l:34{17}]"Accessibility.dll" of Accessibility, Version = 6.0.6000.16386, pA = PROCESSOR_ARCHITECTURE_MSIL (8), Culture neutral, VersionScope neutral, PublicKeyToken = {l:8 b:b03f5f7f11d50a3a}, Type neutral, TypeName neutral, PublicKey neutral in the store, file is missing . `2 x5 v. V7 ?; z5 k1 a
/ I, T1 V* l5 w2 n& d
[size=1.6em]
6 K. O p q% ~- H% c如何手动将损坏的系统文件替换为已知完好的文件副本 [size=1.6em]当你确定哪个系统文件已损坏且无法通过 Sfcdetails.txt 文件中的详细信息修复之后,查找损坏文件所在的位置,然后手动将损坏的文件替换为已知完好的文件副本。 为此,请按照下列步骤操作:: ?8 L8 D" w) R5 _# j' k# i, e+ a
. D9 c: |$ i: U1 f( M
注意 你可能可以从与你的计算机运行相同版本的 Windows 的另一台计算机获取系统文件的已知完好副本。 你可以在该计算机上执行系统文件检查器进程,以确保要复制的系统文件是完好的副本。 [size=1em]获得损坏的系统文件的管理所有权。 为此,在提升的命令提示符处,复制并粘贴(或键入)以下命令,然后按 Enter 键: [size=1em]takeown /f Path_And_File_Name 注意 Path_And_File_Name 占位符代表损坏文件的路径和文件名。 例如,键入 takeown /f C:\windows\system32\jscript.dll。
$ T. b* a' X+ p% X) l& { [size=1em]授予管理员完全访问损坏的系统文件的权限。 为此,复制并粘贴(或键入)以下命令,然后按 Enter 键: [size=1em]icacls Path_And_File_Name /GRANT ADMINISTRATORS:F 注意 Path_And_File_Name 占位符代表损坏文件的路径和文件名。 例如,键入 icacls C:\windows\system32\jscript.dll /grant administrators:F。
! `$ Y$ G6 z) Y- Z+ W/ D. y* f* x [size=1em]将损坏的系统文件替换为已知完好的文件副本。 为此,复制并粘贴(或键入)以下命令,然后按 Enter 键: [size=1em]复制 Source_File Destination 注意 Source_File 占位符代表计算机上已知完好的文件副本的路径和文件名,Destination 占位符代表损坏文件的路径和文件名。 例如,键入 copy E:\temp\jscript.dll C:\windows\system32\jscript.dll。
* r! ~. X }* Y4 k
|