Home > Enterprise Desktop Tips > Windows desktop management tips > An intro to Windows 7's Deployment Image Servicing and Management tool
Enterprise Desktop Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

WINDOWS DESKTOP MANAGEMENT TIPS

An intro to Windows 7's Deployment Image Servicing and Management tool


Brien M. Posey, Contributor
10.07.2009
Rating: -4.50- (out of 5)


Enterprise IT tips and expert advice
Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


Although image management is an important task for desktop deployments, I have always felt that Microsoft's image management tools for Windows Vista were lacking.

Unless you bought third-party software, there was no single image management tool for managing Vista images. While Microsoft offered the Automated Installation Kit, but it was made up of several different tools, many that had to be used together to perform even the simplest image management tasks.

The Deployment Image Servicing and Management tool in Windows 7 addresses this capability.

For example, suppose you want to add a device driver to a Windows Vista deployment image. You would have to use ImageX to mount the image and then use Package Manager to inject the device driver into the image. Even then, you wouldn't be able to perform full device driver management. While you could add a device driver to an image, there were no provisions for removing an unwanted device driver.

In Windows 7, Microsoft has rolled all of the functionality found in the individual Windows Automated Installation Kit tools -- PEimg.exe, intlcfg.exe, pkgmgr.exe and ImageX -- into Deployment Image Servicing and Management (DISM).

Now, you can use a single command-line tool to service Windows installation images. In addition, DISM provides functionality that did not exist in Version 1.1 of the Windows Automated Installation Kit.

The best known new feature is the ability to manage virtual hard drive (.VHD) files using the same set of commands used to manage traditional Windows Image (.WIM) files.

DISM has so many features that I can't possibly talk about all of them within the confines of one article. I do, however, want to give you a tour of a few of the new features.

The first thing that to do is mount the .WIM or .VHD file that you want to work with. In Vista, this was done using ImageX, but DISM can now be used for this task. To mount an image, use the /mount-wi...


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google



RELATED CONTENT
Windows desktop management tips
Remote troubleshooting made easier with Windows 7's Problem Step Recorder
Converting Windows 7 deployment images to virtual hard drive files
Using Windows 7 to configure workstations for optimal power management
Admins can wear many hats using Netcat
Manage the desktop image lifecycle to limit work, ensure security
Choosing the best way to install images
Should you switch to the Office 2007 file format?
Are you ready to migrate to Windows 7?
Microsoft Office 2010: At a glance
Your questions answered: The Windows 7 upgrade quandary

Microsoft Windows 7 operating system
Remote troubleshooting made easier with Windows 7's Problem Step Recorder
Windows 7 launches, offers salvation from Vista
Converting Windows 7 deployment images to virtual hard drive files
Using Windows 7 to configure workstations for optimal power management
MDOP for Windows 7 available now
Guide to converting from Windows XP to Windows 7
Manage the desktop image lifecycle to limit work, ensure security
Microsoft Desktop Optimization Pack 2009 R2 adds Windows 7 support
Has Microsoft corrected Vista annoyances in Windows 7?
Protect your computer from direct attacks in Windows 7

Microsoft Windows Vista operating system
Windows 7 launches, offers salvation from Vista
Guide to converting from Windows XP to Windows 7
Choosing the best way to install images
Has Microsoft corrected Vista annoyances in Windows 7?
Microsoft's August patches run the gamut
Your questions answered: The Windows 7 upgrade quandary
Windows Vista users get little pricing relief on Windows 7
Combining folder redirection with roaming profiles
IPv6 protocol, Windows Vista features simplify peer ad-hoc networking
When to move off XP, onto Windows 7

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
desktop management  (SearchEnterpriseDesktop.com)
Vista  (SearchEnterpriseDesktop.com)
Vista glossary  (SearchEnterpriseDesktop.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary


m switch, and then use the /WimFile switch to specify the name of the file.

For example, Figure 1 shows what it looks like when a boot image is mounted.

Figure 1: You can mount a .WIM file directly through DISM. (Click image for an enlarged view).
[IMAGE]

Another nice new feature is DISM lets you perform enumeration on an image file to find out what packages are stored in the image. These packages can be language packs, utilities, patches, etc.

To access a list of the packages that are installed, simply enter the following command:
DISM /Image: /Get-packages

For example, if you look back at Figure 1, you will notice that we used a switch called /MountDir and followed it with D:\winpe_x86\mount. Because of this, we must reference the image as d:\winpe_x86\mount. The command above therefore becomes:
DISM /Image:d:\winpe_x86\mount /Get-Packages

As you can see in Figure 2, DISM shows which packages are included in the image.

Figure 2: It is easy to tell which packages are included in the image. (Click image for an enlarged view).
[IMAGE]

Device Driver Management
You can also use DISM to manage device drivers.

Vista had limited abilities for injecting drivers into an image, but DISM allows you to perform full-blown device driver management.

To enumerate the list of device drivers, enter the following command:
DISM /image: /Get-Drivers

Once you know which device drivers are included in an image, you can add a driver to the image by entering the following command:
DISM /image: /Add-Driver /Driver:

For example, in Figure 3, I have issued the Get-Driver command, and Windows reported that there were no third-party drivers in my image. I used the Add-Driver command to add a driver to the image and then used the Get-Driver command once again to verify that the driver had been installed. If I wanted to remove the driver, I could do so by entering the following command:
DISM /Image:d:\winpe_86\mount /remove-driver /driver:oem0.inf

Figure 3: You can perform driver management from the command line. (Click image for an enlarged view).
[IMAGE]

Dismounting an Image
One minor problem with image management in Vista is that administrators would often forget to commit changes to .WIM files prior to dismounting them. In DISM, administrators are now prompted to either save or delete their changes prior to dismounting a .WIM image.

For example, in Figure 4, I have attempted to dismount an image by entering this command:
DISM /Unmount-WIM /Mountdir:d:\winpe_x86\mount

However, Windows says that I can't dismount the image unless I specify either the "/commit" or the "/discard" switch.

Figure 4: DISM forces you to save or discard changes before you dismount an image. (Click image for an enlarged view).
[IMAGE]

The DISM utility makes working with image files a lot easier. In case you are wondering, DISM commands are scriptable, and if you had previously set up automated Vista deployments, those are still supported.

About the author:   

[IMAGE]Brien M. Posey, MCSE
Brien M. Posey, MCSE, is a Microsoft Most Valuable Professional for his work with Exchange Server and has received Microsoft's MVP award for Windows Server and Internet Information Server (IIS). Posey has served as CIO for a nationwide chain of hospitals and was once responsible for the Department of Information Management at Fort Knox. As a freelance technical writer, he has written for Microsoft, TechTarget, CNET, ZDNet, MSD2D, Relevant Technologies and other technology companies. You can visit Posey's personal website at www.brienposey.com.


Rate this Tip
To rate tips, you must be a member of SearchEnterpriseDesktop.com.
Register now to start rating these tips. Log in if you are already a member.




DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



Enterprise Desktop Security - Virus Protection, Malware Protection, Intrusion Detection
HomeTopicsITKnowledge ExchangeTipsMultimediaWhite PapersBlogs
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2008 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts