Compartilhar via


Add an Update to a Windows PE Image

Applies To: Windows 7, Windows Server 2008 R2

Note

This content applies to Windows 7. For Windows 8 content, see Windows Deployment with the Windows ADK.

This topic demonstrates how to use the Deployment Image Servicing and Management (DISM) tool to add a Windows® Preinstallation Environment (Windows PE) update to an offline Windows PE image. Most hotfixes from Windows Update do not apply to Windows PE for the following reasons:

  • Windows PE is a small subset of the Windows operating system.

  • Windows PE runs very few services.

To add a Windows PE update to a Windows PE image offline

  1. Use the DISM tool to mount the base image to a local Windows PE directory. For example,

    Dism /Mount-Wim /WimFile:C:\winpe_x86\winpe.wim /index:1 /MountDir:C:\winpe_x86\mount
    
  2. Add an update to the base image by using the DISM command with the /Add-Package option. For example,

    dism /image:C:\winpe_x86\mount /Add-Package /PackagePath:<full Path to a package> 
    
  3. Determine the name of the update by using the DISM command with the /Get-Features option. For example,

    dism /image:<path to image> /Get-Features
    

Note

By default, the state of each package is set to "Enable Pending", which indicates the Optional Component is installed and enabled. For more information on the /Get-Feature option, see Enable or Disable Windows Features Online.

  1. Repeat for each additional update.

  2. Commit changes to the image. In this step, you commit the changes to the original image file by using the DISM /unmount option with the /commit option. For example:

    Dism /unmount-Wim /MountDir:C:\winpe_x86\mount /Commit
    

To learn more about managing packages, see Operating System Package Servicing Command-Line Options.

See Also

Concepts

Deployment Image Servicing and Management Command-Line Options