Anda di halaman 1dari 12

COMO USAR SFC – SCANNOW

Ejecutar la herramienta Comprobador de archivos de


sistema (SFC.exe)

Para ello, siga estos pasos:

1. Abra un símbolo del sistema con privilegios elevados. Para hacerlo, haga lo
siguiente según proceda:

Mostrar todos

Windows 8.1 o Windows 8

Windows 10, Windows 7 o Windows Vista

2. Si utiliza Windows 10, Windows 8.1 o Windows 8, ejecute la herramienta


Administración y mantenimiento de imágenes de implementación (DISM) antes de
ejecutar el Comprobador de archivos de sistema. (Si utiliza Windows 7 o Windows
Vista, vaya al Método 3).

Escriba el comando siguiente y, a continuación, presione Entrar. Cada operación de


comando puede tardar varios minutos en finalizar.

DISM.exe /Online /Cleanup-image /Restorehealth

Importante: Al ejecutar este comando, DISM utiliza Windows Update para proporcionar
los archivos necesarios para reparar los daños. Sin embargo, si el cliente de Windows
Update ya no funciona, utilice una instalación de Windows en ejecución como origen de
reparación o una carpeta en paralelo de un recurso compartido de red o de un medio
extraíble, como el DVD de Windows, como origen de los archivos. Para ello, ejecute en su
lugar el siguiente comando:

DISM.exe /Online /Cleanup-Image /RestoreHealth /Source:C:\RepairSource\Windows


/LimitAccess

Nota: Sustituya el marcador de posición C:\RepairSource\Windows con la ubicación del


origen de la reparación. Para obtener más información acerca de cómo utilizar la
herramienta DISM para reparar Windows, consulte Reparar una imagen de Windows.

3. En el símbolo del sistema, escriba el comando siguiente y presione ENTRAR:

sfc /scannow
El comando sfc /scannow examinará todos los archivos de sistema protegidos y remplaza
los archivos dañados con una copia en caché ubicada en una carpeta comprimida en
%WinDir%\System32\dllcache.
El marcador de posición %WinDir% representa la carpeta del sistema operativo Windows.
Por ejemplo, C:\Windows.

Nota No cierre la ventana del símbolo del sistema hasta que la verificación haya terminado
por completo. Una vez finalizado el proceso, aparecerán los resultados del examen.

4. Cuando el proceso termine, puede recibir alguno de los siguientes mensajes:


o Protección de recursos de Windows no encontró ninguna infracción de
integridad.

Esto quiere decir que no hay ningún archivo de sistema que esté dañado o
que falte.

o Protección de recursos de Windows no pudo realizar la operación solicitada.

Para resolver este problema, vuelva a ejecutar el examen de Comprobador


de archivos de sistema en modo seguro y compruebe que las carpetas
PendingDeletes y PendingRenames existen dentro de
%WinDir%\WinSxS\Temp.

o Protección de recursos de Windows encontró archivos dañados y los reparó


correctamente. Los detalles están incluidos en CBS.Log
%WinDir%\Logs\CBS\CBS.log.

Para obtener información detallada sobre el análisis de archivos de sistema y


su restauración, diríjase a Cómo ver los detalles del proceso de
Comprobador de archivos de sistema.

o Protección de recursos de Windows encontró archivos dañados pero no pudo


corregir algunos de ellos. Los detalles están incluidos en CBS.Log
%WinDir%\Logs\CBS\CBS.log.

Para reparar los archivos dañados de manera manual, consulta los detalles
del proceso de Comprobador de archivos de sistema para encontrar el
archivo dañado y luego remplace el archivo dañado con una copia del
archivo que sepa que no esté dañada.

Más información

Cómo ver los detalles del proceso del Comprobador de archivos de sistema

Para ver los detalles incluidos en el archivo CBS.Log, puede copiar la información al
archivo Sfcdetails.txt usando el comando Findstr y luego ver los detalles en el archivo
Sfcdetails.txt. Para ello, siga estos pasos:

1. Abra un símbolo del sistema con privilegios elevados como se describe en el paso 1
anterior.
2. En el símbolo del sistema, escriba el comando siguiente y presione ENTRAR:

findstr /c:"[SR]" %windir%\Logs\CBS\CBS.log


>"%userprofile%\Desktop\sfcdetails.txt"

Nota El archivo Sfcdetails.txt contiene detalles de cada vez que la herramienta


Comprobador de archivos de sistema se ha ejecutado en el equipo. El archivo
incluye información sobre los archivos que la herramienta Comprobador de
archivos de sistema no pudo reparar. Compruebe las entradas de fecha y hora para
determinar los archivos de problemas que se encontraron la última vez que se
ejecutó la herramienta Comprobador de archivos de sistema.
3. Abra el archivo Sfcdetails.txt desde su escritorio.
4. El archivo Sfcdetails.txt utiliza el siguiente formato:

Detalle de SFC de fecha/hora

El siguiente archivo de registro de ejemplo contiene una entrada para un archivo


que no se pudo reparar:

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

Cómo reemplazar manualmente el archivo de sistema dañado por una copia


que sepa que no está dañada

Después de que encuentre el archivo de sistema dañado que no se pudo reparar a través de
la información detallada del archivo Sfcdetails.txt, busque la ubicación del archivo dañado
y sustitúyalo manualmente con una copia que sepa que no está dañada. Para ello, siga estos
pasos:

Nota Puede obtener una copia del archivo de sistema que sepa que no esté dañada de otro
equipo que tenga la misma versión de Windows que su equipo. Puede realizar un proceso
con Comprobador de archivos de sistema en ese equipo para asegurarse de que el archivo
de sistema que quiere copiar no está dañado.

1. Obtenga la propiedad administrativa del archivo de sistema dañado. Para hacerlo, en


un símbolo del sistema con privilegios elevados, copie y pegue (o escriba) el
comando siguiente y luego presione ENTRAR:

takeown /f Ruta de acceso_Y_Nombre de_Archivo

Nota El marcador de posición Ruta de acceso_Y_Nombre de_Archivo representa


la ruta de acceso y el nombre del archivo dañado. Por ejemplo, escriba takeown /f
C:\windows\system32\jscript.dll.
2. Le garantizará acceso total de administrador al archivo de sistema dañado. Para
hacerlo, copie y pegue (o escriba) el comando siguiente y luego presione ENTRAR:

icacls Ruta de acceso_Y_Nombre de_Archivo /GRANT ADMINISTRATORS:F

Nota El marcador de posición Ruta de acceso_Y_Nombre de_Archivo representa


la ruta de acceso y el nombre del archivo dañado. Por ejemplo, escriba icacls
C:\windows\system32\jscript.dll /grant administrators:F.
3. Remplace el archivo de sistema dañado por una copia que sepa que no está dañada.
Para hacerlo, copie y pegue (o escriba) el comando siguiente y luego presione
ENTRAR:

Copie el Destino del Archivo_Fuente

Nota El marcador de posición Archivo_Fuente representa la ruta de acceso y el


nombre de archivo de la copia que no está dañada de su equipo y el marcador de
posición Destino representa la ruta de acceso y el nombre de archivo del archivo
dañado. Por ejemplo, escriba copia E:\temp\jscript.dll
C:\windows\system32\jscript.dll.

https://support.microsoft.com/es-cr/help/929833/use-the-system-file-checker-tool-to-repair-
missing-or-corrupted-system
Repair a Windows Image
• 02/10/2014
• 2 minutes to read

Applies To: Windows 8, Windows 8.1, Windows Server 2012, Windows Server 2012 R2

If a Windows image becomes unserviceable, you can use the Deployment Imaging and
Servicing Management (DISM) tool to update the files and correct the problem. You can
use DISM to repair an offline Windows image in a WIM or VHD file, or an online
Windows image. An online Windows image will also attempt to repair itself if it becomes
unserviceable. The repair source for this operation is the same source that is used for
Features on Demand and is determined by Group Policy settings. For more information, see
Configure a Windows Repair Source. When you use the DISM tool to repair an online or
offline image, you can use the /Source argument with the /RestoreHealth argument to
specify additional repair source locations to use to search for the required files.

The DISM /ScanHealth, /CheckHealth, and /RestoreHealth arguments can only be used
when servicing Windows® 8 or Windows Server® 2012 images.

To check if an image is repairable


1. Scan the image to check for corruption. This operation will take several minutes.
For example, at a command prompt, type the following command:

• Dism /Online /Cleanup-Image /ScanHealth

• Check the image to see whether any corruption has been detected. For example, at a
command prompt, type:

2. Dism /Online /Cleanup-Image /CheckHealth


3.

When you use the /CheckHealth argument, the DISM tool will report whether the image is
healthy, repairable, or non-repairable. If the image is non-repairable, you should discard the
image and start again. If the image is repairable, you can use the /RestoreHealth argument
to repair the image.

To repair an image
1. Use the /RestoreHealth argument to repair the image. For example, to repair an
offline image using a mounted image as a repair source, at a command prompt, type
the following command:

Dism /Image:C:\offline /Cleanup-Image /RestoreHealth


/Source:c:\test\mount\windows
Or to repair an online image using some of your own sources instead of Windows Update,
type:

1. Dism /Online /Cleanup-Image /RestoreHealth


/Source:c:\test\mount\windows /LimitAccess
2. If you do not specify a /Source for the repair files, the default location for Features
on Demand is used. For more information, see Configure a Windows Repair
Source. If you specify more than one /Source, the files are copied from the first
location where they are found and the rest of the locations are ignored. You can use
/LimitAccess to prevent the DISM tool from using Windows Update as a repair
source or as a backup repair source for online images.

See Also
Reference

DISM Operating System Package Servicing Command-Line Options

Concepts

Configure a Windows Repair Source

https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-8.1-and-
8/hh824869(v=win.10)

PROBAR ESTA OPCION:

DISM.exe /Online /Cleanup-Image /RestoreHealth


/Source:C:\RepairSource\Windows /LimitAccess
DISM fails in Windows 10. The source files could not be found
RECOMMENDED: Click here to repair Windows problems & optimize system performance

If, when you try to repair your Windows System Image, and DISM fails with Error
0x800f081f, The source files could not be found, then this post may interest you.

DISM fails The source files could not be found

If the DISM Tool fails, you have 2 options – clean up the system components, and specify
an alternative Windows image repair source, which will then be used to repair a corrupted
Windows image. You can do this using the Group Policy.

Normally, during the repair operation, the automatic corruption repair provides files. But of
this itself has got corrupted, you can use a specified repair source on your network or use
Windows Update to retrieve the source files that are required to enable a feature or to repair
a Windows image.

Clean up system image components

Open an elevated command prompt windows, type the following and hit Enter:

Dism.exe /online /Cleanup-Image /StartComponentCleanup

Once the operation completed,the DISM Tool /RestoreHealth command and see if it works.

If it does, great, else you will have to proceed to the next option.
DISM fails The source file could not be downloaded

If you receive an Error 0x800f081f or 0x800f0906 The source files could not be
downloaded message, then you will have to set an alternative source file. Read on to learn
how to do this.

Configure an alternative Windows Repair Source

You can configure your system to use an alternative repair source, via a Group Policy
setting, Run gpedit.msc to open the Group Policy Editor, and navigate to the following
setting:

Computer Configuration > Administrative Templates > System

Now in the right pane, double-click on Specify settings for optional component
installation and component repair setting.

Select Enabled and enter the Alternate source file path. You may also choose:

• Never attempt to download payload from Windows Update


• Contact Windows Update directly to download repair content instead of Windows Server
Update Service (WSUS).
This policy setting specifies the network locations that will be used for the repair of
operating system corruption and for enabling optional features that have had their payload
files removed. If you enable this policy setting and specify the new location, the files in that
location will be used to repair operating system corruption and for enabling optional
features that have had their payload files removed. You must enter the fully qualified path
to the new location in the “”Alternate source file path”” text box. Multiple locations can be
specified when each path is separated by a semicolon. The network location can be either a
folder, or a WIM file. If it is a WIM file, the location should be specified by prefixing the
path with “wim:” and include the index of the image to use in the WIM file. For example
“wim:\\server\share\install.wim:3”. If you disable or do not configure this policy setting, or
if the required files cannot be found at the locations specified in this policy setting, the files
will be downloaded from Windows Update, if that is allowed by the policy settings for the
computer.

Click Apply/OK and exit.


Remember that you will need to keep and maintain a repair source which is current with
the latest servicing updates, etc, on your network.

Related tip: To use a running Windows installation as the repair source, or use a Windows
side-by-side folder from a network share or from a removable media, such as the Windows
DVD, as the source of the files, you can use the following command:

DISM.exe /Online /Cleanup-Image /RestoreHealth


/Source:C:\RepairSource\Windows /LimitAccess

Here you will have to replace C:\RepairSource\Windows with the location of your repair
source.

http://www.thewindowsclub.com/dism-fails-source-files-could-not-be-found

Anda mungkin juga menyukai