“I have a machine running Win10 that was fine. But it would not boot one day. I tried my normal steps (eg: safe mode, system restore, sfc, bootrec) without success.” And then, I tried DISM in the offline mode and failed again. The command I used was:
DISM.exe /Image:d:\ /Cleanup-image /Restorehealth /Source:d:\w10\install.wim /LimitAccess /scratchdir:d:\scratch
D: is the drive of Windows installation. And I want to know if there is syntax wrong or how to use DISM offline repair Wiindows 10."
In my opinion, there is a possibility that DISM cannot recognize your source option. You need to mount the ISO you download from website first and then try this command again. See below and follow the detailed steps to use DISM offline repair Windows 10.
How to use DISM offline repair Windows 10?
In general, DISM will download necessary files from Windows Update to replace the bad file. But, sometimes, DISM may fail to repair the corrupted image. In this case, you can try DISM command-line with source option.
Before you start
In order to restore the offline image successfully, you need to confirm somethings in the follow.
You need a copy of install.win file from either another computer, a Windows 10 installation media, or the Windows 10 ISO files. It contains all the files DISM may use during the repair process.
The install.wim file must be of the same version, edition as well as language of the operating system you are using.
You need to confirm the location of the install.wim file. The install.wim file is in the source folder of a windows installation media. Sometimes, DISM may tell you a message like “Can’t find source files”. Thus, you’d better mount the file and locate it.
DISM is case sensitive. For example: if you type Install.win as install.wim, DISM will fail.
You need to make sure that the install.wim file is not in read-only mode, or DISM will fail to repair image.
Step by step guide: perform DISM offline repair in Windows 10
Step 1. Download Windows 10 1809 ISO from website and mount the ISO in your computer. Then, you can extra the file and acess it.
1.1 Right-click the ISO files and select Mount.
1.2 Go to This PC and confirm the drive letter of the mounted ISO file. If the drive letter is F:, you need to set the source path as F:\source
Step 2. Press WIN + X and select Command Prompt(Admin) in the search result list.
Step 3. Type the following commands and hit Enter.
DISM /Online /Cleanup-Image /StartComponentCleanup
DISM /Online /Cleanup-Image /AnalyzeComponentStore
DISM /Online /Cleanup-Image /RestoreHealth /source:F:\Sources\Install.wim:1 /LimitAccess
Now, DISM will start to repair Windows image with the known good files from install.wim file. But it's difficult for most users to use command line with multiple syntax. And it may result some serious problem owing to operation error. Therefore, it's suggested to create a system image in Windows 10 to prevent system failure.
Create a system image in Windows 10 just in case
Best free backup and restore software is indispensable for users who want to create a system image to prevent unexpected computer error. Here I strongly recommend you AOMEI Backupper Standard. Thanks to its clean interface and user-friendly design, all the users even novices unstandard and use it software smoothly.
It supports full backup solutions, including system backup, disk backup, partition backup and file backup. Also, it allows you to schedule backup in daily/weekly/monthly, so you will always have the laste backup. More so, it works well in multiple backup storage and you can choose one depending on your own situations, for example, the internal disk, external hard drive, USB disk, cloud drive, network share/NAS etc.
In addition, the advanced version still supports many useful features that make the backup task simple and efficient, such as, event triggers, USB plug in, scheduled differential backup, backup scheme etc. If needed, please upgrade to AOMEI Backupper Professional at least.
Now, let's get started to backup system in simple steps. If you want to backup entire disk, specific partitions or files, you can try "Disk Backup", "Partition Backup" and "File Backup".
Step 1. Download the best free backup software - AOMEI Backupper, install and launch it. Then, you will see its deed-blue screen.
Step 2. Click Backup and System Backup in order.
Step 3. Select a location for your backup. If you want to backup to USB drive, you need to insert it into your computer.
Step 4. At the lower location of system backup, you can see "Options", "Schedule" and "Scheme" three options. Click them to customize backup settings. Then, confirm everything is ok and click Start Backup.
Reading here, you may already know how to use DISM offline repair Windows 10 image. But it's not easy to master because of the complicated syntax. Therefore, it's suggested to create a system image backup to avoid computer failure during the process. If something bad happens, you can restore system image from external hard drive and get your computer back in a very short time.