Top Banner
Managing Your Images with Deployment Image Servicing & Management (DISM) – Windows 7 Vijay Raj
23

Managing your images with Deployment Image Servicing & Management (DISM) – windows 7

Dec 18, 2014

Download

Technology

Vijay Raj

This session will cover information on DISM – Deployment Image Servicing and Management, a tool which is introduced in Windows 7. We will look at what DISM can do, which were the tools that it replaced, the Commands, Architecture, Providers and Options.
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Managing your images with Deployment Image Servicing & Management (DISM) – windows 7

Managing Your Images with Deployment Image Servicing & Management (DISM) – Windows 7

Vijay Raj

Page 2: Managing your images with Deployment Image Servicing & Management (DISM) – windows 7

About Me

Work at Texas InstrumentsSTEP Member for Windows 7Expertise in Application Setups & Deployment (MVP)Passionate about Technology Evangelism Avid Blogger at http://www.msigeek.comExcited about Cricket and MusicFan of Mark Russinovich, Sachin and Rahman!

Page 3: Managing your images with Deployment Image Servicing & Management (DISM) – windows 7

Session Outline

What DISM can do for youTools that were replacedDISM CommandsDISM ArchitectureDISM ProvidersDISM Options

Page 4: Managing your images with Deployment Image Servicing & Management (DISM) – windows 7

What DISM Does For You

Allows you to service images offlineBoth .wim and .vhd

Gives you more functionality with consistent syntaxReplaced 3 tools

Package Manager (Pkgmgr.exe)International Settings Configuration Tool (Intlcfg.exe)Windows PE command-line tool (PEimg.exe)

Page 5: Managing your images with Deployment Image Servicing & Management (DISM) – windows 7

DISM

Supports only Vista SP1 and later imagesMount / unmount .wims

(no capture or apply feature)Add / remove 3rd party device drivers ONLYAdd / remove language packsEnable / disable / configure Windows features Add Windows updates (MSU’s)Image Context or NOT…

Page 6: Managing your images with Deployment Image Servicing & Management (DISM) – windows 7

With or Without Image Context…

Elevated CMDWithout Image Context

Dism /?No image specified - your looking at the image that is currently running - called the HOST

With Image ContextDism /online /?

Don’t try this on WinPEMounted image

Dism /Image:c:\mount\win7 /?

Page 7: Managing your images with Deployment Image Servicing & Management (DISM) – windows 7

Get Information On An Image

In the past we had ImagexImagex /info <Path to image file>For example:Imagex /info c:\wims\install.wim

NOW we can use DISMDISM /Get-WimInfo /wimfile:<Path to image file>Another example:Dism /get-wiminfo /wimfile:c:\wims\install.wim

Document, document, document!

Page 8: Managing your images with Deployment Image Servicing & Management (DISM) – windows 7

Mounting Images:The whole story…

Mount an image for offline servicingPatch Tuesday – adding the new patchesAdding / removing driversEnable / disable windows fetaures

Firewall,

DISM /Mount-Wim /WimFile:C:<Path to image> /index:1 /MountDir:C:\mountDISM /Mount-Wim /Wimfile:c:\wims\install.wim /MountDir:C:\Mount

Page 9: Managing your images with Deployment Image Servicing & Management (DISM) – windows 7

Mounted Images

Get mounted wim informationCheck your status

OK – goodNeeds remount

Status – Needs remountAttempt to ReMount-WimMay need to Cleanup-Wim and then Remount-Wim

Page 10: Managing your images with Deployment Image Servicing & Management (DISM) – windows 7

Re-Mounting and Clean-Up

Re-Mount a .WimDism /Remount-Wim /MountDir:<target_mount_directory>

Cleanup a .wimDISM /Cleanup-Wim

Page 11: Managing your images with Deployment Image Servicing & Management (DISM) – windows 7

Mounting Wims demo

Page 12: Managing your images with Deployment Image Servicing & Management (DISM) – windows 7

Creating a .vhd

Open elevated command promptDiskpart

create vdisk file=c:\W7Ultimate.vhd maximum=25000 type=fixedSelect vdisk file=c:\W7Ultimate.vhd attach vdisk List disk (find your new disk number)Sel disk #Create part primarySel part 1

Page 13: Managing your images with Deployment Image Servicing & Management (DISM) – windows 7

Creating a VHD Continued

Still in DiskpartSel part 1ActiveFormat fs=ntfs quickAssignDetail partition (get the drive letter)Exit

Mkdir f:\windowsImagex /apply c:\wims\install.wim 4 f:\Edit BCD to boot this new .vhd

Page 14: Managing your images with Deployment Image Servicing & Management (DISM) – windows 7

To Attach a .VHD

DiskpartSelect vdisk file=c:\wims\W7Ultimate.vhd attach vdisk assign letter=F exit

Page 15: Managing your images with Deployment Image Servicing & Management (DISM) – windows 7

Attaching .VHD Images

DiskpartSelect vdisk file=c:\wims\W7Ultimate.vhd attach vdisk assign letter=r exit

Page 16: Managing your images with Deployment Image Servicing & Management (DISM) – windows 7

OR Through Disk Management UI

Disk Management UIExpand StorageR-click Disk Management

Attach VHDBrowse to your .vhd file

Can attach files in Read Only mode with one clickTo Detach a .vhd

R-click the attached driveChoose Detach VHD

Page 17: Managing your images with Deployment Image Servicing & Management (DISM) – windows 7

Adding Drivers to a VHD

Attach .VHDDism /image:F:\ /Add-Driver /driver:C:\drivers\mydriver.INFDism /image:R:\ /Add-Driver /driver:C:\drivers /recurseDism /image:R:\ /Add-Driver /driver:C:\drivers\mydriver.INF /ForceUnsigned

Page 18: Managing your images with Deployment Image Servicing & Management (DISM) – windows 7

How DISM WorksMDT

Windows Setup

SCCM DISM.exe

DISM – APIs for Clients

APIs for Providers

Underlying Technologies

DISM Provider DISM ProviderDISM Provider DISM Provider

Page 19: Managing your images with Deployment Image Servicing & Management (DISM) – windows 7

DISM and The Image

DISM can do different things based on what the operating system is of the image being servicedProviders are internal to the actual imageProviders are not the same from one OS to the nextProviders can be found in C:\Windows\System32\DISM

Page 20: Managing your images with Deployment Image Servicing & Management (DISM) – windows 7

DISM Options

/English Displays output in English/Format Formats report output/WinDir Path to the Windows Directory/SysDriveDir Finds BootMGR/LogPath & /LogLevel Log path & verbosity /NoRestart No reboots or reboot prompts /Quiet Only receive error messages – no other

output/ScratchDir Path to the scratch directory

Page 21: Managing your images with Deployment Image Servicing & Management (DISM) – windows 7

In Summary…

What DISM can do for youTools that were replacedDISM CommandsDISM ArchitectureDISM ProvidersDISM Options

Page 22: Managing your images with Deployment Image Servicing & Management (DISM) – windows 7

Call to Actions

Complete the Survey and Win TechNet Subsc- http://tinyurl.com/STEP190Read more articles on http://microsoft.com/springboardYou can get in touch with other Setup Deploy MVPs like Rhonda Layfield.Deployment Guidelines and Windows Tips at http://www.msigeek.com

Page 23: Managing your images with Deployment Image Servicing & Management (DISM) – windows 7

question & answer