“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.
1. 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.
2. The install.wim file must be of the same version, edition as well as language of the operating system you are using.
3. 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.
4. DISM is case sensitive. For example: if you type Install.win as install.wim, DISM will fail.
5. You need to make sure that the install.wim file is not in read-only mode, or DISM will fail to repair image.
Step 1. Download Windows 10 1809 ISO from website.
Step 2. Mount the ISO in your computer. Only in this way, your computer can extract the file and access it.
1. Right-click the ISO files and select Mount.
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 3. Press WIN + X and select Command Prompt(Admin) in the search result list.
Step 4. 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.
Alternative way to repair Windows 10
DISM can help you repair corrupted image and files. But the process is complicated. What's more, you may cause serious problem owing to operation error if you are not familiar with command line.
To repair corrupted image and files, you can use the basic command line. Do not try the complicated one. If you still want to try it, you are supposed to create a backup for your computer.
For backup and restore software, I recommend you free AOMEI Backupper. It's easy to use. All the process is fixed and you do not need to manually enter anything. With it, you can backup to external hard drive, USB disk, cloud drive like Google Drive, OneDrive, NAS, etc.
To service users in a better way, free AOMEI Backupper offer you more features. To protect the important backup, you can encrypt it. To backup image at a regular time, you can employ either daily backup, weekly backup, monthly backup or event-trigger backup. To save disk space, you can choose to delete old backup images and just keep the latest version.
Besides, there is a magic feature called USB plug in, which is newly added in AOMEI Backupper. If you create a backup task with a recognized USB, AOMEI Backupper will automatically start this task and backup to USB drive when plugged in.
Some features mentioned above is only available on the paid version, you can upgrade to AOMEI Backupper Professional or Server if you happen to need it.
Now, let's start to backup your computer.
Step 1. Download AOMEI Backupper and open it,
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. Set up settings according to need.
Step 5. Click Start Backup.
Reading here, you may already know how to use DISM offline repair Windows 10 image. It's troublesome. What do you think?
I don't know what you think. Anyway, I am willing to use an easy way. No one knows what will happen if you enter the wrong command. At least, I will create a system image backup for my computer and I have a chance to restore system image from external hard drive when something unexpected happen.