---
title: "Remove Unwanted Windows 10 Apps with PowerShell"
description: "Clean up your Windows 10 system by using PowerShell to remove inappropriate, redundant, or unsupported apps."
canonical: "https://adamtheautomator.com/remove-windows-10-apps/"
---

# Remove Unwanted Windows 10 Apps with PowerShell

> Clean up your Windows 10 system by using PowerShell to remove inappropriate, redundant, or unsupported apps.

Source: https://adamtheautomator.com/remove-windows-10-apps/

---

ATA Learning

Tap to hide

[

ATA Learning

](/)

*   [Home](/)
*   [Tutorials](/tutorials/)
*   [Instructors](/author/)
*   [Advertising](/advertising/)
*   [Recommended Resources](/resources/)
*   [About Adam](/about-adam/)

Search for:  

*   [](https://twitter.com/adbertram)
*   [](https://github.com/Adam-the-Automator)
*   [](https://www.linkedin.com/company/adam-the-automator-llc)
*   [](/feed/)

![Remove Unwanted Windows 10 Apps with PowerShell](https://adamtheautomator.com/wp-content/uploads/2019/07/AppStore-1.png)

# Remove Unwanted Windows 10 Apps with PowerShell

[![](https://secure.gravatar.com/avatar/87bec6692789c9e784a6c804c8730a8abc91f68609fc222eeb1068fb8d51acf8?s=192&d=mm&r=g)Jeff Christman](https://adamtheautomator.com/author/jeff/)24 July 20193 min. read

Categories: [IT Ops](/category/it-ops/)

Tags:[PowerShell](/tag/powershell/)[Windows 10](/tag/windows-10/)

Table of Contents

*   [Finding Windows 10 Apps with PowerShell](#finding-windows-10-apps-with-powershell)
*   [Narrowing down the app listings](#narrowing-down-the-app-listings)
*   [Removing Windows 10 Apps with PowerShell](#removing-windows-10-apps-with-powershell)
*   [Summary](#summary)

Windows 10 includes a number of built-in apps ranging from basic apps like Calculator and Weather to more task-focused apps like Mail and Photos. While these built-in apps are fine for most situations, in a business environment, they may be inappropriate, redundant or unsupported. Very often, these apps are my pose a security risk. That’s why, in this post, you’re going to learn how to remove Windows 10 apps with PowerShell.

Not a reader? Watch this related video tutorial!

**_Not seeing the video? Make sure your ad blocker is disabled._**

The problem is that Microsoft doesn’t make it easy to uninstall some of these apps. There is no uninstall button when uninstalling using normal methods. The built-in apps must be uninstalled through PowerShell.

> _Disclaimer: Do not uninstall all the Windows 10 apps. Many of them are needed for the Windows 10 “Experience” and others, like the .NET framework, are needed for other programs. Be picky about which applications to uninstall. You can reinstall all the applications, however, and you will see the PowerShell command to just that at the end of this article_

## Finding Windows 10 Apps with PowerShell

There are actually two different kinds of applications that we will be working with.

*   AppX packages – Applications installed with the operating system
*   AppX provisioned packages – Applications installed as part of the user profile first time setup.

The first step is to get an inventory of the apps that are installed. To do that, start PowerShell with elevated privileges and run the command `Get-AppxPackage`. This will return all of the AppX packages installed on Windows 10.

```powershell
PS C:\> Get-AppxPackage

Name              : Microsoft.NET.Native.Framework.1.6
Publisher         : CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
Architecture      : X64
ResourceId        :
Version           : 1.6.24903.0
PackageFullName   : Microsoft.NET.Native.Framework.1.6_1.6.24903.0_x64__8wekyb3d8bbwe
InstallLocation   : C:\Program Files\WindowsApps\Microsoft.NET.Native.Framework.1.6_1.6.24903.0_x64__8wekyb3d8bbwe
IsFramework       : True
PackageFamilyName : Microsoft.NET.Native.Framework.1.6_8wekyb3d8bbwe
PublisherId       : 8wekyb3d8bbwe
IsResourcePackage : False
IsBundle          : False
IsDevelopmentMode : False
IsPartiallyStaged : False
SignatureKind     : Store
Status            : Ok
--snip--
```

The provisioned packages have a slightly different command and also need the `Online` parameter. The `Online` parameter pulls packages from the current online operating system as opposed to an image file located in a local directory. This will present a list of all the details regarding each package.

```powershell
PS C:\> Get-AppxProvisionedPackage -Online


DisplayName  : Microsoft.3DBuilder
Version      : 16.1.1431.0
Architecture : neutral
ResourceId   : ~
PackageName  : Microsoft.3DBuilder_16.1.1431.0_neutral_~_8wekyb3d8bbwe
Regions      :

DisplayName  : Microsoft.BingWeather
Version      : 4.31.11905.0
Architecture : neutral
ResourceId   : ~
PackageName  : Microsoft.BingWeather_4.31.11905.0_neutral_~_8wekyb3d8bbwe
Regions      :
--snip--
```

## Narrowing down the app listings

Both of these commands produce rather verbose listing and all you’re interested in is the `Name`of the package for the Appx packages and the `DisplayName` for the provisioned packages as shown below.

![Details of Get-AppxPackage listing](/wp-content/uploads/2019/07/AppxPackage.png)

Details of Get-AppxPackage listing

![Listing for get-appxprovisionedpackage](/wp-content/uploads/2019/07/AppXProvisionedPackage.png)

Listing for get-appxprovisionedpackage

To make things a little easier, pipe the results through `Select-Object` and select the `Name` and the `DisplayName` properties. This will give you a list like the one below. This list is easier to work with.

```powershell
Get-AppxPackage | Select-Object Name
```

![Output of get-appxpackage | select object name](/wp-content/uploads/2019/07/PackageList.png)

Output of get-appxpackage | select object name

Now you can see which Windows 10 apps you’d like to remove. At this point, you need to list all of the names of the packages you’d like to remove. One way to do that is to copy and paste the Windows 10 apps you’re interested in in removing and build a list that way. One trick that I use is to save the results to a text file and then open that file in [Visual Studio Code](https://code.visualstudio.com/). For example:

```powershell
Get-AppxPackage | Select-object name | Out-File apps.txt | code apps.txt
```

In your external editor, begin building up an array of apps to remove.

```powershell
$ProvisionedAppPackageNames = @()
```

Now that you have the list, you can start building the PowerShell script.

## Removing Windows 10 Apps with PowerShell

You should now have an array defined in your editor that contains the names of all the AppX packages you’d like removed. I’ve come up with an example below.

```powershell
$ProvisionedAppPackageNames = @(
    "Microsoft.BingFinance"
    "Microsoft.BingNews"
    "Microsoft.BingSports"
    "Microsoft.BingWeather"
    "Microsoft.MicrosoftOfficeHub"
    "Microsoft.Getstarted"
    "microsoft.windowscommunicationsapps" # Mail,Calendar
    "Microsoft.Office.OneNote"
    "Microsoft.People"
    "Microsoft.SkypeApp"
    "Microsoft.XboxApp"
    "Microsoft.ZuneMusic"
    "Microsoft.ZuneVideo"
)
```

With the array populated with the specific applications to be removed, you can now set up the [foreach](https://adamtheautomator.com/powershell-foreach/ "foreach") loop to step through each package to uninstall using the `Remove-AppXProvisionedPackage` cmdlet and the `Remove-AppXPackage` cmdlet.

```powershell
foreach ($ProvisionedAppName in $ProvisionedAppPackageNames) {
    Get-AppxPackage -Name $ProvisionedAppName -AllUsers | Remove-AppxPackage
    Get-AppXProvisionedPackage -Online | Where-Object DisplayName -EQ $ProvisionedAppName | Remove-AppxProvisionedPackage -Online
}
```

If for any reason you want to reinstall all applications, you can always use the `add-AppXPackage` cmdlet to register the Windows 10 app again by specifying it’s application manifest XML file as shown below.

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

## Summary

Even though Microsoft doesn’t make it easy to uninstall Windows 10 apps, you can see you’ll always have PowerShell to fall back onto!

Share this article

[Share on X](https://twitter.com/intent/tweet?url=https%3A%2F%2Fadamtheautomator.com%2Fremove-windows-10-apps%2F&text=Remove%20Unwanted%20Windows%2010%20Apps%20with%20PowerShell)[Share on Facebook](https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fadamtheautomator.com%2Fremove-windows-10-apps%2F)[Share on LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fadamtheautomator.com%2Fremove-windows-10-apps%2F)

## Related Posts

![](https://adamtheautomator.com/wp-content/uploads/2024/01/OpenSSL-on-Windows-10.jpg)

### [Master OpenSSL on Windows 10: A Guide to Powerful Security](/openssl-windows-10/)

Master OpenSSL on Windows 10 with PowerShell, from installation to certificate signing requests and conversions.

![](https://adamtheautomator.com/wp-content/uploads/2019/06/photo-1516382799247-87df95d790b7.jpg)

### [Finding PowerShell Last Logon by User Logon Event ID](/user-logon-event-id/)

Learn how to build a user activity PowerShell script that will pull information from the Windows event log for a local computer.

![](https://adamtheautomator.com/wp-content/uploads/2021/09/How-to-Kill-a-Windows-Process-on-a-Remote-System.jpg)

### [How to Kill a Windows Process on a Remote System](/how-to-kill-a-windows-process/)

In this tutorial, learn how to kill a Windows process using native utilities, third-party utilities, and PowerShell!

## Categories

*   [IT Ops](/category/it-ops/)
*   [Cloud](/category/cloud/)
*   [DevOps](/category/devops/)
*   [Home Ops](/category/home-ops/)
*   [Information Security](/category/infosec/)
*   [Software Development](/category/software-development/)

## Site

*   [Home](/)
*   [Tutorials](/tutorials/)
*   [Instructors](/author/)
*   [Advertising](/advertising/)
*   [Recommended Resources](/resources/)
*   [About Adam](/about-adam/)

Copyright 2026© ATA Learning | [Privacy Policy](/privacy/)
