Sfc scannow windows 10 dism

Applies ToWindows 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 10 Windows 11

When critical Windows system files are missing or corrupted, some Windows features may stop working correctly or Windows may stop responding altogether.  If this happens, you can use the Deployment Image Servicing and Management tool (DISM) and the System File Checker tool (SFC) to scan your system files and restore any corrupted or missing files.

Step 1: Run DISM

DISM provides the files required to repair your corrupted files.  You should run DISM prior to running the System File Checker.  To do this: 

  1. Open an elevated command prompt.

    1. Type cmd in the Search box.

    2. In the search results, right-click Command Prompt, and then select Run as administrator.

    3. If you are prompted for confirmation or an administrator password, type the password, or click Allow.

  2. In the Command Prompt window, type the following command and press Enter.  It may take several minutes for the command operation to be completed.

DISM.exe /Online /Cleanup-image /Restorehealth 

Tips: 

  • DISM uses Windows Update as the source to provide the necessary files. However, if your Windows Update client is broken, you can use a running Windows installation, or a Windows side-by-side folder from a network share or removable media, such as the Windows DVD, as the source of the files. To do this, run the following command instead: 

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

  • In the above command, replace the C:\RepairSource\Windows placeholder with the location of your repair source.  For more information about using the DISM tool to repair Windows, see Repair a Windows Image.

Step 2: Run System File Checker

In the Command Prompt window, type the following command, and press ENTER:

sfc /scannow

Command Prompt with administrator rights - sfc /scannow

 
 

Warning: Do not close this Command Prompt window until the verification is 100% complete.

The sfc /scannow command will scan all protected system files and replace corrupted files with a cached copy.  The scan results will be shown after this process is finished. You may receive one of the following messages:

Scan result message

Corresponding action

Windows Resource Protection did not find any integrity violations.

You do not have any missing or corrupted system files.

Windows Resource Protection could not perform the requested operation.

To resolve this problem, perform the System File Checker scan in safe mode.

Make sure that the PendingDeletes and PendingRenames folders exist under %WinDir%\WinSxS\Temp.

The %WinDir% placeholder represents the Windows operating system folder, such as, C:\Windows.

Windows Resource Protection found corrupt files and successfully repaired them.

The operation was successful. 

To view detailed information about the system file scan and restoration, go to How to view details of the System File Checker process.

Windows Resource Protection found corrupt files but was unable to fix some of them.

To repair the corrupted files manually, view details of the System File Checker process to find the corrupted file, and then manually replace the corrupted file with a known good copy of the file.

More Information

To view the details included in the CBS.Log file, follow these steps to copy the information in the log to a viewable text file on your desktop:

  1. Open an elevated command prompt, as described previously.

  2. In the Command Prompt window, type the following command (on one line), and then press ENTER:

    findstr /c:"[SR]" %windir%\Logs\CBS\CBS.log >"%userprofile%\Desktop\sfcdetails.txt" 

    Note: The Sfcdetails.txt file contains details from every time that the System File Checker tool has been run on the computer. The file includes information about files that were not repaired by the System File Checker tool. Verify the date and time entries to determine the problem files that were found the last time that you ran the System File Checker tool.

  3. Open the Sfcdetails.txt file from your desktop.

  4. The Sfcdetails.txt file uses the following format:

    Date/Time SFC detail The following sample log file contains an entry for a file that could not be repaired: 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

After reviewing the log file to determine which system file was corrupted and could not be repaired, find where the corrupted file is located, and then manually replace the corrupted file with a known good copy of the file.

To do this, follow the instructions below.  In the following commands, the <Path_And_File_Name> placeholder represents the path and the file name of the corrupted file.

Note: You may be able to get a known good copy of the system file from another computer that is running the same version of Windows as your computer. You may wish to perform a System File Checker process on that computer to make sure the system file that you intend to copy is a good copy.

Step 1: Take administrative ownership of the corrupted system file.

Type the following command in the elevated command prompt and then press ENTER:

takeown /f <Path_And_File_Name>​​​​​​​

Example:

takeown /f C:\windows\system32\jscript.dll

Command Prompt with administrator rights - command succeeded

Step 2: Grant administrators full access to the corrupted system file.

Type the following command, and then press ENTER:

icacls <Path_And_File_Name> /grant administrators:F 

Example:

icacls C:\windows\system32\jscript.dll /grant administrators:F

Command Prompt with administrator rights

Step 3: Replace the corrupted system file with a known good copy of the file.

Type the following command, and then press ENTER:

Copy <Source_File> <Destination>

In the above command, replace the <Source_File> placeholder with the path and file name of the known good copy of the file on your computer, and replace the <Destination> placeholder with the path and file name of the corrupted file.

Example:

copy E:\temp\jscript.dll C:\windows\system32\jscript.dll

If the steps above don’t work, you may need to reinstall Windows. For more info, see Recovery options in Windows. 

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Для проверки целостности системных файлов и восстановления поврежденных файлов (библиотек) компонентов в Windows (Windows Server) можно использовать команды SFC и DISM. Эти две утилиты могут быть крайне полезными, если операционная система Windows работает нестабильно, появляются ошибки при запуске стандартных приложений или служб, после вирусного заражения и т.д.

В этой статье мы рассмотрим, как использовать команды
sfc /scannow
,
DISM /Online /Cleanup-Image /RestoreHealth
или
Repair-WindowsImage -Online -RestoreHealth
для восстановления образа и системных фалов в Windows 10/11 и Windows Server 2022/2019/2016.

Содержание:

  • SFC /scannow: восстановление системных файлов Windows
  • Проверка целостности хранилища компонентов Windows с помощью DISM
  • Восстановление образа Windows с помощью DISM /RestoreHealth
  • DISM /Source: восстановление образа Windows с установочного диска
  • Восстановление образа Windows с помощью PowerShell
  • DISM: восстановление поврежденного хранилища компонентов, если Windows не загружается

SFC /scannow: восстановление системных файлов Windows

Перед тем, как восстанавливать образ Windows с помощью DISM, рекомендуется сначала попробовать проверить целостность системных файлов с помощью утилиты SFC (System File Checker). Команда
sfc /scannow
позволяет проверить целостность системных файлов Windows. Если какие-то системные файлы отсутствуют или повреждены, утилита SFC попробует восстановить их оригинальные копии из хранилища системных компонентов Windows (каталог C:\Windows\WinSxS).

Утилита SFC записывает все свои действия в лог-файл
windir%\logs\cbs\cbs.log
. Для всех записей, оставленных SFC в файле CBS.log проставлен тег [SR]. Чтобы выбрать из лога только записи, относящиеся к SFC, выполните команду:

findstr /c:"[SR]" %windir%\Logs\CBS\CBS.log >"%userprofile%\Desktop\sfc.txt"

Если команда sfc /scannow возвращает ошибку “
Программа защиты ресурсов Windows обнаружила повреждённые файлы, но не может восстановить некоторые из них / Windows Resource Protection found corrupt files but was unable to fix some of them
”, скорее всего утилита не смогла получить необходимые файла из хранилища компонентов (образа) Windows.

sfc /scannow Программа защиты ресурсов Windows обнаружила повреждённые файлы, но не может восстановить некоторые из них

В этом случае вам нужно попробовать восстановить хранилище компонентов вашего образа Windows с помощью DISM.

После восстановления образа вы можете повторно использовать утилиту SFC для восстановления системных файлов.

Проверка целостности хранилища компонентов Windows с помощью DISM

Утилита DISM (Deployment Image Servicing and Management) доступна во всех версиях Windows, начиная с Vista.

Для сканирования образа Windows на наличие ошибок и их исправления используется параметр DISM /Cleanup-image. Команды DISM нужно запускать из командной строки, с правами администратора.

Чтобы проверить наличие признака повреждения хранилища компонентов в образе Windows (флаг CBS), выполните команду (не применимо к Windows 7/Server 2008R2):

DISM /Online /Cleanup-Image /CheckHealth

Эта команда не выполняет полное сканирование хранилища компонентов. Проверяются лишь записанные ранее маркеры повреждений и события в журнале Windows. Изменения в образ не вносятся. Команда проверит, не помечен ли ваш образ Windows как поврежденный и возможно ли исправить его.

DISM /CheckHealth - проверка повреждений в образе windows

В этом примере команда вернула, что с образом все хорошо:

No component store corruption detected.
The operation completed successfully.

Чтобы выполнить полное сканирование хранилища компонентов на наличие повреждений в хранилище компонентов Windows, запустите команду:

DISM /Online /Cleanup-Image /ScanHealth

Команда проверки образа Windows может выполняться довольно долго (от 10 до 30 минут). И вернет один из трех результатов:

  • No component store corruption detected – DISM не обнаружил повреждения в хранилище компонентов;
  • The component store is repairable – DISM обнаружил ошибки в хранилище компонентов и может исправить их;
  • The component store is not repairable – DISM не может исправить хранилище компонентов Windows (попробуйте использовать более новую версию DISM или вам придется восстанавливать образ Windows из резервной копии, сбрасывать или полностью переустанавливать вашу копию Windows.

DISM Cleanup-Image ScanHealth проверить хранилище компонентов Windows, хранилище компонентов можно исправить

В Windows 7 и Windows Server 2008 R2 для использования параметра DISM /ScanHealth нужно установить отдельное обновление KB2966583. Иначе при запуске DISM будет появляться “
Ошибка 87. Параметр ScanHealth не распознан в этом контексте
”.

Команда DISM /ScanHealth может вернуть ошибки:

  • Ошибка: 1726. Сбой при удалённом вызове процедуры;
  • Ошибка: 1910. Не найден указанный источник экспорта объекта.

Это однозначно говорит о том, что ваш образ Windows поврежден и его нужно восстановить.

Восстановление образа Windows с помощью DISM /RestoreHealth

Чтобы исправить повреждения в хранилище компонентов образа Windows нужно использовать опцию RestoreHealth команды DISM. Эта опция позволит исправить найденные в образе ошибки, автоматически скачать и заменить файлы повреждённых или отсутствующих компонентов эталонными версиями файлов из центра обновлений Windows (на компьютере должен быть доступ в Интернет). Выполните команду:

DISM /Online /Cleanup-Image /RestoreHealth

В Windows 7/2008 R2 эта команда выглядит по другому:
DISM.exe /Online /Cleanup-Image /ScanHealth

Процесс сканирования и восстановления компонентов может быть довольно длительным (30 минут или более). DISM автоматически загрузит недостающие или поврежденные файлы образа с серверов Windows Update.

Восстановление выполнено успешно. Операция успешно завершена.
The restore operation completed successfully.

DISM /Online /Cleanup-Image /RestoreHealth - восстановление образа windows 10

DISM /Source: восстановление образа Windows с установочного диска

Если на компьютере (сервере) отсутствует доступ в Интернет или отключена/повреждена служба Windows Update (как восстановить клиент Windows Update), то при восстановлении хранилища компонентов появятся ошибки:

  • 0x800f0906 — Не удалось скачать исходные файлы. Укажите расположение файлов, необходимых для восстановления компонента, с помощью параметра Источник (0x800f0906 — The source files could not be downloaded. Use the source option to specify the location of the files that are required to restore the feature);
  • Ошибка: 0x800f0950 — Сбой DISM. Операция не выполнена (0x800f0950 — DISM failed. No operation was performed);
  • Ошибка:0x800F081F. Не удалось найти исходные файлы. Укажите расположение файлов, необходимых для восстановления компонента, с помощью параметра Источник (Error 0x800f081f, The source files could not be found. Use the «Source» option to specify the location of the files that are required to restore the feature).

DISM /RestoreHealth Error 0x800f081f, The source files could not be found

<

Во всех этих случаях вы можете использовать альтернативные средства получения оригинальных файлов хранилища компонентов. Это может быть:

  • Установочный диск/флешка/iso образ Windows
  • Смонтированный файл wim
  • Папка \sources\SxS с установочного диска
  • Файл install.wim с установочным образом Windows

Вы можете указать WIM или ESD файл с оригинальным установочным образом Windows, который нужно использовать в качестве источника для восстановления файлов системы. Предположим, вы смонтировали установочный ISO образ Windows 11 в виртуальный привод D:.

Примечание. Для восстановления поврежденных файлов в хранилище компонентов из локального источника версия и редакция Windows в образе должна полностью совпадать с вашей.

С помощью следующей PowerShell команды проверьте, какая версия Windows установлена на вашем компьютере:

Get-ComputerInfo |select WindowsProductName,WindowsEditionId,WindowsVersion, OSDisplayVersion

powershell Get-ComputerInfo получить номер билда и редакцию windows

Выведите список доступных версий Windows в установочном образе:

Get-WindowsImage -ImagePath "D:\sources\install.wim"

В нашем случае образ Windows 11 Pro в образе install.wim имеет
ImageIndex = 6
.

Для восстановления хранилища компонентов из локального WIM/ESD файла с блокированием доступа в интернет, выполните следующую команду (не забудьте указать ваш индекс версии Windows в файле):

DISM /online /cleanup-image /restorehealth /source:WIM:D:\sources\install.wim:6  /limitaccess

Или:
DISM /online /cleanup-image /restorehealth /source:ESD:D:\sources\install.esd:6  /limitaccess

dism restorehealth source: восстановить хранилище компонентов из оригинального образа Windows на установочном диске, ISO, WIM файле

Если при запуске появляется

  • Ошибка Error: 50: DISM does not support servicing Windows PE with the /Online option, значит ваша DISM считает, что вы используете WinPE образWindows. Чтобы исправить это, удалите ветку реестра HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\MiniNT.
  • Ошибка DISM Error 87: проверьте правильно написания команды, убедитесь что вы используете версию DISM для вашей версии Windows (обычно бывает при загрузке через WinPE/WinRE).

Утилита DISM пишет подробный журнал сканирования и восстановления системных файлов в файл
C:\Windows\Logs\DISM\dism.log
.

После восстановления хранилища компонентов вы можете запустить утилиту проверки системных файлов
sfc /scannow
. Скорее всего она успешно восстановит поврежденные файлы:

Программа защиты ресурсов Windows обнаружила поврежденные файлы и успешно их восстановила. 
Windows Resource Protection found corrupt files and successfully repaired them.

sfc /scannow Программа защиты ресурсов Windows обнаружила поврежденные файлы и успешно их восстановила

Если все системные файлы целы, появится сообщение:

Windows Resource Protection did not find any integrity violations

Восстановление образа Windows с помощью PowerShell

В версии PowerShell в Windows 10/11 и Windows Server 2022/2019 есть аналоги рассмотренных выше команд DISM. Для сканирования хранилища компонентов и поиска повреждений в образе выполните:

Repair-WindowsImage -Online –ScanHealth

Repair-WindowsImage -Online –ScanHealth ImageHealth State: Healthy

Если ошибок в хранилище компонентов не обнаружено, появится сообщение:

ImageHealth State: Healthy

Для запуска восстановления системных компонентов и файлов наберите:


Repair-WindowsImage -Online -RestoreHealth

При отсутствии доступа к интернету эта команда может зависнуть в процессе восстановления образа. Вы можете восстановить системные компоненты из локальной копии образа Windows в виде WIM/ESD файла, скопированного с установочного ISO образа Windows 10 (здесь также нужно указать индекс версии Windows в wim файле в качестве источника восстановления):

Repair-WindowsImage -Online -RestoreHealth -Source D:\sources\install.wim:5 –LimitAccess

DISM: восстановление поврежденного хранилища компонентов, если Windows не загружается

Если Windows не загружается корректно, вы можете выполнить проверку и исправление системных файлов в оффлайн режиме.

  1. Для этого загрузите компьютер с установочного образа Windows (проще всего создать загрузочную USB флешку с Windows 10/11 с помощью Media Creation Tool) и на экране начала установки нажмите
    Shift + F10
  2. Чтобы разобраться с буквами дисков, назначенных в среде WinPE, выполните команду
    diskpart
    ->
    list vol
    (в моем примере диску, на котором установлена Windows присвоена буква C:\, эту букву я буду использовать в следующих командах);

    diskpart получить буквы дисков

  3. Проверим системные файлы и исправим поврежденные файлы командой:
    sfc /scannow /offbootdir=C:\ /offwindir=C:\Windows

    sfc /scannow /offbootdir=C:\ /offwindir=C:\Windows

  4. Для исправления хранилища компонентов используйте следующую команду (в качестве источника для восстановления компонентов мы используем WIM файл с установочным образом Windows 10, с которого мы загрузили компьютер):
    Dism /image:C:\ /Cleanup-Image /RestoreHealth /Source:WIM:D:\sources\install.wim:6

    Dism /image /RestoreHealth offline в windows 10

  5. Если на целевом диске недостаточно места, то для извлечения временных файлов нам понадобится отдельный диск достаточного размера, например F:\, на котором нужно создать пустой каталог:
    mkdir f:\scratch
    и запустить восстановление хранилища компонентов командой:
    Dism /image:C:\ /Cleanup-Image /RestoreHealth /Source:D:\sources\install.wim /ScratchDir:F:\scratch

Совет. Другие полезные команды DISM, которые должен знать администратор:

  • DISM /Add-Package
    – установка MSU/CAB файлов обновлений, интеграция обновлений в образ Windows;
  • DISM /Get-Drivers
    – получение списка установленных драйверов;
  • DISM /Add-Driver
    – добавление драйверов в образ;
  • DISM /Export-Driver
    – экспорт установленных драйверов Windows;
  • DISM /Add-Capability
    – установка дополнительных компонентов Windows через Features on Demand (например, RSAT, сервер OpenSSH или ssh клиент Windows;
  • DISM /Enable-Features
    и
    /Disable-Features
    – включение и отключение компонентов Windows (например, протокола SMBv1),
  • DISM /online /Cleanup-Image /StartComponentCleanup
    – очистка хранилища компонентов и удаление старых версий компонентов (папки WinSxS);
  • DISM /set-edition
    – конвертирование ознакомительной редакции Windows на полную без переустановки.

Проверка целостности системных файлов Windows 10 может пригодиться в том случае, если у вас есть основания полагать, что такие файлы были повреждены или же возникли подозрения о том, что какая-либо программа могла изменить системные файлы операционной системы.

В Windows 10 присутствует два инструмента для проверки целостности защищенных системных файлов и их автоматического восстановления при обнаружении повреждений — SFC.exe и DISM.exe, а также команда Repair-WindowsImage для Windows PowerShell (использующая DISM для работы). Вторая утилита служит дополнением первой, в случае, если SFC не удается восстановить поврежденные файлы.

Примечание: описываемые в инструкции действия безопасны, однако, в том случае, если до этого вы проделывали какие-либо операции, связанные с заменой или изменением системных файлов (например, для возможности установки сторонних тем и т.п.), в результате восстановления системных файлов, эти изменения будут отменены.

Использование SFC для проверки целостности и исправления системных файлов Windows 10

Многим пользователям знакома команда проверки целостности системных файлов sfc /scannow которая автоматически проверяет и исправляет защищенные системные файлы Windows 10.

Для запуска команды стандартно используется командная строка, запущенная от имени администратора (запустить командную строку от администратора в Windows 10 можно, введя «Командная строка» в поиске в панели задач, затем — правый клик по найденному результату — Запуск от имени администратора), вводим в нее sfc /scannow и нажимаем Enter.

После ввода команды, начнется проверка системы, по результатам которой найденные ошибки целостности, которые можно исправить (о том, какие нельзя — далее) будут автоматически исправлены с сообщением «Программа защиты ресурсов Windows обнаружила поврежденные файлы и успешно их восстановила», а в случае их отсутствия вы получите сообщение о том, что «Защита ресурсов Windows не обнаружила нарушений целостности».

Проверка целостности с помощью sfc scannow

Также имеется возможность проверить целостность конкретного системного файла, для этого можно использовать команду

sfc /scanfile="путь_к_файлу"

Однако при использовании команды есть один нюанс: SFC не может исправить ошибки целостности для тех системных файлов, которые используются в настоящий момент времени. Чтобы решить проблему, можно запустить SFC через командную строку в среде восстановления Windows 10.

Запуск проверки целостности Windows 10 с помощью SFC в среде восстановления

Для того, чтобы загрузиться в среде восстановления Windows 10, вы можете использовать следующие способы:

  1. Зайти в Параметры — Обновление и безопасность — Восстановление — Особые варианты загрузки — Перезагрузить сейчас. (Если пункт отсутствует, то вы можете также использовать такой метод: на экране входа в систему, кликните по значку «вкл» справа внизу, а затем, удерживая Shift, нажмите «Перезагрузка»).
  2. Загрузиться с заранее созданного диска восстановления Windows.
  3. Загрузиться с установочного диска или загрузочной флешки с дистрибутивом Windows 10, а в программе установки, на экране после выбора языка, слева внизу выбрать «Восстановление системы».
    Запуск командной строки в режиме восстановления

  4. После этого, зайдите в «Поиск и устранение неисправностей» — «Дополнительные параметры» — «Командная строка» (в случае если вы использовали первый из указанных выше способов, вам также потребуется ввести пароль администратора Windows 10). В командной строке по порядку используйте следующие команды:
  5. diskpart
  6. list volume
  7. exit
  8. sfc /scannow /offbootdir=C:\ /offwindir=C:\Windows (где C — раздел с установленной системой, а C:\Windows — путь к папке Windows 10, у вас буквы могут отличаться). 
    Оффлайн-сканирование sfc /scannow

  9. Запустится сканирование целостности системных файлов операционной системы, при этом в этот раз команде SFC будет доступно восстановление всех файлов, при условии, что не повреждено хранилище ресурсов Windows.

Сканирование может продолжаться в течение значительного времени — пока мигает указатель подчеркивания, ваш компьютер или ноутбук не завис. По завершении закройте командную строку и перезагрузите компьютер в обычном режиме.

Восстановление хранилища компонентов Windows 10 с помощью DISM.exe

Утилита для развертывания и обслуживания образов Windows DISM.exe позволяет выявить и исправить те проблемы с хранилищем системных компонентов Windows 10, откуда при проверке и исправлении целостности системных файлов копируются оригинальные их версии. Это может быть полезным в тех ситуациях, когда защита ресурсов Windows не может выполнить восстановление файлов, несмотря на найденные повреждения. В этом случае сценарий будет следующим: восстанавливаем хранилище компонентов, а после этого снова прибегаем к использованию sfc /scannow.

Для использования DISM.exe, запустите командную строку от имени администратора. После чего можно использовать следующие команды:

Примечание: в случае, если команда восстановления хранилища компонентов не работает по той или иной причине, вы можете использовать файл install.wim (или esd) со смонтированного ISO образа Windows 10 (Как скачать Windows 10 ISO с сайта Microsoft) в качестве источника файлов, требующих восстановления (содержимое образа должно соответствовать установленной системе). Сделать это можно с помощью команды:

dism /Online /Cleanup-Image /RestoreHealth /Source:wim:путь_к_файлу_wim:1 /limitaccess

Вместо .wim можно использовать файл .esd тем же образом, заменив в команде все wim на esd.

При использовании указанных команд, журнал выполненных действий сохраняется в Windows\Logs\CBS\CBS.log и Windows\Logs\DISM\dism.log.

DISM.exe также можно использовать в Windows PowerShell, запущенном от имени администратора (запустить можно из меню правого клика по кнопке Пуск) с помощью команды Repair-WindowsImage. Примеры команд:

  • Repair-WindowsImage -Online -ScanHealth — проверка наличия повреждений системных файлов.
  • Repair-WindowsImage -Online -RestoreHealth — проверка и исправление повреждений.

Дополнительные методы восстановления хранилища компонентов, если описанные выше не срабатывают: Восстановление хранилища компонентов Windows 10.

Как видите, проверка целостности файлов в Windows 10 — не такая уж и сложная задача, которая порой может помочь исправить самые разные проблемы с ОС. Если не смогла, возможно, вам поможет что-то из вариантов в инструкции Восстановление Windows 10.

Как проверить целостность системных файлов Windows 10 — видео

Также предлагаю ознакомиться с видео, где использование основных команд проверки целостности показано наглядно с некоторыми пояснениями.

Дополнительная информация

Если sfc /scannow сообщает о том, что защите системы не удалось выполнить восстановление системных файлов, а восстановление хранилища компонентов (с последующим повторным запуском sfc) не помогло решить проблему, вы можете просмотреть, какие именно системные файлы были повреждены, обратившись к журналу CBS.log. Для того, чтобы экспортировать нужные сведения из журнала в текстовый файл sfc на рабочем столе, используйте команду:

findstr /c:"[SR]" %windir%\Logs\CBS\CBS.log > "%userprofile%\Desktop\sfc.txt"

Также, по некоторым отзывам, проверка целостности с помощью SFC в Windows 10 может обнаруживать повреждения сразу после установки обновления с новой сборкой системы (без возможности исправить их, не установив новую сборку «начисто»), а также для некоторых версий драйверов видеокарт (в данном случае ошибка находится для файла opencl.dll. Если что-то из этих вариантов случилось и у вас, возможно, не следует предпринимать никаких действий.

SFC full form is System File checker and the deployment of its command refers to starts scanning promptly to rescue Windows from issues. DISM or Deployment Image Servicing and Management remediates Windows PE Environment and for this, it takes the help of various kinds of files.

CHKDSK is also a tool that investigates flaws on a disk and its meaning is Check Disk. Let’s explain each of the three System troubleshooting tools and how to use them one by one in the subsequent paragraphs. See: What is SFC (System File Checker) and How to Run in Windows 11 or 10?

SFC /Scannow, DISM.Exe, CHKDSK Windows 10 and 11

Here is how to run SFC /Scannow, DISM.Exe, and CHKDSK in Windows 11 and 10

SFC /Scannow Windows 11 or 10

The first utility of SFC /Scannow, DISM.Exe, CHKDSK Windows 10 or 11 is sfc /scannow. It is a significant built-in tool that digs out the messed up files and traces out faulty changes in files.

The main function of this utility is to Scan thoroughly and confirm the system file’s edition.

SFC identifies the system file if anyone tampers and brings back the file’s appropriate version from %systemroot%\system32\dllcache. This original file supersedes the corrupt one with the help of SFC.

When you encounter any type of error on your System, the first universal suggestion is to run SFC /scannow. The mess up may be buggy Windows system, for instance, BSOD, or application crashing, etc.

How to Run SFC Command

Step 1 – Press Windows and S keys.

Step 2 – Type cmd.exe.

Step 3 – Select “Run as administrator”.

Step 4 – Write the following code and hit Enter.

sfc /scannow

Step 5 – The command will start working and show the status in real time so here you need to wait patiently.

SFC Report

After the verification is 100% complete, you may witness one of the below notes –

1. Windows Resource Protection did not find any integrity violations

This note indicates that there are no lost or distorted files detected on your system.

2. Windows Resource Protection could not perform the requested operation

If you witness this error, run SFC in safe mode, and confirm that underneath %WinDir%\WinSxS\Temp, PendingDeletes, and PendingRenames folders exist.

3. Windows Resource Protection found corrupt files and successfully repaired them. Details are included in the CBS.Log %WinDir%\Logs\CBS\CBS.log.

All the necessary actions are taken into account and thus, all the issues are solved.

4. Windows Resource Protection found corrupt files but was unable to fix some of them. Details are included in the CBS.Log %WinDir%\Logs\CBS\CBS.log.

Many times SFC repairs and handles the mess up, but all the time it is not possible. In these cases, you should proceed according to the SFC report.

How to Run SFC /SCANNOW from Desktop in Windows 11 or 10

DISM or Deployment Image Servicing and Management

The second tool of SFC /Scannow, DISM.Exe, CHKDSK Windows 10 or 11 is DISM. Whenever you come across flaws like BSOD or applications crashing, it refers to the corruption of files. Under those circumstances, two functions can settle down the mess and one you regularly use is SFC command. However, in some severe cases, SFC fails to resolve the issues, and this is when DISM comes into the scenario.

Deployment Image & Servicing Management or commonly known as DISM is the tool that settles down component store falsification. This falsification intercepts SFC from operating accurately.

However, this utility is also capable of rectifying issues and handling Windows image. In addition, it can also manage Windows Recovery Environment, Windows Setup, and Windows PE.

DISM takes the assistance of three main options to rectify the Windows Image troubles on your machine. These equipment are entitled as CheckHealth, ScanHealth, and RestoreHealth respectively.

Use DISM with CheckHealth Option

In order to detect the presence of corruption, /CheckHealth switch is used along with DISM. It will only see if corruption exists, but it does not rectify it.

Step 1 – First of all, click on Start.

Step 2 – Type cmd.

Step 3 – Then press Ctrl + Shift + Enter on the keyboard.

Step 4 – Input this piece of code and to execute its duty hit Enter

DISM /Online /Cleanup-Image /CheckHealth

Use DISM with ScanHealth

To examine the Windows Image for any glitcches, execute DISM command with the /ScanHealth switch. Well, this command line might take a few minutes to complete the process.

Step 1 – Click on Search.

Step 2 – Type cmd and select Run as administrator.

Step 3 – Write down the following code and press Enter

DISM /Online /Cleanup-Image /ScanHealth

Use DISM with RestoreHealth

To examine with Windows Image for existing sufferings and rectify it, you should employ DISM command with the /RestoreHealth switch.

Step 1 – Open command prompt as administrator.

Step 2 – Copy this command, paste it, and press “Enter” to execute –

DISM /Online /Cleanup-Image /RestoreHealth

Step 3 – Allow it to perform the scan accurately and completely and it may take more than 10 minutes to finish. And if you see that the scan got stuck at around 20%, don’t worry as it is a normal phenomenon.

Step 4 – Once the DISM scan is over, reboot the machine.

What is DISM in Windows 10 (Deployment Image Servicing and Management)?

CHKDSK Command

The third and final pillar of SFC /Scannow, DISM.Exe, CHKDSK Windows 11 or 10 is DISM. This is another repair utility that Microsoft contributes for hard disk scanning and repairing. Users popularly know it as Chkdsk aka Check Disk. People commonly run this tool to inspect their faulty drives and rectify the issues in them if required.

How to Use CHKDSK Command

Step 1 – First of all, launch the Elevated Command prompt using either of the ways.

Step 2 –If you see a UAC prompt, agree by clicking on Yes.

Step 3 – The format of the command line is similar to – chkdsk [Drive:] [parameters]

Step 4 –chkdsk command exhibits the disk’s status but doesn’t rectify errors from a volume. Hence, after the drive letter, write the following parameters – /f /r /x

The parameter f directs CHKDSK to fix the errors that it will discover on the volume.

The parameter r instructs CHKDSK to trace out the poor sections in the volume and retrieve the readable data.

The parameter x compels the volume to dismount before the commencement of the process.

Step 5 – So, the entire command will be like this – chkdsk [Drive:] [parameters]. After input of the drive letter and parameters, the command will look like this

chkdsk C: /f /r /x

Step 6 – So type this command and press ‘Enter’.

How to Check Faulty Drives with Chkdsk in Windows 10

Note – Noteworthy is CHKDSK requires to lock the drive if the drive holds the System files. If the drive doesn’t contain an operating system or it’s external, then command starts to execute within no time. When you type the command and execute it will ask to scan the disk before the boot of the machine. Hence, write y aka yes, and reboot the machine. The command will begin its impact prior to the Operating System loads.

In this manner, SFC /Scannow, DISM.Exe, CHKDSK Windows 11 or 10 play a significant role to troubleshoot mess up.

Methods:
SFC /Scannow Windows 11 or 10
DISM or Deployment Image Servicing and Management
CHKDSK Command

That’s all!!

Windows System Files can get corrupt due to many reasons such as incomplete Windows Update, improper shutdown, virus or malware attacks, etc, Also, a system crash or a bad sector on your hard disk can lead to corrupt files, which can prove to be deadly in the long run. So, in this article, we will discuss how to repair system files Windows 10 and run DISM & SFC scannow repair tools. Read and follow the upcoming steps carefully to repair any corrupted file on your system.

How to Repair System Files on Windows 10

If you have any corrupt system files or configuration files on your PC, you will face all sorts of error codes and issues. These files lead to the malfunction of the Operating System, and you will not be able to perform tasks on your system. Read below to learn to run SFC (System File Checker) and DISM (Deployment Image Servicing and Management) utilities on your system to repair system files on Windows 10.

Note: It is advisable to run the DISM tool before executing SFC commands. The internal files from the server will be downloaded by running DISM commands and the SFC commands will replace the corrupt files with new ones.

Method I: Run DISM Tool

Here is how to repair system files on Windows 10.

Note: You must have a working internet connection to execute DISM commands properly.

1. Hit the Windows key, type Command Prompt and click on Run as administrator as depicted below.

run command prompt as administrator. How to run sfc scannow repair command

2. Click Yes in User Account Control Prompt to continue.

click on Yes in user account control

3. Type the given commands and hit the Enter key after each command.

dism.exe /Online /cleanup-image /scanhealth

DISM.exe Online Cleanup-image Scanhealth DISM.exe Online Cleanup-image Restorehealth DISM.exe Online Cleanup-image startcomponentcleanup. How to Repair System Files on Windows 10

dism.exe /Online /cleanup-image /startcomponentcleanup
dism.exe /Online /cleanup-image /restorehealth

run dism command after running sfc scannow repair command

4. Wait for the process to run successfully and close the window. Then, run SFC scannow repair tool as detailed below.

Also Read: How to Check Disk for Errors Using chkdsk

Method II: Run SFC scannow Command

Follow these steps to repair system files in Windows 10.

1. Launch Command Prompt with administrative privileges as earlier.

2. Type sfc /scannow and press Enter key to run the System File Checker scan as depicted below.

sfc scannow repair command

Note: A system scan will be initiated and it will take a couple of minutes to finish. Meanwhile, you can continue performing other activities but be mindful of not accidentally closing the window.

3. After completing the scan, it will show either of these messages:

  • Windows Resource Protection did not find any integrity violations.
  • Windows Resource Protection could not perform the requested operation.
  • Windows Resource Protection found corrupt files and successfully repaired them.
  • Windows Resource Protection found corrupt files but was unable to fix some of them.

4. Once the scan is finished and you receive messages 1 or 3, restart your PC.

Recommended:

  • How to Disable VPN and Proxy on Windows 10
  • Fix DISM Error 87 in Windows 10
  • Fix Windows 10 Blue Screen Error 

This was the method explaining how to repair system files in Windows 10 with SFC scannow repair & DISM tools. This method can also be used to fix corrupted files on Windows 7. Feel free to reach out to us with your queries and suggestions via the comments section below. 

Понравилась статья? Поделить с друзьями:
0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии
  • Соединение с телефоном windows 10
  • Canon lpb2900b драйвер windows 10
  • Прога для удаления windows defender
  • Как узнать какая windows шла с ноутбуком
  • Код события 1002 windows 10