Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security, Veeam & DevOps

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form

Remove Windows 10 Apps with DISM: How to remove pre-provisioned apps from Windows Image

Posted on 19/09/202022/03/2024 IT Expert By IT Expert 1 Comment on Remove Windows 10 Apps with DISM: How to remove pre-provisioned apps from Windows Image
  1. Home
  2. Windows Server
  3. Remove Windows 10 Apps with DISM: How to remove pre-provisioned apps from Windows Image
Remove pre-provisioned apps

You can use app package-servicing commands to add, remove, and list provisioned app packages (.appx or .appxbundle) in a Windows image. A .appxbundle, new for Windows 10, is a collection of app and resource packages used together to enrich the app experience while minimizing the disk footprint on a given PC. Please see How to determine Apps UWP and remove pre-provisioned appx in Windows 10, and How to deploy MBAM Client as part of a Windows Deployment.

These apps are available to users upon login on Windows 10 devices. Windows starts to install apps for that particular user. These apps are referred to as provisioned apps (pre-installed apps).

Pre-provisioned apps can be useless for some organisations. Often times, these apps are deleted and there are new updates from Microsoft prompting you to upgrade your Operating System. Most times, after these OS are upgraded to the latest version of Windows, these preinstalled apps appear again. To mitigate this issue, this appx needs to be removed in the Windows Image even before installing the OS.

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.

Remove Windows 10 Apps with DISM

For related articles, please see how to fix error 0xc1510114: The wim file needs to be remounted, Error 0x80070002: When trying to mount an image file, Error code 15601: 

The idea is, when an upgrade is performed. This appx will not be detected by the upgrade and therefore the appx will not be deployed. Before proceeding with the steps below. The Install.wim file needs to be mounted, after which you can manipulate the windows image file with DISM Tool. To mount a wim file, please use the command below.

dism /Mount-Wim /WimFile:<Path>image.wim /Index:<indexnumber> /MountDir:<mountDir>
dism /Mount-Wim /WimFile:G:\Path-to-the-install.wim-file\install.wim /Index:2 /MountDir:G:\Path-to-the-mount-file\MountZ

How to resolve DISM unspecified error when removing preinstalled packages, and Error 0xc1420127: The specified image in the specified wim is already mounted for read and write access.

How to remove Pre-installed Applications?

Via PowerShell or DISM. This guide will teach you how to remove packages in an install.wim image.

1: DISM:

Querying the Windows image for pre-installed apps requires using any of the following commands.

dism /Image: <MountedDir> /Get-Provisionedappxpackages
dism /image:G:\Path-to-the-mount-file\MountZ  /Get-Provisionedappxpackages

Now that you have determined the Package Family name (UWP), we can proceed to remove them.

Note: This Family name changes from one version of Windows to the other. Please pay attention to it or else you will get an error.

DISM

Next step in removing Windows 10 Apps with DISM is determining. Now, you can proceed to remove the appx after determining the PackageFullName to use as shown in the image above. use the /Remove-Package – Removes packages from the image to get rid of the package name this way.

dism /image:G:\Path-to-the-mount-file\MountZ /Remove-Provisionedappxpackage /PackageName:Microsoft.WindowsCalculator_2015.1009.20.0_neutral_~_8wekyb3d8bbwe
dism /image:G:\Path-to-the-mount-file\MountZ /Remove-Provisionedappxpackage /PackageName:Microsoft.XboxSpeechToTextOverlay_1.21.13002.0_x64__8wekyb3d8bbwe

Enter the following command again to check whether your selected apps have been removed.

dism /image:G:\Path-to-the-mount-file\MountZ /Get-Provisionedappxpackages

Once you finish modifying the WIM file, simply commit (save) it. This will unmount and save the newest state.

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

2: PowerShell

You can also use PowerShell to add, remove, and list app packages (.appx or .appxbundle) per image or per user in a Windows installation. See the following articles on how to use the PowerShell instead of DISM.

Mount-WindowsImage -Path .\mount\ -ImagePath .\install.wim -Index 2
Remove-AppxProvisionedPackage -PackageName Microsoft.WindowsCalculator_2015.1009.20.0_neutral_~_8wekyb3d8bbwe -Path .\mount
Dismount-WindowsImage -Path .\mount -Save

I hope you found this blog post helpful. By now, you should have a vivid knowledge of how to remove Windows 10 Apps with DISM. Please let me know in the comment session if you have any questions.

Rate this post

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

  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Facebook (Opens in new window) Facebook
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Telegram (Opens in new window) Telegram
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on Bluesky (Opens in new window) Bluesky
  • Share on Threads (Opens in new window) Threads
  • Share on Nextdoor (Opens in new window) Nextdoor
Windows Server Tags:Windows 10, Windows Apps

Post navigation

Previous Post: Add languages to Windows images using DISM and PowerShell
Next Post: Determine Apps UWP and remove pre-provisioned Appx in Windows

Related Posts

  • image 130
    How to fix the Security Database on the Server does not have a Computer Account for this Workstation Trust Relationship on Windows Server [Part 2] Scripts
  • How to pause updates and why
    How to Pause Windows Update via Windows Settings Windows
  • DC 3
    How to demote and remove a Domain Controller on Windows Servers Windows Server
  • windows 1 2
    How does Dynamic Host Configuration Protocol work Windows Server
  • Determine GPO from GUID or Name
    How to determine GPO from GUID or Name Windows
  • Zit Error
    How to fix Domain Join Error during Windows Deployment Windows Server

More Related Articles

image 130 How to fix the Security Database on the Server does not have a Computer Account for this Workstation Trust Relationship on Windows Server [Part 2] Scripts
How to pause updates and why How to Pause Windows Update via Windows Settings Windows
DC 3 How to demote and remove a Domain Controller on Windows Servers Windows Server
windows 1 2 How does Dynamic Host Configuration Protocol work Windows Server
Determine GPO from GUID or Name How to determine GPO from GUID or Name Windows
Zit Error How to fix Domain Join Error during Windows Deployment Windows Server

Comment (1) on “Remove Windows 10 Apps with DISM: How to remove pre-provisioned apps from Windows Image”

  1. Avatar photo SV1978 says:
    07/05/2022 at 12:30 PM

    Nice! Thanks for explaining this

    Log in to Reply

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

Veeam Vanguard

  • Capture
    5 ways to take screenshots on Windows 11 JIRA|Confluence|Apps
  • wordpresserrorsiteadmin
    There has been a critical error on this website please check your site admin email inbox for instructions Web Server
  • Hub Transport 1
    Hub Transport Server: Resolving ‘Failed to Reach Running Status’ Network | Monitoring
  • Reset folder view settings on File Explorer for Windows 11 and 10
    Reset folder view settings on File Explorer for Windows 11 and 10 Windows
  • LAPs on Windows Part of the OS
    How to configure Windows LAPS Windows
  • windows workstations inactivity
    Configure Windows Device Inactivity Limit Locally and Domain Wide Windows
  • onedrived43
    How to share Files and Restore Previous versions of Files in Microsoft OneDrive Backup
  • 1723152 3cc3 2 750x405 1
    Cluster creation in Proxmox VE Virtualization

Subscribe to Blog via Email

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

Join 1,801 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

AWS Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Deployment Services Windows Server 2016

Copyright © 2025 TechDirectArchive

Loading Comments...

You must be logged in to post a comment.