Friday, July 24, 2015

​Add drivers, add packages, or enable features in an Wim Image with Dism




.
In the Command Prompt window, at the command prompt, type the following command, and then press Enter:
  Mkdir c:\mounted
At the command prompt, type the following command, and then press Enter:
  Dism /get-imageinfo /imagefile:”z:\Custom Images\install.wim”
​   (you have to copy install.wim in this map drive    
net use 
​z​
: \\
​Server
\
​Sharename
 )​
At the command prompt, type the following command, and then press Enter:
  Dism /mount-wim /wimfile:”z:\Custom Images\install.wim” /index:4 /mountdir:c:\mounted
  NoteThis command mounts the install.wim image for offline servicing. After you mount the image, you can 
​​
add drivers, add packages, or enable features. This step will take approximately five minutes for the mounting of the image finish.
  Ensure that The operation completed successfully message displays.
At the command prompt, type the following command, and then press Enter:
  Dism /image:c:\mounted /get-features
At the command prompt, type the following command, and then press Enter:
  Dism /image:c:\mounted /get-featureinfo /featurename:IIS-WebServerRole
At the command prompt, type the following command, and then press Enter:
  Dism /image:c:\mounted /enable-feature /featurename:IIS-WebServerRole –all
  Ensure that The operation completed successfully message displays.
At the command prompt, type the following command, and then press Enter:
  Dism /unmount-wim /mountdir:c:\mounted /commit
  NoteThis command commits the changes in the install.wim image, which you will use later for deploying to a machine that has no operating system installed. This step to commit the changes in install.wim can take approximately five minutes


No comments:

Post a Comment