Managing Your Images with Deployment Image Servicing & Management (DISM) – Windows 7<br />Vijay Raj<br />
About Me<br />Work at Texas Instruments<br />STEP Member for Windows 7<br />Expertise in Application Setups & Deployment (...
Session Outline<br />What DISM can do for you<br />Tools that were replaced<br />DISM Commands<br />DISM Architecture<br /...
What DISM Does For You<br />Allows you to service images offline<br />Both .wim and .vhd<br />Gives you more functionality...
DISM<br />Supports only Vista SP1 and later images<br />Mount / unmount .wims <br />(no capture or apply feature)<br />Add...
With or Without Image Context…<br />Elevated CMD<br />Without Image Context<br />Dism /?<br />No image specified - your lo...
Get Information On An Image<br />In the past we had Imagex<br />Imagex /info <Path to image file><br />For example:<br />I...
Mounting Images:The whole story…<br />Mount an image for offline servicing<br />Patch Tuesday – adding the new patches<br ...
Mounted Images<br />Get mounted wim information<br />Check your status<br />OK – good<br />Needs remount<br />Status – Nee...
Re-Mounting and Clean-Up<br />Re-Mount a .Wim<br />Dism /Remount-Wim /MountDir:<target_mount_directory><br />Cleanup a .wi...
Mounting Wims<br />demo<br />
Creating a .vhd<br />Open elevated command prompt<br />Diskpart<br />create vdisk file=c:W7Ultimate.vhd maximum=25000 type...
Creating a VHD Continued<br />Still in Diskpart<br />Sel part 1<br />Active<br />Format fs=ntfs quick<br />Assign<br />Det...
To Attach a .VHD<br />Diskpart<br />Select vdisk file=c:wimsW7Ultimate.vhd<br /> attach vdisk <br />assign letter=F <br />...
Attaching .VHD Images<br />Diskpart<br />Select vdisk file=c:wimsW7Ultimate.vhd<br /> attach vdisk <br />assign letter=r <...
OR Through Disk Management UI<br />Disk Management UI<br />Expand Storage<br />R-click Disk Management<br />Attach VHD<br ...
Adding Drivers to a VHD<br />Attach .VHD<br />Dism /image:F: /Add-Driver /driver:C:driversmydriver.INF<br />Dism /image:R:...
How DISM Works<br />SCCM<br />MDT<br />Windows Setup<br />DISM.exe<br />DISM – APIs for Clients<br /> APIs for Providers<b...
DISM and The Image<br />DISM can do different things based on what the operating system is of the image being serviced<br ...
DISM Options<br />
In Summary…<br />What DISM can do for you<br />Tools that were replaced<br />DISM Commands<br />DISM Architecture<br />DIS...
Call to Actions<br />Complete the Survey and Win TechNet Subsc- http://tinyurl.com/STEP190<br />Read more articles on http...
question & answer<br />
Upcoming SlideShare
Loading in …5
×

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

2,423 views

Published on

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.

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
2,423
On SlideShare
0
From Embeds
0
Number of Embeds
94
Actions
Shares
0
Downloads
29
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

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

  1. 1. Managing Your Images with Deployment Image Servicing & Management (DISM) – Windows 7<br />Vijay Raj<br />
  2. 2. About Me<br />Work at Texas Instruments<br />STEP Member for Windows 7<br />Expertise in Application Setups & Deployment (MVP)<br />Passionate about Technology Evangelism <br />Avid Blogger at http://www.msigeek.com<br />Excited about Cricket and Music<br />Fan of Mark Russinovich, Sachin and Rahman!<br />
  3. 3. Session Outline<br />What DISM can do for you<br />Tools that were replaced<br />DISM Commands<br />DISM Architecture<br />DISM Providers<br />DISM Options<br />
  4. 4. What DISM Does For You<br />Allows you to service images offline<br />Both .wim and .vhd<br />Gives you more functionality with consistent syntax<br />Replaced 3 tools<br />Package Manager (Pkgmgr.exe)<br />International Settings Configuration Tool (Intlcfg.exe)<br />Windows PE command-line tool (PEimg.exe)<br />
  5. 5. DISM<br />Supports only Vista SP1 and later images<br />Mount / unmount .wims <br />(no capture or apply feature)<br />Add / remove 3rd party device drivers ONLY<br />Add / remove language packs<br />Enable / disable / configure Windows features <br />Add Windows updates (MSU’s)<br />Image Context or NOT…<br />
  6. 6. With or Without Image Context…<br />Elevated CMD<br />Without Image Context<br />Dism /?<br />No image specified - your looking at the image that is currently running - called the HOST<br />With Image Context<br />Dism /online /?<br />Don’t try this on WinPE<br />Mounted image<br />Dism /Image:c:mountwin7 /? <br />
  7. 7. Get Information On An Image<br />In the past we had Imagex<br />Imagex /info <Path to image file><br />For example:<br />Imagex /info c:wimsinstall.wim<br />NOW we can use DISM<br />DISM /Get-WimInfo /wimfile:<Path to image file><br />Another example:<br />Dism /get-wiminfo /wimfile:c:wimsinstall.wim<br />Document, document, document!<br />
  8. 8. Mounting Images:The whole story…<br />Mount an image for offline servicing<br />Patch Tuesday – adding the new patches<br />Adding / removing drivers<br />Enable / disable windows fetaures<br />Firewall, <br />DISM /Mount-Wim /WimFile:C:<Path to image> /index:1 /MountDir:C:mount<br />DISM /Mount-Wim /Wimfile:c:wimsinstall.wim /MountDir:C:Mount<br />
  9. 9. Mounted Images<br />Get mounted wim information<br />Check your status<br />OK – good<br />Needs remount<br />Status – Needs remount<br />Attempt to ReMount-Wim<br />May need to Cleanup-Wim and then Remount-Wim<br />
  10. 10. Re-Mounting and Clean-Up<br />Re-Mount a .Wim<br />Dism /Remount-Wim /MountDir:<target_mount_directory><br />Cleanup a .wim<br />DISM /Cleanup-Wim<br />
  11. 11. Mounting Wims<br />demo<br />
  12. 12. Creating a .vhd<br />Open elevated command prompt<br />Diskpart<br />create vdisk file=c:W7Ultimate.vhd maximum=25000 type=fixed<br />Select vdisk file=c:W7Ultimate.vhd<br /> attach vdisk <br />List disk (find your new disk number)<br />Sel disk #<br />Create part primary<br />Sel part 1<br />
  13. 13. Creating a VHD Continued<br />Still in Diskpart<br />Sel part 1<br />Active<br />Format fs=ntfs quick<br />Assign<br />Detail partition (get the drive letter)<br />Exit<br />Mkdir f:windows<br />Imagex /apply c:wimsinstall.wim 4 f:<br />Edit BCD to boot this new .vhd<br />
  14. 14. To Attach a .VHD<br />Diskpart<br />Select vdisk file=c:wimsW7Ultimate.vhd<br /> attach vdisk <br />assign letter=F <br />exit<br />
  15. 15. Attaching .VHD Images<br />Diskpart<br />Select vdisk file=c:wimsW7Ultimate.vhd<br /> attach vdisk <br />assign letter=r <br />exit<br />
  16. 16. OR Through Disk Management UI<br />Disk Management UI<br />Expand Storage<br />R-click Disk Management<br />Attach VHD<br />Browse to your .vhd file<br />Can attach files in Read Only mode with one click<br />To Detach a .vhd<br />R-click the attached drive<br />Choose Detach VHD<br />
  17. 17. Adding Drivers to a VHD<br />Attach .VHD<br />Dism /image:F: /Add-Driver /driver:C:driversmydriver.INF<br />Dism /image:R: /Add-Driver /driver:C:drivers /recurse<br />Dism /image:R: /Add-Driver /driver:C:driversmydriver.INF /ForceUnsigned<br />
  18. 18. How DISM Works<br />SCCM<br />MDT<br />Windows Setup<br />DISM.exe<br />DISM – APIs for Clients<br /> APIs for Providers<br />DISM Provider<br />DISM Provider<br />DISM Provider<br />DISM Provider<br />Underlying Technologies<br />
  19. 19. DISM and The Image<br />DISM can do different things based on what the operating system is of the image being serviced<br />Providers are internal to the actual image<br />Providers are not the same from one OS to the next<br />Providers can be found in C:WindowsSystem32DISM<br />
  20. 20. DISM Options<br />
  21. 21. In Summary…<br />What DISM can do for you<br />Tools that were replaced<br />DISM Commands<br />DISM Architecture<br />DISM Providers<br />DISM Options<br />
  22. 22. Call to Actions<br />Complete the Survey and Win TechNet Subsc- http://tinyurl.com/STEP190<br />Read more articles on http://microsoft.com/springboard<br />You can get in touch with other Setup Deploy MVPs like Rhonda Layfield.<br />Deployment Guidelines and Windows Tips at http://www.msigeek.com<br />
  23. 23. question & answer<br />

×