DISM Commands

Various commands used commonly from Mounting to unmounting a WIM File.

Command to mount a wim file

C:\>dism /mount-wim /wimfile:c:\wim\ind\India.wim /index:1 /mountdir:c:\wim\mount
Deployment Image Servicing and Management tool
Version: 6.1.7600.16385
Mounting image
[==========================100.0%==========================]
The operation completed successfully.


Command  to get various packages

C:\>dism /image:c:\wim\mount /get-packages
Package Identity : Package_for_KB2847927~31bf3856ad364e35~amd64~~6.1.1.1
State : Installed
Release Type : Security Update
Install Time : 8/1/2013 11:10 AM
Package Identity : Package_for_KB2850851~31bf3856ad364e35~amd64~~6.1.1.1
State : Installed
Release Type : Security Update
Install Time : 8/1/2013 11:10 AM
Package Identity : Package_for_KB958488~31bf3856ad364e35~amd64~~6.2.7600.16513
State : Installed
Release Type : Update
Install Time : 8/27/2012 12:32 PM
Package Identity : Package_for_KB976902~31bf3856ad364e35~amd64~~6.1.1.17514
State : Installed
Release Type : Update
Install Time : 11/21/2010 3:01 AM
Package Identity : Package_for_KB982018~31bf3856ad364e35~amd64~~6.1.3.2
State : Installed
Release Type : Update
Install Time : 8/28/2012 12:52 PM
Package Identity : WUClient-SelfUpdate-ActiveX~31bf3856ad364e35~amd64~~7.6.7600.256
State : Installed
Release Type : Feature Pack
Install Time : 8/27/2012 12:29 PM
Package Identity : WUClient-SelfUpdate-Aux-TopLevel~31bf3856ad364e35~amd64~~7.6.7600.256
State : Installed
Release Type : Feature Pack
Install Time : 8/27/2012 12:44 PM
Package Identity : WUClient-SelfUpdate-Core-TopLevel~31bf3856ad364e35~amd64~~7.6.7600.256
State : Installed
Release Type : Feature Pack
Install Time : 8/27/2012 12:29 PM
The operation completed successfully.

Command  to get various Features

C:\>dism /image:c:\wim\mount /get-features


Command  to get information of a particular feature (In this case TFTP)

C:\>dism /image:c:\wim\mount /get-featureinfo /featurename:TFTP
Deployment Image Servicing and Management tool
Version: 6.1.7600.16385
Image Version: 6.1.7601.17514
Feature Information:
Feature Name : TFTP
Display Name : TFTP Client
Description : Transfer files using the Trivial File Transfer Protocol
Restart Required : Possible
State : Disabled
Custom Properties:
(No custom properties found)
The operation completed successfully.

Command to enable or disable a particular feature (In this case TFTP)

C:\>dism /image:c:\wim\mount /enable-feature /featurename:TFTP
Deployment Image Servicing and Management tool
Version: 6.1.7600.16385
Image Version: 6.1.7601.17514
Enabling feature(s)
[==========================100.0%==========================]
The operation completed successfully.

C:\>dism /image:c:\wim\mount /disable-feature /featurename:TFTP
Deployment Image Servicing and Management tool
Version: 6.1.7600.16385
Image Version: 6.1.7601.17514
Disabling feature(s)
[==========================100.0%==========================]
The operation completed successfully.


Command  to get various Drivers

C:\>dism /image:c:\wim\mount /get-drivers
Deployment Image Servicing and Management tool
Version: 6.1.7600.16385
Published Name : oem6.inf
Original File Name : vpnva64.inf
Inbox : No
Class Name : Net
Provider Name : Cisco Systems
Date : 3/4/2012
Version : 3.1.234.0
Published Name : oem9.inf
Original File Name : ibmpmdrv.inf
Inbox : No
Class Name : System
Provider Name : Lenovo
Date : 4/17/2013
Version : 1.67.0.2
The operation completed successfully.

Command  to Add Drivers(Adding 852.inf)

C:\>dism /image:c:\wim\mount /add-driver /driver:"D:\Drivers\All\852.inf"
Deployment Image Servicing and Management tool
Version: 6.1.7600.16385
Image Version: 6.1.7601.17514
Found 1 driver package(s) to install.
Installing 1 of 1 - D:\Drivers\All\852.inf: The driver package was successfully installed.
The operation completed successfully.


Command  to remove Drivers

C:\>dism /image:c:\wim\mount /remove-driver /driver:oem10.inf
Deployment Image Servicing and Management tool
Version: 6.1.7600.16385
Image Version: 6.1.7601.17514
Found 1 driver package(s) to remove.
Removing 1 of 1 - oem10.inf: The driver package was successfully removed.
The operation completed successfully.

Command  to get information of a particular Driver (Ex: OEM2.inf)

C:\>dism /image:c:\wim\mount /get-driverinfo /driver:oem2.inf
Deployment Image Servicing and Management tool
Version: 6.1.7600.16385
Image Version: 6.1.7601.17514
Driver package information:
Published Name : oem2.inf
Driver Store Path : c:\wim\mount\Windows\System32\DriverStore\FileRepository\e1c62x64.inf_amd64_neutral_8efd65d156d3fbd3\e1c62x64.inf
Class Name : Net
Class Description : Network adapters
Class GUID : {4D36E972-E325-11CE-BFC1-08002BE10318}
Date : 2/8/2011
Version : 11.10.84.0
Boot Critical : No
Drivers for architecture : amd64

    Manufacturer : Intel
    Description : Intel(R) 82579LM Gigabit Network Connection
    Architecture : amd64
    Hardware ID : PCI\VEN_8086&DEV_1502
    Service Name : e1cexpress
    Compatible IDs :
    Exclude IDs :
    Manufacturer : Intel
    Description : Intel(R) 82579LM Gigabit Network Connection
    Architecture : amd64
    Hardware ID : PCI\VEN_8086&DEV_1502&SUBSYS_21CE17AA
    Service Name : e1cexpress
    Compatible IDs :
    Exclude IDs :

Command  to Unmount WIM Image

C:\>dism /unmount-wim /mountdir:c:\wim\mount /discard (to ignore changes) or /commit (To save Changes)
Deployment Image Servicing and Management tool
Version: 6.1.7600.16385
Image File : c:\wim\ind\India.wim
Image Index : 1
Unmounting image
[==========================100.0%==========================]

The operation completed successfully.

No comments:

Post a Comment