14 December 2020

DISM to remove Win10 Appx apps from a .WIM file

Here's a great way to remove packages from a WIM file to ensure you don't have to build and capture another image within SCCM.  

This has come about due to a client having an image, and later requiring certain apps to be removed.

Create a new folder on your server called "Mounted_Image"

Mount your WIM file to that location with the following command:

Mount-WindowsImage -ImagePath "E:\SourceFiles\CapturedWims\CAPTURE001.wim" -Index 1 -Path "c:\Mounted_image"

Now create a PS1 file with the following, which will allow you to remove the various appx packages:


foreach ($app in $apps) {	
	Get-AppXProvisionedPackage -path C:\Mounted_Image | where DisplayName -EQ $app | Remove-AppxProvisionedPackage

That'll then go through and remove the various packages from the WIM file.

You can test after this by running the following command:

Get-AppxProvisionedPackage -Path c:\Mounted_Image

Once you are done, make sure you save the WIM file and dismount with the following command:

Dismount-WindowsImage -Path c:\Mounted_Image -Save


  1. Before visiting to your page I was watching a drama show on <a href="https://www.vingle.net/posts/3909261>Watch VOOT in USA</a> and I can say that it is true value for money and i bookmarked your page for fututre use.

  2. This comment has been removed by the author.

  3. This comment has been removed by the author.

  4. It was nice to read your blog. If anyone needs case study help in Australia then visit to our website:- Case Study Help Australia . We provide all type of case study assignments for MBA, Nursing, Laws and Engineering students.

  5. CasinoTopDuo Review - €100 + 100 FS Bonus + 200 FS
    CasinoTopDuo 썬 시티 review, 해외바카라 the casino 마틴게일전략 online platform, is 100% certified and 배당흐름 licensed by the 다 파벳 먹튀 UK Gambling Commission.

  6. This knowledge, in my opinion, should be shared with everyone. You have explained it so well that it would be fantastic if you could also share it with us. I had no idea this component existed.
    source : the web design jack

  7. A private maths tutor is a great way to improve your grades and learn difficult concepts. Many private tutors provide online or distance learning options. You may want to consider these options if you're struggling in your classes. One of the major benefits of one-on-one tuition is that you can learn at your own pace and focus on your strengths and weaknesses. You can also choose a private maths tutor near me who is experienced and willing to provide additional help for your specific situation.