How to fix Windows 10 image with DISM
For example, you can use DISM to fix Windows 10 Component store error (Windows core feature stores all operating system-related system files grouped by component and as hard links) when the command sfc / scannow cannot repair corrupted or modified files due to the corrupted Component store.
The DISM / Cleanup-Image tool saves its log files to the following file locations.
C:WindowsLogsCBSCBS.log C:WindowsLogsDISMdism.log
This article will guide you how to perform Inbox Corruption Repair with DISM / Cleanup-Image tool to fix Component store error on Windows 10.
Note: You must be logged in as an administrator to be able to perform Inbox Corruption Repair with the Deployment Imaging and Servicing Management (DISM) tool.
1. Run the DISM / Cleanup-Image tool from the Command Prompt
Step 1. Open Command Prompt as admin.
Step 2. Perform Step 3, Step 4, Step 5 (recommended), Step 6 or Step 7 below for the DISM command you want to use.
Step 3 . Use the / CheckHealth command
You only use the / CheckHealth command to check that the flagged image is corrupted due to an unsuccessful and repairable process. This is a quick way to see if the file is corrupted or not. This command does not correct errors or create records. And quick run time command.
In the Command Prompt, copy and paste the command below, then press Enter and go to Step 8.
Dism /Online /Cleanup-Image /CheckHealth
Step 4. Use the / ScanHealth command
Use the / ScanHealth command to scan the image for Component store errors. Nor does this command fix any errors. It only checks component store errors and writes errors to the log file. This command may take 5 to 10 minutes to complete.
In the Command Prompt, copy and paste the command below, then press Enter and go to Step 8.
Dism /Online /Cleanup-Image /ScanHealth
Step 5 . Use the / RestoreHealth command
Use the / RestoreHealth command to scan the image for Component Store errors, automatically repair them, and write them to a log file. This command may take 10 to 15 minutes or even several hours to complete depending on the level of error.
You need an internet connection to run this command. If the order didn't succeed, you can follow Step 6 or Step 7 below.
In the Command Prompt, copy and paste the command below, then press Enter and go to Step 8.
Dism /Online /Cleanup-Image /RestoreHealth
Step 6 . Use the command / RestoreHealth / Source: wim
Use the command / RestoreHealth / Source: wim to locate the install.wim file which is the source of a good file version that can be used to fix errors. This process can take 10 to 15 minutes, even hours to complete depending on the level of error.
This command may be useful if Step 5 above cannot repair the Windows image. The install.wim file will be in the Sources folder of the mounted Windows 10 ISO file. If there is an install.esd file instead of the install.wim file, perform Step 7 instead of this step.
Locate the Windows 10 ISO file with install.wim in the sources directory of the mounted ISO file and the index number for the Windows 10 version using the command below in the Command Prompt as admin:
dism /get-wiminfo /wimfile::sourcesinstall.wim
Replace Drive Letter with the actual drive letter of the mounted ISO file.
In the Command Prompt, type the command below you want to use, then press Enter and go to Step 8.
Dism /Online /Cleanup-Image /RestoreHealth /Source:wim:Full Path to install.wim file:
Or to prevent DISM from using Windows Update for online images:
Dism /Online /Cleanup-Image /RestoreHealth /Source:wim:Full Path to install.wim file: /limitaccess
Note : in the above command is the index number of your system version of Windows 10.
Step 7. Use the command / RestoreHealth / Source: esd
Use the / RestoreHealth / Source: esd command to locate the install.esd file as the source of a good file version that can be used to fix errors. This process may take more than a dozen minutes to several hours depending on the level of error.
Locate the Windows 10 ISO file with install.esd in the sources directory of the mounted ISO file and the index number for the Windows 10 version using the command below in the Command Prompt as admin:
dism /get-wiminfo /wimfile::sourcesinstall.esd
Replace Drive Letter with the actual drive letter of the mounted ISO file.
In the Command Prompt type the following command and press Enter , then go to Step 8.
Dism /Online /Cleanup-Image /RestoreHealth /Source:esd:Full Path to install.esd file:
Or to prevent DISM from using Windows Update for online images:
Dism /Online /Cleanup-Image /RestoreHealth /Source:esd:Full Path to install.esd file: /limitaccess
in the above command is the index number of the version of Windows 10 on your system.
Step 8 . If you follow Step 5, Step 6 or Step 7, you should restart the computer.
2. Run the DISM / Cleanup-Image tool in PowerShell
Step 1 . Open PowerShell as admin.
Step 2 . Execute Step 3, Step 4, Step 5, Step 6, or Step 7 to execute the DISM command you want to use.
Step 3 . Use the / CheckHealth command
In PowerShell, enter the following command, press Enter and go to Step 8.
Repair-WindowsImage -Online -CheckHealth
Step 4 . Use the / ScanHealth command
In PowerShell, enter the following command and press Enter , go to Step 8.
Repair-WindowsImage -Online -ScanHealth
Step 5 . Use the / RestoreHealth command
In PowerShell, enter the following command and press Enter , go to Step 8.
Repair-WindowsImage -Online -RestoreHealth
Step 6 . Use the command / RestoreHealth / Source: wim
Similarly, you need to identify the ISO Window 10 file with install.esd and find the index number for Windows 10 version.
Paste the following command into PowerShell:
Repair-WindowsImage -Online -RestoreHealth -Source "Full Path to install.wim file:"
Or to prevent DISM from using Windows Update for online images.
Repair-WindowsImage -Online -RestoreHealth -Source "Full Path to install.wim file:" -LimitAccess
Replace in the above command with a real index number.
Step 7 . Use the command / RestoreHealth / Source: esd
Paste the following command into PowerShell and press Enter .
Repair-WindowsImage -Online -RestoreHealth -Source "Full Path to install.esd file:"
Or to prevent DISM from using Windows Update for online images.
Repair-WindowsImage -Online -RestoreHealth -Source "Full Path to install.esd file:" -LimitAccess
Step 8 . Restart the computer after performing Steps 5, 6, and Step 7.
I wish you successful implementation!
You should read it
- 4 ways to fix DISM error 87 on Windows 10/11
- Difference between CHKDSK, SFC and DISM in Windows 10
- Create private cloud with Hyper-V (Part 4)
- How to fix Windows 8 error not connected to Windows Store
- Create private cloud with Hyper-V (Part 2)
- Windows Store on Windows 10 is faulty, this is a fix
- Use Daemon Tools to create ISO Image in Win 7
- How to fix windows 10 errors
May be interested
- How to open the Photos app on Windows 10windows 10 introduces the photos app to easily view, browse and organize digital photos on your device. this article will show you some ways to open the photos app on windows 10.
- Learn about Windows 10X operating system for dual screen deviceswindows 10x is a new version of windows 10 designed for dual-screen devices like microsoft's upcoming surface neo, which will be available by 2020.
- How to create a local account while setting up Windows 10the option to create a local account has been hidden, not even available on windows 10 home while connected to the internet. this article will guide you how to create a local account while setting up windows 10.
- How to fix DistributedCOM Error 10016 in Windows 10the distributedcom error 10016 error is a common windows problem found on almost every windows version since windows xp. in fact, the error dcom error 10016 is not really dangerous.
- Cause the virtual machine is slow and how to fix itare you experiencing a slow virtual machine problem? read the following article to learn how to fix the problem.
- What is the USO Core Worker Process or usocoreworker.exe? Are they viruses?uso core worker process. starting with windows 10 version 1903, many users noticed some strange processes running on the system when checking task manager such as usocoreworker.exe, usoclient.exe or uso core worker process.