![如何从安装光盘或手册修复损坏的系统文件](https://linux22.com/image/1446960/%E5%A6%82%E4%BD%95%E4%BB%8E%E5%AE%89%E8%A3%85%E5%85%89%E7%9B%98%E6%88%96%E6%89%8B%E5%86%8C%E4%BF%AE%E5%A4%8D%E6%8D%9F%E5%9D%8F%E7%9A%84%E7%B3%BB%E7%BB%9F%E6%96%87%E4%BB%B6.png)
我正在使用 Windows 8.1 x64,版本 6.3.9600.17031,使用具有管理员权限的命令提示符。
sfc /scannow
返回:
...found corrupt files but was unable to fix some of them.
和
dism /online /cleanup-image /restorehealth
返回:
Error: 0x800f0906
The source files could not be downloaded.
(并且由于缺少这些文件,Windows 更新服务无法启动。)
也尝试过
dism /online /cleanup-image /restorehealth /source:wim:F:\sources\install.wim:1 /limitaccess
并返回:
Version: 6.3.9600.17031
Image Version: 6.3.9600.16384
Error: 0x800f081f
The source files could not be found.
我安装了图像,并从那里尝试。
dism /mount-image /imagefile:F:\sources\install.wim /index:1 /mountdir:C:\offline
dism /online /cleanup-image /restoreHealth /source:c:\offline /limitaccess
同时返回:
Error: 0x800f081f
所以我用下面的代码过滤CBS.log
了详细信息,sfc.txt
findstr /i /c:"[SR]" "%windir%\Logs\CBS\CBS.log" | findstr /i /v /c:"verify" > "%userprofile%\Desktop\sfc.txt"
过滤后的日志为:
2015-04-13 17:07:53, Info CSI 0000004b [SR] Cannot repair member file [l:30{15}]"ISymWrapper.dll" of ISymWrapper, Version = 6.3.9600.16384, pA = PROCESSOR_ARCHITECTURE_AMD64 (9), Culture neutral, VersionScope neutral, PublicKeyToken = {l:8 b:b03f5f7f11d50a3a}, Type neutral, TypeName neutral, PublicKey neutral in the store, hash mismatch
2015-04-13 17:07:58, Info CSI 0000004d [SR] Cannot repair member file [l:30{15}]"ISymWrapper.dll" of ISymWrapper, Version = 6.3.9600.16384, pA = PROCESSOR_ARCHITECTURE_AMD64 (9), Culture neutral, VersionScope neutral, PublicKeyToken = {l:8 b:b03f5f7f11d50a3a}, Type neutral, TypeName neutral, PublicKey neutral in the store, hash mismatch
2015-04-13 17:07:58, Info CSI 0000004e [SR] This component was referenced by [l:162{81}]"Microsoft-Windows-NetFx2-OC-Package~31bf3856ad364e35~amd64~~6.3.9600.16384.NetFx2"
2015-04-13 17:07:58, Info CSI 00000051 [SR] Could not reproject corrupted file [ml:520{260},l:102{51}]"\??\C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727"\[l:30{15}]"ISymWrapper.dll"; source file in store is also corrupted
2015-04-13 17:09:27, Info CSI 0000005c [SR] Cannot repair member file [l:20{10}]"uireng.dll" of Microsoft-Windows-Application-Compatibility-UI-Recording, Version = 6.3.9600.16384, pA = PROCESSOR_ARCHITECTURE_AMD64 (9), Culture neutral, VersionScope = 1 nonSxS, PublicKeyToken = {l:8 b:31bf3856ad364e35}, Type neutral, TypeName neutral, PublicKey neutral in the store, hash mismatch
2015-04-13 17:09:41, Info CSI 00000061 [SR] Cannot repair member file [l:20{10}]"uireng.dll" of Microsoft-Windows-Application-Compatibility-UI-Recording, Version = 6.3.9600.16384, pA = PROCESSOR_ARCHITECTURE_AMD64 (9), Culture neutral, VersionScope = 1 nonSxS, PublicKeyToken = {l:8 b:31bf3856ad364e35}, Type neutral, TypeName neutral, PublicKey neutral in the store, hash mismatch
2015-04-13 17:09:41, Info CSI 00000062 [SR] This component was referenced by [l:330{165}]"Microsoft-Windows-Client-Features-Package-AutoMerged-base~31bf3856ad364e35~amd64~~6.3.9600.16384.Microsoft-Windows-Client-Features-Package-AutoMerged-base-Deployment"
2015-04-13 17:09:41, Info CSI 00000065 [SR] Could not reproject corrupted file [ml:520{260},l:46{23}]"\??\C:\WINDOWS\System32"\[l:20{10}]"uireng.dll"; source file in store is also corrupted
2015-04-13 17:10:05, Info CSI 00000087 [SR] Cannot repair member file [l:24{12}]"chs_boot.ttf" of Microsoft-Windows-BootEnvironment-Core-Fonts-CHS-Boot, Version = 6.3.9600.16384, pA = PROCESSOR_ARCHITECTURE_AMD64 (9), Culture neutral, VersionScope = 1 nonSxS, PublicKeyToken = {l:8 b:31bf3856ad364e35}, Type neutral, TypeName neutral, PublicKey neutral in the store, hash mismatch
2015-04-13 17:10:05, Info CSI 00000089 [SR] Cannot repair member file [l:24{12}]"jpn_boot.ttf" of Microsoft-Windows-BootEnvironment-Core-Fonts-JPN-Boot, Version = 6.3.9600.16384, pA = PROCESSOR_ARCHITECTURE_AMD64 (9), Culture neutral, VersionScope = 1 nonSxS, PublicKeyToken = {l:8 b:31bf3856ad364e35}, Type neutral, TypeName neutral, PublicKey neutral in the store, hash mismatch
2015-04-13 17:10:10, Info CSI 0000008b [SR] Cannot repair member file [l:24{12}]"jpn_boot.ttf" of Microsoft-Windows-BootEnvironment-Core-Fonts-JPN-Boot, Version = 6.3.9600.16384, pA = PROCESSOR_ARCHITECTURE_AMD64 (9), Culture neutral, VersionScope = 1 nonSxS, PublicKeyToken = {l:8 b:31bf3856ad364e35}, Type neutral, TypeName neutral, PublicKey neutral in the store, hash mismatch
2015-04-13 17:10:10, Info CSI 0000008c [SR] This component was referenced by [l:350{175}]"Microsoft-Windows-Client-Features-Package-AutoMerged-minkernel~31bf3856ad364e35~amd64~~6.3.9600.16384.Microsoft-Windows-Client-Features-Package-AutoMerged-minkernel-Deployment"
最终这就是Hash Mismatch
如何修复损坏的系统文件?
我可以告诉 DISM 使用 Windows 安装光盘作为源吗?