Для проверки целостности системных файлов и восстановления поврежденных файлов (библиотек) компонентов в 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.
В этом случае вам нужно попробовать восстановить хранилище компонентов вашего образа 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 как поврежденный и возможно ли исправить его.
В этом примере команда вернула, что с образом все хорошо:
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.
В 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 /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).
<
Во всех этих случаях вы можете использовать альтернативные средства получения оригинальных файлов хранилища компонентов. Это может быть:
- Установочный диск/флешка/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
Выведите список доступных версий 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
Если при запуске появляется
- Ошибка 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.
Если все системные файлы целы, появится сообщение:
Windows Resource Protection did not find any integrity violations
Восстановление образа Windows с помощью PowerShell
В версии PowerShell в Windows 10/11 и Windows Server 2022/2019 есть аналоги рассмотренных выше команд DISM. Для сканирования хранилища компонентов и поиска повреждений в образе выполните:
Repair-WindowsImage -Online –ScanHealth
Если ошибок в хранилище компонентов не обнаружено, появится сообщение:
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 не загружается корректно, вы можете выполнить проверку и исправление системных файлов в оффлайн режиме.
- Для этого загрузите компьютер с установочного образа Windows (проще всего создать загрузочную USB флешку с Windows 10/11 с помощью Media Creation Tool) и на экране начала установки нажмите
Shift + F10
- Чтобы разобраться с буквами дисков, назначенных в среде WinPE, выполните команду
diskpart
->
list vol
(в моем примере диску, на котором установлена Windows присвоена буква C:\, эту букву я буду использовать в следующих командах); - Проверим системные файлы и исправим поврежденные файлы командой:
sfc /scannow /offbootdir=C:\ /offwindir=C:\Windows
- Для исправления хранилища компонентов используйте следующую команду (в качестве источника для восстановления компонентов мы используем WIM файл с установочным образом Windows 10, с которого мы загрузили компьютер):
Dism /image:C:\ /Cleanup-Image /RestoreHealth /Source:WIM:D:\sources\install.wim:6
- Если на целевом диске недостаточно места, то для извлечения временных файлов нам понадобится отдельный диск достаточного размера, например 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 на полную без переустановки.
-
Home
-
News
- How To Use The DISM Restore Health Command To Repair Windows
By Sarah |
Last Updated
The DISM is command-line tool built in Windows to help users scan the system for corruptions and repair the image or system files correspondingly. What can the DISM tool do for you? How to use the DISM command to repair your image or system files? All these content will be covered later on this page; please read them carefully.
The SFC and DISM are two useful tools built in Windows systems for helping users scan system files and image for corruption or any other changes. Then, they will repair the problems it has found automatically: replacing the corrupted file with the correct one, repairing the underlying Windows system image, etc.
However, the SFC commands may fail sometimes, so you should turn to the DISM commands instead since they are more effective. On this page, let’s begin with the introduction to DISM and the basic DISM restore health commands.
Tip: Please be careful enough while you’re doing the DISM repair; any mistakes during this process may cause terrible results, such as losing valuable data. If that really happens to you, go to get the following recovery software or pay a visit to the home page to find more practical tools.
MiniTool Power Data Recovery TrialClick to Download100%Clean & Safe
DISM Restore Health & DISM Check Health
What Is DISM
The full name of DISM is Deployment Image Servicing and Management. DISM is a command-line tool designed for users to service, prepare, modify, and repair system images that are used for Windows Setup, Windows PE, and Windows RE (Windows Recovery Environment).
DISM.exe, also known as a DISM Image Servicing Utility file, will always target your chosen area when it’s running on your PC. It’s necessary to introduce the common DISM command switches before talking about how to use the Windows DISM tool.
How to fix DISM “the source files could not be found” in Windows 10?
DISM.exe /Online /Cleanup-Image /Restorehealth
DISM.exe cannot foresee a path unless you specify a switch in the command. What are the common DISM.exe switches and what are the functions of them?
DISM Restore Health Switches: DISM /Online /Cleanup-Image /Restorehealth
Image switch and Online switch
If you add a /Image switch to a DISM.exe command, the path will be restricted to the root directory of an offline Windows image or virtual hard disk; it’s available for DISM offline repair Windows 10. However, if you specify a /Online switch (DISM.exe /Online), the command will target files for your operating system online instead of an offline image.
Cleanup-Image switch
By giving a Cleanup-Image switch (DISM.exe /Online /Cleanup-Image), you can ask the DISM tool to do two things:
- Target the running operating system.
- Clean and recover operations and undertakings on the system.
Restorehealth switch
The Restorehealth switch in a DISM command tells the tool to scan the running operating system for corrupt files and attempt to repair them automatically.
DISM.exe /Online /Cleanup-Image /ScanHealth
DISM Check Health Switches: DISM /Online /Cleanup-Image /ScanHealth
The Online switch and Cleanup-Image switch in the DISM /Online /Cleanup-Image /ScanHealth command does the same work as mentioned in the DISM /Online /Cleanup-Image /Restorehealth command. Well, what will the ScanHealth switch do? Actually, it tells the Windows DISM tool to execute a progressive scan for finding problems in the operating system.
See what you can do if DISM /Online /Cleanup-image /Restorehealth is stuck.
How to Run DISM to Restore Health or Check Health
The following steps for DISM restore health or check health are executed on a Windows 10 computer.
Step 1: Run Command Prompt as Administrator
- Click on the Start button in the lower left corner. Also, you can press the Start key on the keyboard.
- Scroll down in the Start menu to find the Windows System folder.
- Expand the folder and right click on Command Prompt.
- Select More -> Run as administrator.
Step 2: Type Correct Command and Execute It
- To let DISM tool check the system for corruption and fix any problems it finds automatically, you should type DISM /Online /Cleanup-Image /RestoreHealth and press Enter.
- If you only want to perform a quick check, please type DISM /Online /Cleanup-Image /CheckHealth and press Enter.
- To perform a more advanced scan to check if your OS image has any problems, you should type DISM /Online /Cleanup-Image /ScanHealth and press Enter.
How to fix the problem when DISM failed on a Windows computer?
About The Author
Position: Columnist
Sarah has been working as an editor at MiniTool since she graduated from university. Sarah aims at helping users with their computer problems such as disk errors and data loss. She feels a sense of accomplishment to see that users get their issues fixed relying on her articles. Besides, she likes to make friends and listen to music after work.
Полезная команда в копилку системного администратора
dism /online /cleanup-image /restorehealth
Данная команда не только сканирует образ операционной системы на наличие ошибок, она может восстановить работоспособность системы путём загрузки недостающих библиотек из центра обновления Windows.
Рекомендуется использовать вместе и после sfc /scannow:
Средство проверки системных файлов Windows
Варианты использования
Сканирование на наличие повреждённых или отсутствие необходимых файлов системы:
dism /online /cleanup-image /scanhealth
Проверка состояния образа системы и наличия модификаций:
dism /online /cleanup-image /checkhealth
И, наконец, восстановление системы с использованием центра обновлений Windows. Проверьте, что у сервера есть Интернет.
dism /online /cleanup-image /restorehealth
Пример использования
Запускаем командную строку под администратором и выполняем команду.
Дополнительно
Вместо центра обновления Windows вы можете указать собственный источник для восстановления системы. Например:
dism /online /cleanup-image /restorehealth /source:D:\sources\install.wim
dism /online /cleanup-image /restorehealth /source:D:\sources\install.esd
Для запрета загрузки обновлений из центра обновления Windows:
dism /online /cleanup-image /restorehealth /source:D:\sources\install.wim /limitaccess
dism /online /cleanup-image /restorehealth /source:D:\sources\install.esd /limitaccess
dism /online /cleanup-image /restorehealth /limitaccess
Логи
Лог здесь: C:\Windows\Logs\CBS.log.
Ссылки
SFC (Failed to Repair) и DISM (Error 0x800f081f)
Всем привет! Сегодня мы более подробно рассмотрим варианты восстановления системы через встроенную утилиту DISM.exe, которая работает с хранилищем Windows. Смотрите, во всех версиях Windows есть специальное хранилище, откуда, копируются файлы, если они повреждены в установленной ОС. Обычно используется команда:
sfc /scannow
А вот DISM работает с этим самым хранилищем. В статье ниже я расскажу вам, что делать, если команда выше не срабатывает. Если говорить коротко, то нам нужно использовать специальные команды DISM, чтобы восстановить само хранилище. А уже потом мы будем запускать: sfc /scannow. Не будем тянуть и начнем.
ВНИМАНИЕ! Помните, что все эти команды работают только с правами администратора.
Содержание
- ШАГ 1: Используем DISM
- ШАГ 2: Стандартное восстановление
- Система не грузится и не запускается
- Видео
- Задать вопрос автору статьи
Сам программный модуль DISM работает с хранилищем системных компонентов. Именно оттуда идет загрузка при использовании метода восстановления системы: sfc /scannow. Но если само хранилище повреждено, то и стандартный метод не сработает. Поэтому нам сначала нужно запустить сканирование и восстановление, а уже потом sfc /scannow.
Запускаем командную строку с правами администратора. После этого вводим команду:
dism /Online /Cleanup-Image /ScanHealth
Обращаю ваше внимание, что команда только проверяет наличие поврежденных файлов в хранилище. Чтобы выполнить восстановление, используем:
dism /Online /Cleanup-Image /RestoreHealth
Есть еще одна команда, но её используют редко, так как она не запускает проверку, а всего лишь выводит данные о предыдущих сканированиях:
dism /Online /Cleanup-Image /CheckHealth
Можно аналогично запустить эти команды с помощью PowerShell:
Repair-WindowsImage -Online -ScanHealth – только сканирование.
Repair-WindowsImage -Online -RestoreHealth – сканирование и восстановление.
Бывает, такое, что данная команда не срабатывает. В таком случае вам нужно добыть где-то установочный образ или флешку с той же операционной системой. Далее делаем следующее:
Читаем – как создать загрузочную флешку с Windows.
- Вставляем флешку или монтируем образ.
Читаем – как смонтировать образ ISO.
- В образе или на флешке нас интересует файл:
install.wim или install.esd
- Запускаем ту же команду с некоторыми изменениями:
dism /Online /Cleanup-Image /RestoreHealth /Source:wim:полный путь к файлу:1 /limitaccess
ВНИМАНИЕ! Не забудьте вручную вписать полный путь к файлу install.wim или install.esd.
После использования команд DISM записываются лог-файлы с информацией о поврежденных и восстановленных файлах. Файлы находятся по пути:
C:\Windows\Logs\CBS\CBS.log
или
C:\Windows\Logs\DISM\dism.log
ШАГ 2: Стандартное восстановление
Давайте для начала попробуем стандартную команду восстановления. А уже потом будем «мудрить». Откройте командную строку с правами администратора и используйте команду:
sfc /scannow
ПРИМЕЧАНИЕ! Если ваша система не запускается и не грузится – переходим к следующей главе.
Начнется сканирование. Если в системе будут обнаружены какие-то поврежденные файлы, они будут восстановлены. Есть возможность отсканировать только один файл с помощью команды:
sfc /scanfile="полный путь к файлу"
Но я все же на вашем месте проверил бы всю систему. Как правило, эта стандартная команда срабатывает без каких-то либо проблем.
Система не грузится и не запускается
В таком случае мы, конечно, можем запустить средства восстановления через специальную среду восстановления, которую можно запустить с загрузочной флешки. Я уже подробно разбирал данную тему в нескольких статьях. Поэтому можете выбрать инструкцию для себя:
- Запуск sfc /scanfile через среду восстановления.
- Что делать, если система не загружается.
ПРИМЕЧАНИЕ! Скорее всего вам понадобится загрузочная флешка с нынешней системой.
На этом все, дорогие друзья портала WiFiGiD.RU. Пишите свои вопросы в комментариях. Всем добра и берегите себя.
Видео
(Image credit: Mauro Huculak)
Deployment Image Servicing and Management (DISM) is a command-line tool built into Windows 10 that allows network administrators to prepare, modify, and repair system images, including Windows Recovery Environment, Windows Setup, and Windows PE (WinPE). However, you can also use the tool with the local recovery image to fix most system problems.
When you try to fix a specific error, figure out why the computer stopped booting correctly, or resolve performance problems, the System File Checker (SFC) is one of the best to replace missing or corrupted system files using the recovery image. The only caveat with this approach is that if one or more system files in the local image are damaged, the SFC command won’t work. In this scenario, you can use the «install.wim» image file with DISM to repair the image and then use the SFC tool to fix the setup without reinstalling the operating system.
In this how-to guide, I will show you how, in 2025 and beyond, the DISM and SFC are the best tools for restoring a computer from a broken to a healthy working state without reinstallation.
Warning: The commands outlined in this guide are non-destructive, but since you will be making system changes, it is still recommended to create a temporary full backup before proceeding.
Recent updates
These instructions has been updated to ensure accuracy and reflect changes to the process in the operating system.
How to use DISM to repair image of Windows 10
The DISM command tool includes multiple features to repair a system image, including «CheckHealth,» «ScanHealth,» and «RestoreHealth,» and you want to use them in that order. Also, depending on the issue, you can use the «RestoreHealth» option to fix the locally available image using different source files.
DISM command with CheckHealth option
The «CheckHealth» option with the DISM determines any corruptions inside the local Windows 10 image. However, this option does not perform any sort of repair.
To check the image of Windows 10 for issues with DISM, use these steps:
All the latest news, reviews, and guides for Windows and Xbox diehards.
- Open Start.
- Search for Command Prompt, right-click the top result, and select the Run as administrator option.
- Type the following command to perform a quick check and press Enter: DISM /Online /Cleanup-Image /CheckHealth
Once you complete the steps, the DISM tool will run and verify any data corruption that may require fixing inside the local image.
DISM command with ScanHealth option
The «ScanHealth» option performs a more advanced scan to find out whether the image has any issues.
To check image problems with the «ScanHealth» option, use these steps:
- Open Start.
- Search for Command Prompt, right-click the top result, and select the Run as administrator option.
- Type the following command to perform an advanced DISM scan and press Enter: DISM /Online /Cleanup-Image /ScanHealth
After completing the steps, the scan may take some time to check whether the image needs fixing.
DISM command with RestoreHealth option
If the system image has problems, the «RestoreHealth» option scans and repairs common issues automatically.
To repair Windows 10 local image problems with DISM, use these steps:
- Open Start.
- Search for Command Prompt, right-click the top result, and select the Run as administrator option.
- Type the following command to repair the image and press Enter: DISM /Online /Cleanup-Image /RestoreHealth
- Quick note: It’s normal if the command appears stuck. After a few moments, the process will be completed successfully.
Once you complete the steps, the Deployment Image Servicing and Management tool will connect to the «Windows Update» servers to download and replace damaged files (if applicable).
Fix problems with DISM using install.wim image
The Deployment Image Servicing and Management commands typically don’t cause issues. However, if the tool finds problems replacing the damaged files or the computer doesn’t have an internet connection, you can use another image using the «Source» option. Usually, you can use an «install.wim» or «install.esd» file from another device, install media, or ISO file. You only need to ensure the files match the version, edition, and language of the version you are trying to fix.
Download Windows 10 ISO file
If you need another file source, use the Media Creation Tool to download a fresh copy of Windows 10.
To download the ISO file of Windows 10, use these steps:
- Open this Microsoft support website.
- Click the Download Now button.
- Double-click the MediaCreationTool_xxxx.exe file to launch the setup.
- Click the Accept button to agree to the terms.
- Select the «Create installation media (USB flash drive, DVD, or ISO file) for another PC» option.
- Click the Next button.
- Click the Next button again.
- Select the ISO file option.
- Click the Next button.
- Select the destination to store the Windows 10 ISO file.
- Click the Save button.
- Click the link to open the file location on File Explorer.
- Click the Finish button.
- Double-click the Windows.iso file to mount the image.
- Confirm the drive letter for the mount point of the ISO file under the «This PC» section.
After you complete the steps, continue with the DISM tool using the «Source» option to repair the image locally stored on the computer.
Fix Windows 10 recovery image
To run the Deployment Image Servicing and Management tool with an alternate source (install.wim) image, use these steps:
- Open Start.
- Search for Command Prompt, right-click the top result, and select the Run as administrator option.
- Type the following command to repair the image and press Enter: DISM /Online /Cleanup-Image /RestoreHealth /Source:E:\Sources\install.wim
In the command, replace «E» with the mount point drive letter on File Explorer.
- (Optional) Type the following command to limit the use of Windows Update and press Enter: DISM /Online /Cleanup-Image /RestoreHealth /Source:G\Sources\install.wim /LimitAccess
- (Optional) Type the following variant of the previous command to accomplish the same task and press Enter: DISM /Online /Cleanup-Image /RestoreHealth /Source:wim:G:\Sources\install.wim:1 /LimitAccess
In the command, change «G:\Sources,» for the path to the «install.wim» file.
Once you complete the steps, the command will scan and repair the problems using the «install.wim» file you specified as the alternative source.
Fix problems with DISM using ESD image
In case you have an encrypted «install.esd» image, it’s possible to use that image to repair the damaged system files on Windows 10.
To use DISM with an «install.esd» image file as the source to repair Windows 10, use these steps:
- Open Start.
- Search for Command Prompt, right-click the top result, and select the Run as administrator option.
- Type the following command to repair the image with an «install.esd» file and press Enter: DISM /Online /Cleanup-Image /RestoreHealth /Source:C:\ESD\Windows\sources\install.esd
In the command, change «C:\ESD\Windows\sources» with the path to the location of the «.esd» file (if different).
- (Optional) Type the following command to limit the use of Windows Update and press Enter: DISM /Online /Cleanup-Image /RestoreHealth /Source:C:\ESD\Windows\sources\install.esd /LimitAccess
- (Optional) Type the following variant of the previous command to accomplish the same task and press Enter: DISM /Online /Cleanup-Image /RestoreHealth /Source:esd:C:\ESD\Windows\sources\install.esd:1 /LimitAccess
- (Optional) Type the following command to use an install.esd file located in another drive and press Enter: DISM /Online /Cleanup-Image /RestoreHealth /Source:E:\Sources\install.esd
In the command, replace «E:\Sources» with the path to the location of the «install.esd» file.
After you complete the steps, the tool will repair the damaged files using the files included in the «install.esd» image.
Troubleshooting common errors
If the RestoreHealth command fails, depending on the error, you can try these fixes:
- Error 0x800f081f: The source files could not be found – You can resolve this error by running the DISM /Online /Cleanup-Image /RestoreHealth /Source:wim:D:\sources\install.wim:1 /LimitAccess command.
- Error 87: The parameter is incorrect – Check the command for typos and re-try it. Commands are case-insensitive, but spaces must be exact.
- DISM stuck at 20%, 40%, or 80% – Restart the computer and try again. It can also help run the chkdsk C: /f /r /x command to check for disk errors. However, before taking any actions, consider that sometimes, if the command appears stuck, it could also mean the tool is busy repairing the system.
- Error 0x800f0906: DISM fails to download files – This error indicates that the tool is having issues downloading files from Windows Update. In this case, ensure your internet connection is stable. Try using a local Windows installation source using the above steps.
You can also examine the command-line tool log file located at C:\WINDOWS\Logs\DISM\dism.log to find clues to determine the exact problem.
If you’re unable to get this DISM command working and the current setup has problems, you may want to consider resetting the computer to the factory default with the Reset this PC feature or by performing a clean installation of Windows 10.
How to run SFC to repair problems on Windows 10
The above steps are meant to repair issues with the system image, not the problems with the installation of Windows 10. After restoring the image to a healthy state, you can use the System File Checker command tool to repair the current setup of Windows 10.
To use the SFC command tool to repair system problems, use these steps:
- Open Start.
- Search for Command Prompt, right-click the top result, and select the Run as administrator option.
- Type the following command to repair the installation and press Enter: SFC /scannow
- Quick tip: If errors are found, you may want to run the command around three times to ensure that everything was fixed correctly.
Once you complete the steps, the System File Checker tool will repair the system files using the local image files, and the log files will be saved on «%windir%/Logs/CBS/CBS.log» and «%windir%\Logs\DISM\dism.log,» which you can view to get more details about the process.
You can use these instructions to learn more ways to use the SFC tool to fix problems on Windows 10.
More resources
For more helpful articles, coverage, and answers to common questions about Windows 10 and Windows 11, visit the following resources:
- Windows 11 on Windows Central — All you need to know
- Windows 10 on Windows Central — All you need to know
Mauro Huculak has been a Windows How-To Expert contributor for WindowsCentral.com for nearly a decade and has over 15 years of experience writing comprehensive guides. He also has an IT background and has achieved different professional certifications from Microsoft, Cisco, VMware, and CompTIA. He has been recognized as a Microsoft MVP for many years.