J'utilise Windows 8.1 x64, version 6.3.9600.16384, à l'aide de l'invite de commande avec des privilèges d'administrateur.
sfc /scannow
résultats:
...found corrupt files but was unable to fix some of them.
et
dism /online /cleanup-image /restorehealth
résultats:
Error: 0x800f0906
The source files could not be downloaded.
(et le service de mise à jour Windows ne peut pas démarrer car ces fichiers sont manquants.)
aussi essayé
dism /online /cleanup-image /restorehealth /source:wim:F:\sources\install.wim:1 /limitaccess
et retourné:
Version: 6.3.9600.16384
Image Version: 6.3.9600.16384
Error: 0x800f081f
The source files could not be found.
J'ai monté l'image et essayé à partir de là.
dism /mount-image /imagefile:F:\sources\install.wim /index:1 /mountdir:C:\offline
dism /online /cleanup-image /restoreHealth /source:c:\offline /limitaccess
revenant également:
Error: 0x800f081f
Comment réparer les fichiers système corrompus?
Puis-je dire à DISM d'utiliser le disque d'installation de Windows comme source?
L'exécution de sfc /scannow
produira un fichier de rapport CBS.log
(généralement présent dans C:\Windows\Logs\CBS
) qui contient une mine d'informations. Pour obtenir les bits juteux, ouvrez une invite de commande et exécutez cette commande:
findstr /i /c:"[SR]" "%windir%\Logs\CBS\CBS.log" | findstr /i /v /c:"verify" > "%userprofile%\Desktop\sfc.txt"
La commande ci-dessus va:
Obtenez toutes les lignes du fichier d'origine contenant [SR]
, celles qui suivent les tentatives de réparation.
Supprimez toutes les lignes contenant verify
de ce que nous avons obtenu à l'étape précédente afin de réduire davantage l'encombrement.
Ecrivez les résultats dans le fichier sfc.txt
pour une analyse ultérieure.
Dans ce cas, ce serait le fichier résultant:
2014-02-19 17:08:47, Info CSI 0000008b [SR] Cannot repair member file [l:22{11}]"Generic.xbf" of Microsoft-Windows-Camera-LockScreenCamera-Main, Version = 6.3.9600.16485, pA = PROCESSOR_ARCHITECTURE_AMD64 (9), Culture neutral, VersionScope = 1 nonSxS, PublicKeyToken = {l:8 b:31bf3856ad364e35}, Type neutral, TypeName neutral, PublicKey neutral in the store, file is missing
2014-02-19 17:08:49, Info CSI 0000008c [SR] Cannot repair member file [l:22{11}]"Generic.xbf" of Microsoft-Windows-Camera-LockScreenCamera-Main, Version = 6.3.9600.16485, pA = PROCESSOR_ARCHITECTURE_AMD64 (9), Culture neutral, VersionScope = 1 nonSxS, PublicKeyToken = {l:8 b:31bf3856ad364e35}, Type neutral, TypeName neutral, PublicKey neutral in the store, file is missing
2014-02-19 17:08:49, Info CSI 0000008d [SR] This component was referenced by [l:154{77}]"Package_1_for_KB2914218~31bf3856ad364e35~AMD64~~6.3.1.3.2914218-1_neutral_GDR"
2014-02-19 17:08:51, Info CSI 00000091 [SR] Cannot repair member file [l:22{11}]"Generic.xbf" of Microsoft-Windows-Camera-LockScreenCamera-MediaShared, Version = 6.3.9600.16485, pA = PROCESSOR_ARCHITECTURE_AMD64 (9), Culture neutral, VersionScope = 1 nonSxS, PublicKeyToken = {l:8 b:31bf3856ad364e35}, Type neutral, TypeName neutral, PublicKey neutral in the store, file is missing
2014-02-19 17:08:53, Info CSI 00000092 [SR] Cannot repair member file [l:22{11}]"Generic.xbf" of Microsoft-Windows-Camera-LockScreenCamera-MediaShared, Version = 6.3.9600.16485, pA = PROCESSOR_ARCHITECTURE_AMD64 (9), Culture neutral, VersionScope = 1 nonSxS, PublicKeyToken = {l:8 b:31bf3856ad364e35}, Type neutral, TypeName neutral, PublicKey neutral in the store, file is missing
2014-02-19 17:08:53, Info CSI 00000093 [SR] This component was referenced by [l:154{77}]"Package_1_for_KB2914218~31bf3856ad364e35~AMD64~~6.3.1.3.2914218-1_neutral_GDR"
2014-02-19 17:08:56, Info CSI 00000097 [SR] Cannot repair member file [l:22{11}]"Generic.xbf" of Microsoft-Windows-Camera-MediaViewerDistributed-MediaShared, Version = 6.3.9600.16485, pA = PROCESSOR_ARCHITECTURE_AMD64 (9), Culture neutral, VersionScope = 1 nonSxS, PublicKeyToken = {l:8 b:31bf3856ad364e35}, Type neutral, TypeName neutral, PublicKey neutral in the store, file is missing
2014-02-19 17:08:57, Info CSI 00000098 [SR] Cannot repair member file [l:22{11}]"Generic.xbf" of Microsoft-Windows-Camera-MediaViewerDistributed-MediaShared, Version = 6.3.9600.16485, pA = PROCESSOR_ARCHITECTURE_AMD64 (9), Culture neutral, VersionScope = 1 nonSxS, PublicKeyToken = {l:8 b:31bf3856ad364e35}, Type neutral, TypeName neutral, PublicKey neutral in the store, file is missing
2014-02-19 17:08:57, Info CSI 00000099 [SR] This component was referenced by [l:154{77}]"Package_1_for_KB2914218~31bf3856ad364e35~AMD64~~6.3.1.3.2914218-1_neutral_GDR"
2014-02-19 17:23:00, Info CSI 00000975 [SR] Repairing 3 components
2014-02-19 17:23:00, Info CSI 00000977 [SR] Cannot repair member file [l:22{11}]"Generic.xbf" of Microsoft-Windows-Camera-LockScreenCamera-Main, Version = 6.3.9600.16485, pA = PROCESSOR_ARCHITECTURE_AMD64 (9), Culture neutral, VersionScope = 1 nonSxS, PublicKeyToken = {l:8 b:31bf3856ad364e35}, Type neutral, TypeName neutral, PublicKey neutral in the store, file is missing
2014-02-19 17:23:00, Info CSI 00000978 [SR] Cannot repair member file [l:22{11}]"Generic.xbf" of Microsoft-Windows-Camera-LockScreenCamera-MediaShared, Version = 6.3.9600.16485, pA = PROCESSOR_ARCHITECTURE_AMD64 (9), Culture neutral, VersionScope = 1 nonSxS, PublicKeyToken = {l:8 b:31bf3856ad364e35}, Type neutral, TypeName neutral, PublicKey neutral in the store, file is missing
2014-02-19 17:23:00, Info CSI 00000979 [SR] Cannot repair member file [l:22{11}]"Generic.xbf" of Microsoft-Windows-Camera-MediaViewerDistributed-MediaShared, Version = 6.3.9600.16485, pA = PROCESSOR_ARCHITECTURE_AMD64 (9), Culture neutral, VersionScope = 1 nonSxS, PublicKeyToken = {l:8 b:31bf3856ad364e35}, Type neutral, TypeName neutral, PublicKey neutral in the store, file is missing
2014-02-19 17:23:00, Info CSI 0000097a [SR] Cannot repair member file [l:22{11}]"Generic.xbf" of Microsoft-Windows-Camera-LockScreenCamera-MediaShared, Version = 6.3.9600.16485, pA = PROCESSOR_ARCHITECTURE_AMD64 (9), Culture neutral, VersionScope = 1 nonSxS, PublicKeyToken = {l:8 b:31bf3856ad364e35}, Type neutral, TypeName neutral, PublicKey neutral in the store, file is missing
2014-02-19 17:23:00, Info CSI 0000097b [SR] This component was referenced by [l:154{77}]"Package_1_for_KB2914218~31bf3856ad364e35~AMD64~~6.3.1.3.2914218-1_neutral_GDR"
2014-02-19 17:23:00, Info CSI 0000097c [SR] Cannot repair member file [l:22{11}]"Generic.xbf" of Microsoft-Windows-Camera-LockScreenCamera-Main, Version = 6.3.9600.16485, pA = PROCESSOR_ARCHITECTURE_AMD64 (9), Culture neutral, VersionScope = 1 nonSxS, PublicKeyToken = {l:8 b:31bf3856ad364e35}, Type neutral, TypeName neutral, PublicKey neutral in the store, file is missing
2014-02-19 17:23:00, Info CSI 0000097d [SR] This component was referenced by [l:154{77}]"Package_1_for_KB2914218~31bf3856ad364e35~AMD64~~6.3.1.3.2914218-1_neutral_GDR"
2014-02-19 17:23:00, Info CSI 0000097e [SR] Cannot repair member file [l:22{11}]"Generic.xbf" of Microsoft-Windows-Camera-MediaViewerDistributed-MediaShared, Version = 6.3.9600.16485, pA = PROCESSOR_ARCHITECTURE_AMD64 (9), Culture neutral, VersionScope = 1 nonSxS, PublicKeyToken = {l:8 b:31bf3856ad364e35}, Type neutral, TypeName neutral, PublicKey neutral in the store, file is missing
2014-02-19 17:23:00, Info CSI 0000097f [SR] This component was referenced by [l:154{77}]"Package_1_for_KB2914218~31bf3856ad364e35~AMD64~~6.3.1.3.2914218-1_neutral_GDR"
2014-02-19 17:23:00, Info CSI 00000980 [SR] Repair complete
2014-02-19 17:23:00, Info CSI 00000981 [SR] Committing transaction
En vérifiant le fichier, vous pouvez voir que le vérificateur de fichiers système a tenté de réparer 3 composants, mais a échoué:
2014-02-19 17:23:00, Info CSI 00000975 [SR] Repairing 3 components
2014-02-19 17:23:00, Info CSI 00000977 [SR] Cannot repair member file [l:22{11}]"Generic.xbf" of Microsoft-Windows-Camera-LockScreenCamera-Main, Version = 6.3.9600.16485, pA = PROCESSOR_ARCHITECTURE_AMD64 (9), Culture neutral, VersionScope = 1 nonSxS, PublicKeyToken = {l:8 b:31bf3856ad364e35}, Type neutral, TypeName neutral, PublicKey neutral in the store, file is missing
2014-02-19 17:23:00, Info CSI 00000978 [SR] Cannot repair member file [l:22{11}]"Generic.xbf" of Microsoft-Windows-Camera-LockScreenCamera-MediaShared, Version = 6.3.9600.16485, pA = PROCESSOR_ARCHITECTURE_AMD64 (9), Culture neutral, VersionScope = 1 nonSxS, PublicKeyToken = {l:8 b:31bf3856ad364e35}, Type neutral, TypeName neutral, PublicKey neutral in the store, file is missing
2014-02-19 17:23:00, Info CSI 00000979 [SR] Cannot repair member file [l:22{11}]"Generic.xbf" of Microsoft-Windows-Camera-MediaViewerDistributed-MediaShared, Version = 6.3.9600.16485, pA = PROCESSOR_ARCHITECTURE_AMD64 (9), Culture neutral, VersionScope = 1 nonSxS, PublicKeyToken = {l:8 b:31bf3856ad364e35}, Type neutral, TypeName neutral, PublicKey neutral in the store, file is missing
Chaque entrée suit ce schéma approximatif:
Cannot repair member file [...]"Generic.xbf"
Le fichier à réparer.
of Microsoft-Windows-Camera-LockScreenCamera-Main,
Nom du package auquel le fichier appartient.
Version = 6.3.9600.16485,
Version du fichier (majeur, mineur, build et révision).
pA = PROCESSOR_ARCHITECTURE_AMD64 (9),
Architecture de processeur ciblée .
Culture neutral, [...],
Neutre ou le nom de culture associé s'il est localisé.
file is missing
Raison pour laquelle le fichier doit être réparé.
Il y a trois fichiers Generic.xbf
qui sont manquants. De plus, ils partagent tous cette information:
2014-02-19 17:23:00, Info CSI 0000097b [SR] This component was referenced by [l:154{77}]"Package_1_for_KB2914218~31bf3856ad364e35~AMD64~~6.3.1.3.2914218-1_neutral_GDR"
Cela signifie que le fichier est inclus dans la mise à jour KB2914218 de Windows.
Obtenez le package de mise à jour KB2914218 .
Extrayez le fichier .msu
téléchargé en utilisant 7-Zip dans un dossier portant le nom du fichier d'origine (par exemple, Windows8.1-KB2914218-x64
).
Ouvrez une invite de commande en tant qu'administrateur et accédez au dossier actuel à l'aide de la commande suivante:
cd /d "X:\Whatever\Windows8.1-KB2914218-x64"
Développez l'archive CAB contenant les fichiers de mise à jour dans le répertoire actuel:
expand Windows8.1-KB2914218-x64.cab -f:* %cd%
Chaque package est associé à un fichier .manifest
qui répertorie les fichiers fournis. Afin de déterminer où chaque fichier est stocké, exécutez la commande suivante en remplaçant packagaName
et fileName.ext
par les valeurs réelles:
for /f "delims=" %A in ('"findstr /i /m /c:"packageName" *.manifest"') do @for /f "delims=" %B in ('"findstr /i /m /c:"fileName.ext" %A"') do @echo %~nB;fileName.ext>>fixes.txt
Par exemple:
for /f "delims=" %A in ('"findstr /i /m /c:"Microsoft-Windows-Camera-LockScreenCamera-Main" *.manifest"') do @for /f "delims=" %B in ('"findstr /i /m /c:"Generic.xbf" %A"') do @echo %~nB;Generic.xbf>>fixes.txt
Répétez l'étape 5 pour tout autre fichier devant être corrigé.
Prenez possession et contrôlez entièrement le dossier C:\Windows\winsxs
:
takeown /f "%windir%\winsxs" /a
icacls "%windir%\winsxs" /grant:r *S-1-5-32-544:(OI)(CI)(F) /q
Créez n'importe quel dossier manquant:
for /f "tokens=1 delims=;" %G in (fixes.txt) do @if not exist "%windir%\winsxs\%~G\" @md "%windir%\winsxs\%~G"
Prenez le contrôle total des dossiers requis:
for /f "tokens=1 delims=;" %G in (fixes.txt) do takeown /f "%windir%\winsxs\%~G" /a >nul & icacls "%windir%\winsxs\%~G" /grant:r *S-1-5-32-544:(OI)(CI)(F) /q
Restaurez les fichiers:
for /f "tokens=1,2 delims=;" %A in (fixes.txt) do copy /y ".\%A\%B" "%windir%\winsxs\%A\%B"
Répétez la vérification des fichiers système pour vous assurer que les problèmes ont été résolus:
sfc /scannow
Si Windows ne parvient pas à démarrer, vous pouvez exécuter SFC à partir de la console de récupération Windows:
sfc /scannow /offbootdir=d:\ /offwindir=d:\windows
Extrait de: http://www.sysadmit.com/2016/03/windows-reparar-archivos-del-sistema.html