12

I am trying to repair a corrupted Windows installation which is on a separate local drive D: using DISM but I cannot find any information on how to run DISM to a repair a Windows installation which is on a separate drive.

How can I run the following command on drive D:

DISM /online /cleanup-image /restorehealth
Rudolph
  • 347

2 Answers2

18

/Online means the current running Windows. If you want to serve a different windows, use the Image parameter:

dism /Image:D:\ /cleanup-image /restorehealth

To use a Install.ESD as source use this command:

DISM /Image:D:\ /Cleanup-Image /RestoreHealth /Source:c:\sources\install.esd:2 /LimitAccess
-2

I used this command: DISM.exe /Image=D:\ /Cleanup-Image /RestoreHealth then I hit enter. The HDD I was running dism on was in a docking station, connected by usb cable. Hope this helps?

GravyD
  • 1