Windows

Windows ADK DISM commands to capture and apply images

With the introduction of the new Accessment and Deployment Kit for Windows 8 which is the new iteration of what we have known as the WAIK for automating installs, Microsoft has deprecated the imagex command to manage, capture, and apply images in favor of using the dism command for all aspects of image management.  We have put together a cheat sheet if you will below of the most common commands that admins will use in order to capture, apply, and manage images now with the new Windows 8 ADK using the dism command.  Admins will note the more “powershell-ish” command syntax with the dism commands.

 

With that being said one of the exciting features of the new ADK environment is the ability to incorporate powershell which opens up a whole new array of commands at the admin’s disposal.  Along with the new features, with ever interation of the WAIK/ADK environment, the driver support gets better and better minimizing the need for incorporated driver packs to recognize network adapters, etc.
 adkdism1
Capture Images

Dism /Capture-Image /ImageFile:install.wim /CaptureDir:D: /Name:Drive-D
  1. Dism /Capture-Image /ImageFile:c:windows.wim /CaptureDir:C: /Name:”Windows”
    Dism /Capture-Image /ImageFile:s:system.wim /CaptureDir:S: /Name:”System”

Apply Images

  • Dism /apply-image /imagefile:install.wim /index:1 /ApplyDir:D:
  • Dism /apply-image /imagefile:Z:Imageswindows.wim /index:1 /ApplyDir:W:
  • Boot Files:    C:\Windows\System32\bcdboot W:\Windows /l en-US
Mount a .WIM image

dism /mount-wim /wimfile:”c:\path to your WADKsourcesboot.wim” /index:1 /mountdir:c:\mount

Unmount a .WIM image

DISM /Unmount-Wim /Mountdir:C:\DirMount /Commit

Get mounted Wim Images

dism /get-MountedWiminfo
Capture images

Dism /Capture-Image /ImageFile:c:\windows.wim /CaptureDir:C:\ /Name:”Windows”
Dism /Capture-Image /ImageFile:s:\windows.wim /CaptureDir:S:\ /Name:”System”

Adding drivers:

DISM.exe /image:”c:imagesImage1″ /Add-Driver /ForceUnsigned /DriverName:”C:\Drivers\1.inf” /DriverName:”C:\Drivers\2.inf” /DriverName:”C:\Drivers3.inf”

Subscribe to VirtualizationHowto via Email 🔔

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Brandon Lee

Brandon Lee is the Senior Writer, Engineer and owner at Virtualizationhowto.com and has over two decades of experience in Information Technology. Having worked for numerous Fortune 500 companies as well as in various industries, Brandon has extensive experience in various IT segments and is a strong advocate for open source technologies. Brandon holds many industry certifications, loves the outdoors and spending time with family.

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.