Deployment Image Servicing and Management (DISM) tool is a command-line tool that can be used to service and prepare Windows images, including those used for Windows PE, Windows Recovery Environment (Windows RE) and Windows Setup. DISM can be used to service a Windows image (.wim) or a virtual hard disk (.vhd or .vhdx). DISM comes built into Windows and is available through the command line or from Windows PowerShell.
To use the DISM, please follow these stpes:
- an elevated command prompt.
- Type the following command, and then press Enter. DISM.exe /Online /Cleanup-image /Restorehealth
- if your Windows Update client is already broken, use a running Windows installation as the repair source, or use a Windows side-by-side folder from a network share or from a removable media, such as the Windows DVD, as the source of the files. To do this, run the following command instead: DISM.exe /Online /Cleanup-Image /RestoreHealth /Source:C:\RepairSource\Windows /LimitAccess