How to Use DISM to Add Packages to Custom WinPE or WIM Images?

How to use Windows DISM (Deployment Image Servicing and Management) tool to add packages and third party drivers to WIM images? This example show how to create a custom Windows PE image using Windows AIK 3.0.

Read related articles: Create a Bootable WinPE USB Drive and Create Windows PE Image.

To get more information about the mountable wim file use the commands: dism /get-wiminfo /wimfile:c:\winpe_x86\winpe.wim and dism /get-mountedwiminfo

DISM /get-mountedwiminfo

Customize the mounted winpe.wim image to add Windows PE packages and custom drivers. To add package use the command: dism /image:c:\winpe_x86\mount /add-package /packagepath:"C:\Program Files\Windows AIK\Tools\PETools\x86\WinPE_FPs\winpe-hta.cab" where winpe-hta.cab can be changed. See the list of available packages to use in Windows Pre-installation Environment. Use command dism /image:c:\winpe_x86\mount /get-packages to verify and list added packages.

dism /image:c:\winpe_x86\mount /add-package /packagepath:"C:\Program Files\Windows AIK\Tools\PETools\x86\WinPE_FPs\winpe-hta.cab"

Package name

Windows PE 3 Package Description

winpe-fontsupport-xx-xx.cab

USE approproate package to add  ja-JP, ko-KR, zh-CN, zh-HK, and zh-TW support. 

winpe-hta.cab

Adds HTML application support.

winpe-legacysetup.cab

Adds legacy setup support.

winpe-mdac.cab

Adds Microsoft Data Access component support.

winpe-pppoe.cab

Adds PPPoE (Point-to-Point protocol over Ethernet) support.

winpe-scripting.cab

Adds support for the Windows Scripting Host (WSH). This can be used to execute script files.

winpe-setup.cab

Adds setup features.

winpe-setup-client.cab

Adds client features of the setup support.

winpe-setup-server.cab

Adds server features of the setup support.

winpe-wds-tools.cab

Adds the Windows Deployment Services tools package.

winpe-wmi.cab

Adds support for Windows Management Instrumentation.

To add third-party custom drivers into the winpe.wim image use the command Dism /image:C:\winpe_x86\mount /Add-Driver /driver:C:\drivers\ where c:\drivers is the folder of your custom drivers.

Dism /image:C:\winpe_x86\mount /Add-Driver  /driver:C:\driver\

Add all drivers from a top level folder and its subfolders:
Dism /image:C:\winpe_x86\mount /add-driver /driver:C:\drivers /recurse

Add a single specific driver:
Dism /image:C:\winpe_x86\mount /add-driver /driver:C:\drivers\drivername.inf

Add unsigned driver:
Dism /image:C:\winpe_x86\mount /add-driver /driver:C:\drivers\drivername.inf /ForceUnsigned

 

 

Add comment


Security code
Refresh

itBatch.com - IT Batch Tutorials. Windows is a registered trademark of Microsoft Corporation in the United States and other countries.