7.6 C
New York
Friday, December 1, 2023
spot_img

[Fix] Repair A Windows Image File Using DISM

Sometimes users might come across situations like Operating System breakdown, corrupt media files, misbehaving Windows features which needs a fix to restore the faulty bits to their original state. There are built-in tools available in Windows 10 which lets you scan and fix your corrupted files.

Deployment Image Servicing and Management (DISM) is one such tool which can be used to service a Windows image. You can use it to repair an offline image in a Windows Image (WIM) or Virtual Hard Disk (VHD) file, or an online image. An online Windows image will also attempt to repair itself once it is not serviceable anymore. The repair source for this operation is Windows Update which is the same source that is used for features on demand and automatic corruption repair.

For a quick check of an online image health, you can use the command: sfc /scannow to scan and repair the files. To perform a vigorous check that can repair the issues with Store, you can use DISM /Cleanup-Image.

How To Use DISM To Check And Restore The Health Of A Windows Image

1. Open Command Prompt as Admin by right-clicking the Start icon and selecting Command Prompt(Admin).

2. On the prompt window, type the following :

Dism /Online /Cleanup-Image /ScanHealth

This will scan the image and check for corruption. This operation might take around 5 to 10 minutes.

3. Now, we need to see whether any corruption has been detected on the provided image file. To do so, type the following on the prompt window :

Dism /Online /Cleanup-Image /CheckHealth

This will check the image health and tell us whether it is healthy, repairable or non-repairable.
You can use the /RestoreHealth argument to repair the image.

4. If you want to repair any offline image using a mounted image as a repair source, you can use the following command to do so :

Dism /Image:C:offline /Cleanup-Image /RestoreHealth /Source:C:MountedWindowsImage

If you want to repair an online image using your own custom Image file rather than Windows Update then use :

Dism /Online /Cleanup-Image /RestoreHealth /Source:C:MountedWindowsImage /LimitAccess

Here, /LimitAccess argument is used to forbid the DISM tool from using Windows Update as a repair source for online image files.

That’s it! Your PC should work fine now. Shout out in the comments below if you have any queries.

Related Articles

Stay Connected

99FansLike
89FollowersFollow
200SubscribersSubscribe
- Advertisement -spot_img

Latest Articles