Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security & DevOps Insights

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form
Home » Windows Server » Install Wim: How to Add Packages to Windows image Using the DISM Tool
  • ios microsoft remote desktop app
    Prevent the Saving of RDP Credentials in Windows 10 Windows
  • images 1
    How to reset and reinstall Windows 10 locally Windows
  • LINUX CONTAINERS
    How to install LXC/LXD for container management Linux
  • BitLocker renamedevicefghjkl
    What are the effect of renaming an MBAM-Protected Computer Windows
  • How To Fix “Startup Repair Couldn’t Repair Your PC
    How To Fix “Startup Repair Couldn’t Repair Your PC Windows
  • RSAT 678x381 1
    DNS manager console missing from RSAT tools on Windows 10 Windows
  • tmgexchange2013owachangepasswordform
    How to change your password in Outlook Web Access Network | Monitoring
  • Trellix MVISOSN
    How to install Trellix MVISON Endpoint Security | Vulnerability Scans and Assessment

Install Wim: How to Add Packages to Windows image Using the DISM Tool

Posted on 19/09/202028/09/2023 Christian By Christian No Comments on Install Wim: How to Add Packages to Windows image Using the DISM Tool
Install Wim

Deployment Image Servicing and Management (DISM.exe) is a command-line tool that helps to update offline Windows Images. There are two ways to install or remove packages offline with DISM. You can either apply an unattended answer file to the offline image, or you can add or remove the package directly from the command prompt using DISM or PowerShell. Here are some possible errors you can encounter while resolving this issue Error 0xc1570103: The license file was not found in the specified path, and how to fix error 0xc1510114: The wim file needs to be remounted.

Note: If you would like to install multiple packages to a Windows image with dependency requirements, the best way to ensure the correct order of the installation is by using an answer file. You can use DISM to apply the Unattend.xml answer file to the image. When you use DISM to apply an answer file, the unattended settings in the offline servicing configuration pass are applied to the Windows image.

How to Add Packages to Windows image

To ensure we can add packages to the Windows image, we must install the latest version of the Windows Assessment and Deployment Kit (Windows ADK), which contains all of the required tools, including DISM. Thus, below are the steps to add packages to an install.wim file (Windows image).
1: Ensure you mount the image. See this article on how to mount an image.
2: After mounting the images, you can remove packages you don’t require by your organization. See this link on how to remove packages from the Windows image.

Now that we have successfully cleaned out wim file, we can then proceed to add the packages. View the installed packages before proceeding. This guide will teach you how to add packages to an install.wim image.

Using DISM: Query the Windows image for pre-installed apps with the following command, which makes sense.
dism /Image:G:\MountZ /Get-Package

Add your desired packages: With the command above, we can review the package we need and then add them with the command below. Here is how to add LXPs to Windows image using DISM and PowerShell.

dism /Image:G:\Path-to-the-mounted-wim-file\<MountedZ(mountedDirectory)>  /Add-Package  /PackagePath:G:\path-to-the-package\the-cabinet(cab)-file-to-be-added

After successfully adding the package to the WIM file, you should get a message as shown below

Deployment Image Servicing and Management tool
Version: xxxxxxxxxxxxxxx
Image Version: xxxxxxxxxxxxxxx

Processing 1 of 1 - Adding package Microsoft-Windows-TabletPCMath-Package~31bf3856ad364e35~amd64~~.cab [==========================100.0%==========================] The operation completed successfully.

After successfully adding the packages, save (commit) the changes to the WIM file as demonstrated below. This will unmount and save the newest state. For more on these commands, see the Microsoft documentation.

dism /unmount-wim /mountdir:G:\Path-to-the-mount-file\MountZ /commit

I hope you found this blog post helpful. If you have any questions, please let me know in the comment session.

Rate this post

Thank you for reading this post. Kindly share it with others.

  • Click to share on X (Opens in new window) X
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on Pinterest (Opens in new window) Pinterest
  • Click to share on Tumblr (Opens in new window) Tumblr
  • Click to share on Telegram (Opens in new window) Telegram
  • Click to share on WhatsApp (Opens in new window) WhatsApp
  • Click to share on Pocket (Opens in new window) Pocket
  • Click to share on Mastodon (Opens in new window) Mastodon
  • Click to share on Bluesky (Opens in new window) Bluesky
  • Click to share on Threads (Opens in new window) Threads
  • Click to share on Nextdoor (Opens in new window) Nextdoor
Windows Server Tags:DISM, install.wim, Microsoft Deployment Toolkit (MDT), WDS, Windows 11, Windows Deployment Services

Post navigation

Previous Post: Determine Apps UWP and remove pre-provisioned Appx in Windows
Next Post: Action cannot be complete because the computer is open in Wimserv

Related Posts

  • 05kvj2jzbpj1ugp4etb4gdf 19.fit scale.size 2698x1517 e1690630247655
    Various methods to launch the Event Viewer Windows Server
  • mountedimagenotaccessible
    Unable to access the image: Make sure that the image path and the Windows directory for the image exist and you have Read permissions on the folder Windows
  • Disable BitLocker
    How to Disable BitLocker on Windows 10 Windows
  • BitLocker
    BitLocker Drive Encryption architecture and implementation types on Windows Windows Server
  • 1 kAUgwdVYmcVgUSXiwUkObw
    Error 0x801c001d – Automatic registration failed: Failed to look up the registration service from AD Windows Server
  • image 77
    How to use the DigiCert certificate utility for Windows to create a CSR Windows

More Related Articles

05kvj2jzbpj1ugp4etb4gdf 19.fit scale.size 2698x1517 e1690630247655 Various methods to launch the Event Viewer Windows Server
mountedimagenotaccessible Unable to access the image: Make sure that the image path and the Windows directory for the image exist and you have Read permissions on the folder Windows
Disable BitLocker How to Disable BitLocker on Windows 10 Windows
BitLocker BitLocker Drive Encryption architecture and implementation types on Windows Windows Server
1 kAUgwdVYmcVgUSXiwUkObw Error 0x801c001d – Automatic registration failed: Failed to look up the registration service from AD Windows Server
image 77 How to use the DigiCert certificate utility for Windows to create a CSR Windows

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

VEEAMLEGEND

vexpert-badge-stars-5

Virtual Background

GoogleNews

Categories

veeaam100

sysadmin top30a

  • ios microsoft remote desktop app
    Prevent the Saving of RDP Credentials in Windows 10 Windows
  • images 1
    How to reset and reinstall Windows 10 locally Windows
  • LINUX CONTAINERS
    How to install LXC/LXD for container management Linux
  • BitLocker renamedevicefghjkl
    What are the effect of renaming an MBAM-Protected Computer Windows
  • How To Fix “Startup Repair Couldn’t Repair Your PC
    How To Fix “Startup Repair Couldn’t Repair Your PC Windows
  • RSAT 678x381 1
    DNS manager console missing from RSAT tools on Windows 10 Windows
  • tmgexchange2013owachangepasswordform
    How to change your password in Outlook Web Access Network | Monitoring
  • Trellix MVISOSN
    How to install Trellix MVISON Endpoint Security | Vulnerability Scans and Assessment

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,836 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon

Tags

Active Directory AWS Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Server 2016

Copyright © 2025 TechDirectArchive

 

Loading Comments...
 

You must be logged in to post a comment.