Logo
HOW TO
Windows XP
Windows Vista
Windows 7
Windows Azure
Windows Server
Windows Phone
 
 
Windows 7

Automating Windows 7 Installation : Customizing Images Using Deployment Image Servicing and Management (part 2) - Mounting an Image , Servicing Drivers in an Image

4/15/2014 1:32:30 AM

2. Mounting an Image

The /Get-WimInfo is useful for viewing details about images in a WIM file, but it doesn't allow you to work with an image or view the actual contents. To work with the contents, you need to mount the image using the /Mount-Wim switch.

For example, you can use the following command to mount an image:

dism /mount-wim /wimfi1e:c:\images\win7.wim /index:1 /MountDir:C:\MountWin7

Deployment Image Servicing and Management tool

Version: 6.1.7600.16385

Mounting image
[==========================100.0%==========================]
The operation completed successfully.

This command uses the familiar /wimfile switch and also the /index and /MountDir switches. These switches, and some additional switches available with /Mount-wim, are explained in Table 1. Mounting an image will take some time but will show you progress as it expands the files. The directory where you'll mount the image must exist before you execute the command. You can create the directory using Windows Explorer or from the command prompt with this command:

md c:\MountWin7

Table 1. DISM /Mount-Wim options
SwitchDescriptionExample
/WimFileIdentifies the path of the image.wim file.
/WimFile:C:\Images\
Install.wim

/IndexIdentifies the image index number of the image to mount.
/WimFile:C:\Images\Install.wim
/index:1

/Name:Identifies the image with the name instead of the index number. If there are spaces in the name, it must be enclosed in quotes.
/WimFile:C:\Images\Install.wim
/name:"Windows 7 Ultimate"

/MountDirIdentifies the location where the image file will be mounted and expanded as individual files./MountDir:Path
/ReadOnlySpecifies that the image will be in read-only mode and can't be committed. If not used, the command can be committed./ReadOnly

After you mount the image, you can use Windows Explorer to view the contents of the image. Figure 2 shows the mounted image from the earlier example.

At this point, you can copy any files you want to the mounted image. Additionally, you can use DISM to service drivers and applications on the image.

3. Servicing Drivers in an Image

DISM includes several commands you can use to view, add, and remove drivers within an image. These drivers must use the INF file format. Unfortunately, drivers that are installed as executable files are not supported using these methods.

You can use the following command to view any third-party drivers that are already included in an image:

dism /image:c:\MountWin7 /get-drivers

Deployment Image Servicing and Management tool
Version: 6.1.7600.16385

Image Version: 6.1.7600.16385

Obtaining list of 3rd party drivers from the driver store...

Driver packages listing:

Published Name : oem0.inf
Original File Name : prnms001.inf
Inbox : No
Class Name : Printer
Provider Name : Microsoft
Date : 6/21/2006
Version : 6.1.7600.16385

The operation completed successfully.

Figure 2. Viewing the mounted image

Table 2 shows several other available DISM commands.

Table 2. DISM driver-servicing command-line options
SwitchDescriptionExample
/Get-DriverInfoDisplays detailed information about a specific driver package. The package is specified using the Published Name obtained from the /get-driverscommand.
dism /image:c:\mountwin7
/get-driverinfo /driver:oem0.
inf

/Add-DriverAdds a third-party driver package to an offline image. The example shows how to add a driver package that has been copied to a folder named Display. DISM scans the folder and installs all the drivers in the folder.
dism /image:c:\mountwin7 /addd-
river /driver:c:\display

/Remove-DriverRemoves a third-party driver from an offline image. You can use the Published Name of the driver displayed with /Get-Drivers.
dism /image:c:\mountwin7
/remove-driver /driver:oem9.inf


Other -----------------
- Automating Windows 7 Installation : Applying an Image Using ImageX
- Automating Windows 7 Installation : Capturing an Image Using ImageX
- Microsoft Visio 2010 : Creating Web Pages from Visio Drawings (part 4) - Fine-tuning Web Pages and Battling Bugs - Saving a Visio Drawing as a Web Page
- Microsoft Visio 2010 : Creating Web Pages from Visio Drawings (part 3) - Fine-tuning Web Pages and Battling Bugs - Customizing Web Page Output
- Microsoft Visio 2010 : Creating Web Pages from Visio Drawings (part 2) - Exploring Visio-Generated Web Pages
- Microsoft Visio 2010 : Creating Web Pages from Visio Drawings (part 1) - Saving as Web Page
- Microsoft Visio 2010 : Sending Visio Files in Email, Saving as PDF or XPS Files
- Microsoft Visio 2010 : Introducing Data Graphics (part 2) - Creating Data Graphics,Applying Data Graphics to Shapes
- Microsoft Visio 2010 : Introducing Data Graphics (part 1) - What Is a Data Graphic?
- Microsoft Visio 2010 : Linking External Data to Shapes (part 6) - Using Link Data - Linking Data to Shapes Using Link Data
 
 
REVIEW
- First look: Apple Watch

- 10 Amazing Tools You Should Be Using with Dropbox

- 3 Tips for Maintaining Your Cell Phone Battery (part 1)

- 3 Tips for Maintaining Your Cell Phone Battery (part 2)
 
VIDEO TUTORIAL
- How to create your first Swimlane Diagram or Cross-Functional Flowchart Diagram by using Microsoft Visio 2010 (Part 1)

- How to create your first Swimlane Diagram or Cross-Functional Flowchart Diagram by using Microsoft Visio 2010 (Part 2)

- How to create your first Swimlane Diagram or Cross-Functional Flowchart Diagram by using Microsoft Visio 2010 (Part 3)
 
Popular tags
Microsoft Access Microsoft Excel Microsoft OneNote Microsoft PowerPoint Microsoft Project Microsoft Visio Microsoft Word Active Directory Biztalk Exchange Server Microsoft LynC Server Microsoft Dynamic Sharepoint Sql Server Windows Server 2008 Windows Server 2012 Windows 7 Windows 8 Adobe Indesign Adobe Flash Professional Dreamweaver Adobe Illustrator Adobe After Effects Adobe Photoshop Adobe Fireworks Adobe Flash Catalyst Corel Painter X CorelDRAW X5 CorelDraw 10 QuarkXPress 8 windows Phone 7 windows Phone 8 BlackBerry Android Ipad Iphone iOS
Popular keywords
HOW TO Swimlane in Visio Visio sort key Pen and Touch Creating groups in Windows Server Raid in Windows Server Exchange 2010 maintenance Exchange server mail enabled groups Debugging Tools Collaborating
Top 10
- Microsoft Excel : How to Use the VLookUp Function
- Fix and Tweak Graphics and Video (part 3) : How to Fix : My Screen Is Sluggish - Adjust Hardware Acceleration
- Fix and Tweak Graphics and Video (part 2) : How to Fix : Text on My Screen Is Too Small
- Fix and Tweak Graphics and Video (part 1) : How to Fix : Adjust the Resolution
- Windows Phone 8 Apps : Camera (part 4) - Adjusting Video Settings, Using the Video Light
- Windows Phone 8 Apps : Camera (part 3) - Using the Front Camera, Activating Video Mode
- Windows Phone 8 Apps : Camera (part 2) - Controlling the Camera’s Flash, Changing the Camera’s Behavior with Lenses
- Windows Phone 8 Apps : Camera (part 1) - Adjusting Photo Settings
- MDT's Client Wizard : Package Properties
- MDT's Client Wizard : Driver Properties
 
Windows XP
Windows Vista
Windows 7
Windows Azure
Windows Server
Windows Phone
2015 Camaro