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\" where 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\"

Package name

Windows PE 3 Package Description

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

Adds HTML application support.

Adds legacy setup support.

Adds Microsoft Data Access component support.

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

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

Adds setup features.

Adds client features of the setup support.

Adds server features of the setup support.

Adds the Windows Deployment Services tools package.

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 - IT Batch Tutorials. Windows is a registered trademark of Microsoft Corporation in the United States and other countries.