Windows 7 Test Prep
E N D
Presentation Transcript
Windows 7 Test Prep Ch 3: Deploying System Images Part 1
WDS and MDT 2010 • WDS (Windows Deployment Services) • Cannot run configuration tasks after deployment • MDT 2010 (Microsoft Deployment Toolkit) • Allows you to automatically run configuration tasks after deploment
ImageX and DISM • ImageX creates an image of a computer • While booted to Windows PE • DISM enables manipulation of the image after it is created • You can use either ImageX or DISM to mount an image and work with it offline
Lesson 1: Managing a System Image Before Deployment • Suppose you need to add a driver or otherwise change an image • You could deploy it to a computer, run Sysprep, and recapture it • Servicing the image offline is more efficient
Using DISM WIM Commands and Mounting an Image • DISM is the recommended Windows AIK tool for managing and manipulating offline images • You can • Install and configure OS updates, packages and drivers • Modify Windows PE images • Change language, locale, fonts, and input settings on a Windows image
DISM Compatible with Vista • DISM is backwards-compatible with Vista SP1 • You can manipulate Vista SP1 images on Win 7 or Win Server 2008 • You can manipulate Win 7 or Win Server 2008 images on Vista SP1
Getting Info with DISM • dism /get-wiminfo /wimfile:g:\installationimage.wim
Getting Info with ImageX • imagex /info g:\installationimage.wim
Mounting Images • dism /mount-wim /wimfile:g\installationimage.wimindex:1 /mountdir:c:\mount • OR • imagex /mountrw g:\installationimage.wim 1 c:\mount2
Using a Mounted Image with DISM • Mount it with /mount-wim • Get info about mounted images with /get-mountedwiminfo • Create a scratch directory to work in while modifying files • dism /image:c:\mount /scratchdir:c:\workingfiles • Modify files in the scratch directory, then • dism /commit-wim /mountdir:c:\mount
Cleanup • dism /cleanup-wim • Removes corrupted files in all writable mounted images • dism /remount-wim • Retrieves and remounts orphan images • dism /cleanup-image • Used with /RevertPendingImages parameter to recover from a boot faillure
Working with an Online Image • dism /online /get-drivers • Lists all out-of-box drivers that are currently installed • You read info from an online image, don't modify it
Drivers • Dism can only service .inf drivers • .MSI and .EXE drivers are not supported • Options • /get-drivers • /get-driverinfo • /add-driver • /remove-driver • Put all required drivers in a folder and add them all at once by specifying the folder
Applications and Application Patches • dism /image:path_to_directory [/check-apppatch | /get-apppatchinfo: || get-apppatches | /get-appinfo | /get-apps] • apppatch options apply only to installed patches (.msp files) • app options apply only to Windows Installer applications (.msi files) • DISM cannot gather information about .exe or .dll files
Adding Applications to an Image with DISM • You can add app patches, if they are .cab or .msu files with DISM • You can enable and disable Windows features with DISM • You cannot add applications with DISM • Install apps to reference computer before imaging it • Use the Add Application wizard in MDT 2010
Adding Apps with Unattend.xml • Use DISM to associate an image with an Unattend.xml file • In Unattend.xml, place postinstallation tasks that connect to a file server and install apps • This is called "thin image"
Servicing OS Patches • DISM allows you to add OS patches offline • Patches must be .cab or .msu files • You can get info about .cab files, but not .msu files • Insert package into image with • DISM /add-package • Then commit changes with • DISM /commit-wim
.msu and .cab • You cannot remove a .msu from an image • You can remove a .cab
International Settings • DISM can manage international settings in an image
Tzutil • Tzutil shows the time zone for a computer
Upgrading Images • You can upgrade images to a higher Windows 7 edition • Offline upgrades don't require a product key; the key is entered in one of these manners: • In the OOBE part of the first startup • From an Unattend.xml file • Offline with DISM /set-productkey
Servicing Windows PE Images • Win PE images can only be serviced offline • DISM /get-scratchspace • Shows the size of available RAMDisk
Unattended Servicing • Enables you to install multiple packages in the correct order • DISM /image:c:\images /apply-unattend:path-to-unattend.xml • You can also service running operating systems with the /online parameter
Using Answer Files with Windows Images • Autounattend.xml was created with Windows SIM (System Image Manager) • If you want to use an additional answer file for other packages, you typically name it Unattend.xml • You associate the image with the Unattend file with • DISM /image:c:\mount /apply-unattend:\c:\answer-files\unattend.xml