Windows – Dism Commands

email me

Some basic DISM commands:

Run following command to clean up any previous wims/mounts:
DISM /Cleanup-Wim


To check image info: 
Dism /Get-WimInfo /WimFile:C:\images\boot.wim

 

To check mounted images:
dism /get-mountedwiminfo

 

Mount .Wim File on your local C Drive:
dism /mount-wim /wimfile:c:\images\boot.wim /index:1 /Mountdir:c:\mount

 


Adding drivers command:
dism /image:c:\mount /add-driver /driver:c:\drivers\ /recurse


Unmounting image to wim file by running command:
dism /unmount-wim /mountdir:c:\mount\ /commit

 


Notes

Modify a Windows image using DISM

DISM – Deployment Image Servicing and Management

Use DISM in Windows PowerShell

Windows 10 DISM Command-Line Options

DISM Best Practices