Information Technology Reference
In-Depth Information
Updating images with security updates, hotixes, and drivers
You can use a capture image to create an updated install image that includes current hot-
fixes and updates, or you can use the Deployment Image Servicing and Management (DISM)
platform commands and the Windows PowerShell Dism module to mount an offline image
and update it directly.
You can directly modify an offline image (.wim) or virtual hard disk (.vhd or .vhdx) with the
Dism cmdlets. To modify an image or virtual hard disk by inserting an update into it, follow
these steps:
Set the image to read-write by clearing any read-only attributes with attrib -r.
1.
Mount the image on an empty mount point using the Mount-WindowsImage cmdlet.
2.
3. Extract the contents of the update (.msu file) using WinRAR or another third-party tool.
4. Inject the .cab file into the mounted image by using the Add-WindowsPackage cmdlet.
Commit the changes and unmount the install image by using the Save-WindowsImage
and Dismount-WindowsImage cmdlets.
5.
Installing or removing features in ofline images
You can add or remove Windows features in an existing image or virtual hard disk by using the
Enable-WindowsOptionalFeature cmdlet or the Disable-WindowsOptionalFeature cmdlet, re-
spectively. You can modify the currently running image with the -online parameter, or modify
an offline image or virtual hard disk by mounting it and modifying the mounted image. To
modify an offline image or virtual hard disk, follow these steps:
Set the image to read-write by clearing any read-only attributes with attrib -r.
1.
Mount the image on an empty mount point using the Mount-WindowsImage cmdlet.
2.
Modify the image with the Enable-WindowsOptionalFeature cmdlet or the
Disable-WindowsOptionalFeature cmdlet, as appropriate.
3.
Commit the changes and unmount the install image by using the Save-WindowsImage
and Dismount-WindowsImage cmdlets.
4.
Capturing a new template image
For many changes, it's easiest to modify an existing image by updating an offline image or
virtual hard disk. When more substantial changes are required, however, or when there is a
change in the underlying hardware or core software suite, it is often easier to create a new
template computer and then capture an image from it. To do this, follow these steps:
Create a capture image in the Windows Deployment Services console by right-clicking
a boot image and selecting Create Capture Image to start the Create Capture Image
Wizard, as shown in Figure 1-4.
1.
 
 
 
 
Search WWH ::




Custom Search