Windows OS Hub
  • Windows Server
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2008 R2
    • SCCM
  • Active Directory
    • Active Directory Domain Services (AD DS)
    • Group Policies
  • Windows Clients
    • Windows 11
    • Windows 10
    • Windows 8
    • Windows 7
    • Windows XP
    • MS Office
    • Outlook
  • Virtualization
    • VMWare
    • Hyper-V
    • KVM
  • PowerShell
  • Exchange
  • Cloud
    • Azure
    • Microsoft 365
    • Office 365
  • Linux
    • CentOS
    • RHEL
    • Ubuntu
  • Home
  • About

Windows OS Hub

  • Windows Server
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2008 R2
    • SCCM
  • Active Directory
    • Active Directory Domain Services (AD DS)
    • Group Policies
  • Windows Clients
    • Windows 11
    • Windows 10
    • Windows 8
    • Windows 7
    • Windows XP
    • MS Office
    • Outlook
  • Virtualization
    • VMWare
    • Hyper-V
    • KVM
  • PowerShell
  • Exchange
  • Cloud
    • Azure
    • Microsoft 365
    • Office 365
  • Linux
    • CentOS
    • RHEL
    • Ubuntu

 Windows OS Hub / Windows 10 / How to Uninstall Built-in UWP (APPX) Apps on Windows 10?

April 19, 2023 PowerShellWindows 10

How to Uninstall Built-in UWP (APPX) Apps on Windows 10?

Windows 10 ships with some preinstalled modern UWP apps (they are also called Metro apps, Microsoft Store or APPX packages). These are Calculator, Calendar, Mail, Cortana, Maps, News, OneNote, Groove Music, Camera, etc. Windows 10 UWP apps are automatically installed to the user profile during the first logon. Most of these applications are not needed for business users, so they usually need to be removed in a corporate environment. In this article, we’ll look at how to properly uninstall the built-in UWP/APPX apps on Windows 10, which will save additional space on the system drive and remove unnecessary items in the Start Menu.

Contents:
  • How to Remove Windows Store Applications (APPX) using Windows 10 Settings?
  • Removing a Specific UWP App on Windows 10 via PowerShell
  • How to Force Uninstall All Built-in UWP Apps from Windows 10?

How to Remove Windows Store Applications (APPX) using Windows 10 Settings?

The most obvious and simple way to uninstall a modern Microsoft Store app on Windows 10 is through the new Settings control panel. To do this, press the Start button and go to Settings -> Apps -> Apps and features. In the list of apps, select the app to be uninstalled. Click the Uninstall button.

uninstall UWP app on WIndows 10 from Settings

This will only uninstall the UWP app in the current user’s profile. When any other new user logs in, the appx package will be automatically installed from the system store.

Also, note that most of the preinstalled modern apps are protected and simply don’t have the Uninstall button available (it is greyed out).

unable to remove some system and protected appx packages on windows 10

You can only uninstall such built-in Windows 10 system apps via the PowerShell CLI.

Removing a Specific UWP App on Windows 10 via PowerShell

Let’s take a look at how to uninstall a specific UWP app on Windows 10 using PowerShell. Please note that there are two types of apps in Windows 10:

  • AppX packages – UWP apps that are installed for the current Windows 10 user;
  • AppX provisioned packages — built-in Windows 10 apps that are installed when the user first logs on to the system.

Run the PowerShell console as an administrator. The following command will list the modern apps installed for your user account:

Get-AppxPackage | select Name,PackageFullName,NonRemovable

Get-AppxPackage - list installed appx packages on windows 10

If you uninstalled an app from the Windows 10 Settings menu, it will disappear from this list.

You can list installed applications for all users. In this case, the command will look like this:

Get-AppxPackage -AllUsers | select Name,PackageFullName,NonRemovable

Tip. The results of the command can be saved as a plain text file to make it more convenient to view and look for the necessary package name:

Get-AppxPackage –AllUsers>c:\data\win10_apps_list.txt

To find an app by name, use the following wildcard command (in this example we’re looking for the Bing Weather app):

Get-AppxPackage -AllUsers | select Name,PackageFullName,NonRemovable | where-object {$_.Name -like "*Weather*"} | Format-Table

find AppxPackage fullname via powershell

To remove a specific appx application for the current user, you need to copy the package name from the PackageFullName column and paste it into the PowerShell console as an argument of the Remove-AppxPackage cmdlet:

Remove-AppxPackage Microsoft.BingWeather_4.25.20211.0_x64__8wekyb3d8bbwe

powershell cmdlet Remove-AppxPackage

The command removed the application for the current user only. To uninstall the application for all users of the computer, use the –AllUsers parameter:

Remove-AppxPackage -AllUsers Microsoft.BingWeather_4.25.20211.0_x64__8wekyb3d8bbwe

Or use the following PowerShell one-liner:

Get-AppxPackage * BingWeather * -AllUsers| Remove-AppPackage –AllUsers

If you have to uninstall a certain app for a specific local user profile, you need to use the parameter -User <user_name>.

When you uninstall built-in app in this way, it still remains on the system in a Staged state (and is stored on a system partition in C:\Program Files\WindowsApps directory). The Staged state means that the application will be deployed for every new user account on this computer.

Now let’s take a look at the list of Staged applications that are built into the Windows image and are automatically installed for all users when they first log into the computer:

Get-AppxProvisionedPackage -online |select DisplayName,PackageName

Get-AppxProvisionedPackage - list provisioned UWP packages in windows 10 image

To completely uninstall a specific staged UWP app from a Windows 10 image, you need to specify its name in the Remove-AppxProvisionedPackage cmdled:

Get-AppxProvisionedPackage -online | where-object {$_.PackageName -like "*BingWeather*"} | Remove-AppxProvisionedPackage -online –Verbose

Remove-AppxProvisionedPackage - uninstall provisioned appx from windows image using powershell

Now when a new Windows 10 user logs in, this provisioned app won’t be installed in user profile.

How to Force Uninstall All Built-in UWP Apps from Windows 10?

Of course, removing the built-in apps on Windows 10 one at a time is a tedious task. You can use a simple PowerShell script to uninstall all APPX automatically.

Important. Note that you don’t need to uninstall all UWP apps in a row using the command:

Get-AppXProvisionedPackage -online | Remove-AppxProvisionedPackage -online

Don’t uninstall system apps such as Microsoft.VCLibs, Microsoft.NET.Native.Framework, Microsoft.NET.Native.Runtime, Microsoft.WindowsStore. The same Photos app with certain settings works quite quickly, but certainly not as convenient as the classic “Windows Photo Viewer“.

Also, some of the pre-installed UWP apps on Windows are difficult to restore. For example, it is hard to restore Microsoft Store on Windows 10 after uninstalling it via PowerShell.

Let’s create a list of provisioned applications to be removed:

$UWPApps = @(
"Microsoft.Microsoft3DViewer"
"Microsoft.MicrosoftOfficeHub"
"Microsoft.MicrosoftSolitaireCollection"
"Microsoft.MicrosoftStickyNotes"
"Microsoft.MixedReality.Portal"
"Microsoft.MSPaint"
"Microsoft.Office.OneNote"
"Microsoft.People"
"Microsoft.ScreenSketch"
"Microsoft.Wallet"
"Microsoft.SkypeApp"
"microsoft.windowscommunicationsapps"
"Microsoft.WindowsFeedbackHub"
"Microsoft.WindowsMaps"
"Microsoft.WindowsSoundRecorder"
"Microsoft.Xbox.TCUI"
"Microsoft.XboxApp"
"Microsoft.XboxGameOverlay"
"Microsoft.XboxGamingOverlay"
"Microsoft.XboxIdentityProvider"
"Microsoft.XboxSpeechToTextOverlay"
"Microsoft.YourPhone"
"Microsoft.ZuneMusic"
"Microsoft.ZuneVideo"
)

In this example, I’ve created a list of built-in apps that I don’t need in Windows 10 build 2004. Please note that the list of apps may differ depending on the build of Windows 10. You should always check all staged apps in your Windows 10 build and update this list if needed.

Now, let’s remove these apps from both the Windows 10 image and all local user profiles:

foreach ($UWPApp in $UWPApps) {
Get-AppxPackage -Name $UWPApp -AllUsers | Remove-AppxPackage
Get-AppXProvisionedPackage -Online | Where-Object DisplayName -eq $UWPApp | Remove-AppxProvisionedPackage -Online
}

how to uninstall built-in Windows 10 apps for all users with powershell script

Now check the list of UWP applications remaining in the Windows image. The list should be seriously reduced:

Get-AppxProvisionedPackage -online |Select-object DisplayName

Thus, all new user profiles will be created without preinstalled Windows 10 applications (new user profiles will be created much faster).

Hint. If you receive error 0x80073CFA when removing a UWP app on Windows, it means the app is protected. You can uninstall such appx package according to this guide: https://woshub.com/remove-appxpackage-0x80073cfa-removal-failed/.

Alternatively, you can use the Out-GridView cmdlet for the convenience of manually removing preinstalled apps in Widows 10.

Get-AppxProvisionedPackage -online | Out-GridView -PassThru | Remove-AppxProvisionedPackage –online

This script will display a GUI table with a list of provisioned apps in the Windows 10 image. You just need to select the UWP applications you want to uninstall (several items can be selected by holding the CTRL key) and click Ok.

graphical powershell script to easily remove appx uwp provisioned packages on Windows 10

You can remove preinstalled apps after deploying Windows 10 to user computers (for example, by running a PowerShell script through Group Policy and mandatory filtering by Windows 10 build number using GPO WMI filters). However, you can remove appx from the reference Windows image that you use to deploy to workstations (assume the path to the mounted image is c:\offline).

Use the following command to remove provisioned apps from mounted Windows 10 image in the offline mode:

foreach ($UWPApp in $UWPApps) {
Get-AppXProvisionedPackage –Path c:\offline | Where-Object DisplayName -eq $UWPApp | Remove-AppxProvisionedPackage –Path c:\offline
}

Read more about removing built-in apps and features from the Windows 10 install image.

If you need to reinstall removed apps, you can use the Add-AppXPackage cmdlet to get the appx package info from the XML manifest file and register it Windows:

Get-AppxPackage -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}

restoring removed appx application on windows 10 with powershell via appmanifest

3 comments
6
Facebook Twitter Google + Pinterest
previous post
Creating a Keytab File for Kerberos Authentication in Active Directory
next post
Enabling DNS over HTTPS (DoH) on Windows 10

Related Reading

How to Connect VPN Before Windows Logon

November 14, 2023

Using WPAD (Web Proxy Auto-Discovery Protocol) on Windows

November 7, 2023

Send Emails with Microsoft Graph API and PowerShell

November 6, 2023

Zabbix: How to Get Data from PowerShell Scripts

October 27, 2023

Tracking Printer Usage with Windows Event Viewer Logs

October 19, 2023

3 comments

Sergey February 14, 2016 - 5:33 pm

Get-AppXProvisionedPackage -online | Remove-AppxProvisionedPackage -online
Not work.
The name “Get-AppXProvisionedPackage” is not recognized as the name of a cmdlet, function, script file or executable program. Check your spelling, as well as the presence and the path is correct, then try again.
line: 1 char: 27
+ Get-AppXProvisionedPackage <<<<  –Path K:\__W10_CONSTRUCTOR_x64__\Mount1 | Remove-AppxProvisionedPackage –Path K:\__W10_CONSTRUCTOR_x64__\Mount1
    + CategoryInfo          : ObjectNotFound: (Get-AppXProvisionedPackage:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

Reply
Sergey February 14, 2016 - 5:34 pm

Sorry,
Get-AppXProvisionedPackage –Path c:\offline | Remove-AppxProvisionedPackage –Path c:\offline

Reply
greg spears July 16, 2023 - 2:56 am

My long search has paid off! Thanks to you and this awesome website! I’ve tried so much advice on the web for removing UWP apps and they all fail — ’til I tried yours. Wow. Thank you and thank you and thank you again.

Reply

Leave a Comment Cancel Reply

Categories

  • Active Directory
  • Group Policies
  • Exchange Server
  • Microsoft 365
  • Azure
  • Windows 11
  • Windows 10
  • Windows Server 2022
  • Windows Server 2019
  • Windows Server 2016
  • PowerShell
  • VMWare
  • Hyper-V
  • Linux
  • MS Office

Recent Posts

  • How to Connect VPN Before Windows Logon

    November 14, 2023
  • Removing Azure Arc Setup Feature on Windows Server 2022

    November 9, 2023
  • Using WPAD (Web Proxy Auto-Discovery Protocol) on Windows

    November 7, 2023
  • Send Emails with Microsoft Graph API and PowerShell

    November 6, 2023
  • Zabbix: How to Get Data from PowerShell Scripts

    October 27, 2023
  • Tracking Printer Usage with Windows Event Viewer Logs

    October 19, 2023
  • PowerShell: Configure Certificate-Based Authentication for Exchange Online (Azure)

    October 15, 2023
  • Reset Root Password in VMware ESXi

    October 12, 2023
  • How to Query and Change Teams User Presence Status with PowerShell

    October 8, 2023
  • How to Increase Size of Disk Partition in Ubuntu

    October 5, 2023

Follow us

  • Facebook
  • Twitter
  • Telegram
Popular Posts
  • Manage Windows Updates with PSWindowsUpdate PowerShell Module
  • Configuring Port Forwarding in Windows
  • Start Menu or Taskbar Search Not Working in Windows 10/11
  • Get-ADUser: Find Active Directory User Info with PowerShell
  • Adding Drivers into VMWare ESXi Installation Image
  • How to Hide Installed Programs in Windows 10 and 11
  • Configuring SFTP (SSH FTP) Server on Windows
Footer Logo

@2014 - 2023 - Windows OS Hub. All about operating systems for sysadmins


Back To Top