Deployment Image Servicing and Management (DISM.exe) is a command-line tool that you can use to service and prepare Windows images, including images used for Windows PE, the Windows Recovery Environment (Windows RE), and Windows Setup. DISM can be used to service a Windows image (.wim) or virtual hard drive.