Removing Windows 10 Universal Apps

Today’s Windows 10 Deployment Tip will include one of the most demanded help for Windows 10. We will go over how to remove Windows 10 Universal Apps for your production Windows 10 build.

The biggest misconception is that you remove Windows 10 Universal Apps during your build and capture.  These Apps will need to be removed during your Production OSD Build.  This can be easily done by incorporating a Run Command Line / Run PowerShell Script task sequence step that runs the below code / script.

There is two separate processes to remove the Universal Apps you desire.  These are PowerShell commands, that are in the DISM module.

Remove-AppXPackage and Remove-AppXProvisionedPckage

First compile a list to a text file, example:

To retrieve the applications run the following PowerShell commands on a Windows 10 device.

Get-AppxPackage -AllUsers | Select-Object Name | Out-File C:\Temp\AppX.txt -Force
Get-AppxProvisionedPackage -Online | Select-Object DisplayName | Out-File C:\Temp\Appx.txt -Append -Force

Then go through the text file and remove the duplicates and then ones you WANT on the device.  Any Windows 10 Universal Apps specified in the text file will be removed.

AppX.txt Example:

Windows 10 Universal Apps

Once the text file is created, a script will need to be written to loop through and remove the desired Universal Apps / AppX Packages.

Import-Module DISM
$appx = Get-Content "$PSScriptRoot\Appx.txt"

ForEach ($obj in $appx)
{
	Get-AppXPackage -Name $obj -AllUsers | Remove-AppXPackage
	Get-AppXProvisionedPackage -Online | Where-Object {$_.DisplayName -eq $obj} | Remove-AppXProvisionedPackage -Online
}

Thank you, and stay tuned for the next Windows 10 Deployment Tip.

Share