Have you used the windows system image repair (dism.exe) offline?

ell

Well-Known Member
Reaction score
435
Hi, looks like a nuke and pave on this win 10 machine, already tried system restore, chkdsk (keeps finding errors) sfc can't run but I want to try and use the dism.exe method, I am screwing something up here or maybe is just doesn't work from a offline command prompt (using windows recovery usb) any help?
 

Attachments

  • 20160626_103015 (1).jpg
    20160626_103015 (1).jpg
    226.3 KB · Views: 23
I would focus here. Have you run full disk tests. Backup Data FIRST.
Yes ofcourse to both, drive is fine. I am basicly trying to learn how to use it to see if it actually works, have you used it?
 
You will need to image file from https://www.microsoft.com/en-us/software-download/techbench

Tech bench iso's include an install WIM which is needed to use DISM.

After you download it, just mount it using explorer and then use this command:

DISM /Online /Cleanup-Image /RestoreHealth /source:WIM:F:\Sources\Install.wim:1 /LimitAccess

This would be for the iso mounted as F drive, you may need to change it depending on what drive the iso mounts as
 
You will need to image file from https://www.microsoft.com/en-us/software-download/techbench

Tech bench iso's include an install WIM which is needed to use DISM.

After you download it, just mount it using explorer and then use this command:

DISM /Online /Cleanup-Image /RestoreHealth /source:WIM:F:\Sources\Install.wim:1 /LimitAccess

This would be for the iso mounted as F drive, you may need to change it depending on what drive the iso mounts as
I was wondering why I couldn't find the wim file in the windows 10 iso. So do you know the command to mount it from a offline cmd? won't have explorer., unless maybe I just fire up a winpe disc. thanks
 
I was wondering why I couldn't find the wim file in the windows 10 iso. So do you know the command to mount it from a offline cmd? won't have explorer., unless maybe I just fire up a winpe disc. thanks

Just right click on the iso and select open with windows explorer and then select mount. Its will then show as a dvd with a drive letter.
 
Oh, I see what your saying, you mean a non-bootable system. Not sure how you would do it on a non-bootable system. If you can get it to boot, it will re-image windows 10 and it does a great job.
 
Just right click on the iso and select open with windows explorer and then select mount. Its will then show as a dvd with a drive letter.

Can't boot to windows, so can't access explorer, been using windows recovery usb and the command prompt there.
 
Oh, I see what your saying, you mean a non-bootable system. Not sure how you would do it on a non-bootable system. If you can get it to boot, it will re-image windows 10 and it does a great job.
yes thats my whole dilemma, msft says its supposed to work offline, but I can't make it work.
 
We keep the windows 10 images on a flash drive, if you plug in a flash drive, does the system recognize it when in command prompt mode? If the system gives the flash drive a drive letter when its plugged in, it should work.
 
We keep the windows 10 images on a flash drive, if you plug in a flash drive, does the system recognize it when in command prompt mode? If the system gives the flash drive a drive letter when its plugged in, it should work.
I tried from a win10pe, fail I think it has to be used from within windows.
 
Last edited:
Mount wim file to directory (directory must be created first)

dism /Mount-Wim /WimFile:<Path>image.wim /MountDir:<mountDir>

And you have to commit the changes to the image when you are done
 
Last edited:
First create wim image

Mount wim file to directory (directory must be created first)

dism /Mount-Wim /WimFile:<Path>image.wim /MountDir:<mountDir>

And you have to commit the changes to the image when you are done

I got the image mounted no problem in win10pe, but the command prompt still gives the
Error 50:

DISM doesn’t support servicing Windows PE with /Online option.
 
The problem here is that Windows PE is the online version of Windows, so you do not want to use the online switch
 
Back
Top