How to remove (all) Windows 8 apps using PowerShell

Martin Brinkmann
Aug 20, 2013
Updated • Aug 20, 2013
Windows, Windows tips
|
16

Apps are clearly a focus on Windows 8, not only because the operating system boots into the "apps-interface" on startup by default, but because most of the marketing for the operating system puts it in focus as well. That's however just one side of Windows 8, and I'm not entirely sure if concentrating all efforts on those features is the smartest move by Microsoft.

Anyway, if you are not using the apps at all, or want to remove apps from user profiles so that they cannot launch them, then you may have discovered that it is not really a straightforward operation.

Things get a bit easier in Windows 8.1 with its batch uninstallation feature - right-click multiple apps and select uninstall in the end - but it is still far from what I would consider comfortable.

The Windows PowerShell may look intimidating, or like just another shell environment or command line to most users. It is actually very powerful, and one of the things that you can use it for is to remove some or all apps installed on a Windows 8 system.

uninstall metro apps windows 8

PowerShell and Apps

You do need to start the PowerShell before you can get started. Do the following to do just that:

  1. Press the Windows-key and enter PowerShell using the keyboard.
  2. Right-click the PowerShell result and select to "run as administrator" from the options.

On to the commands:

Get Commands

Get retrieves app-related information from users on the local PC or a remote domain.

Get-AppxPackage -User [Username] lists all apps installed by the user [username]. [username] can be a domain\user, an email address, a user_name, or a SID-string.

Get-AppxPackage -AllUsers lists all apps installed by users on the system

Get-AppxPackage -Name [name] returns all apps that match [name]. You can use wildcards (*) in the command.

Get-AppxPackage -Publisher [publisher name] returns all apps that are installed by the selected publisher(s). Wildcards are again permitted.

Note that it is possible to combine queries.

Example Get queries:

  1. Get-AppxPackage -Publisher *Microsoft* returns all apps published by Microsoft, and any other publisher that uses Microsoft in its name (likely none).
  2. Get-AppxPackage -user Martin returns all apps installed under the user account Martin.
  3. Get-AppxPackage -name *Halo* returns all apps that have Halo in their name.
  4. Get-AppxPackage -name *Facebook* -User domain/user1 returns all installed apps with Facebook in their name from user1 on the remote computer domain.

Remove Commands

Remove works very similar to Get, but it offers additional parameters.

Remove-AppxPackage [package name] removes [package name] from the account of the currently signed in user.

Remove-AppxPackage [package name] -Confirm does the same as above, but displays a confirmation prompt before the command is executed.

Remove-AppxPackage [package name] -WhatIf displays what would happen if you would run the command.

Example Remove queries:

  1. Remove-AppxPackage 31098nishrotech.readiy_3.1.1.12_neutral___ap1yy96n767gr Removes the selected package from the current user account

How to remove all Metro apps from all users

Get-AppxPackage -AllUsers | Remove-AppxPackage

Microsoft has published a script that removes all Windows Store apps in Windows 8 as well. You can download it from this Technet page.

Additional information about App installation cmdlets are available on Technet as well.

Advertisement

Tutorials & Tips


Previous Post: «
Next Post: «

Comments

  1. JW said on December 3, 2013 at 12:26 pm
    Reply

    Ok here is question for you. I have two problem apps which wont display the right click uninstall option or run. I have run this command (Remove-AppxPackage [package name] -Confirm) using Powershell which then fails to complete the uninstall.

    Any ideas?

  2. KG said on August 22, 2013 at 3:32 am
    Reply

    This is one of the first things I do. The default apps are so rubbish. I usually replace them with desktop apps. Thanx for the article.

  3. Christoph Wagner said on August 21, 2013 at 6:08 am
    Reply

    First, if you have problems with some “Staged” apps not being removed:

    > Download psexec from sysinternals tools, written by Mark Russinovich
    > To get rid of all of them, run in a regular admin/elevated command prompt (not powershell):
    > psexec -s powershell -c “get-appxpackage | remove-appxpackage”
    http://stackoverflow.com/questions/13865930/how-to-uninstall-an-app-that-another-user-installed

    Second, does anyone know how to get rid of the following?
    windows.immersivecontrolpanel, WinStore, BrowserChoice

    The error message is:
    error 0x80070032: AppX Deployment Remove operation on package BrowserChoice_6.2.0.0_neutral_neutral_cw5n1h2txyewy from: C:\Windows\BrowserChoice failed. This app is part of Windows and cannot be uninstalled on a per-user basis. An administrator can attempt to remove the app from the computer using Turn Windows Features on or off. However, it may not be possible to uninstall the app.

    But I can’t find any of those in the “Turn Windows Features on or off” settings.

  4. jay said on August 20, 2013 at 5:54 pm
    Reply

    Does anyone know how much space you save from deleting all the metro apps on one profile?

    1. NatxoCC said on September 2, 2015 at 4:22 pm
      Reply

      Nothing. It’s like removing links, not files. All files stand on hard disk.

    2. Martin Brinkmann said on August 20, 2013 at 6:13 pm
      Reply

      Jay I do not have a figure for you but it is likely only a couple of hundred Megabytes tops.

  5. Ben said on August 20, 2013 at 2:01 pm
    Reply

    Great tip. The way I have been doing this is through “Windows 8 Manager” by Yamicsoft. This software gives me a GUI where I can batch uninstall every app I don’t need or want. Great tip though for those who don’t want Windows 8 Manager.

  6. ilev said on August 20, 2013 at 11:00 am
    Reply

    Remove just removes the tiles or uninstalls apps freeing disk space ?

    1. Martin Brinkmann said on August 20, 2013 at 11:38 am
      Reply

      Frees up disk space.

      1. NatxoCC said on September 2, 2015 at 4:19 pm
        Reply

        Wrong, it doesn’t free up anything, only remove from start menu.
        All files remain on hard disk.

        If you don’t trust me, try to write this on powershell:
        Get-AppxPackage -AllUsers| Foreach {Add-AppxPackage -DisableDevelopmentMode -Register “$($_.InstallLocation)\AppXManifest.xml”}

        All apps will be again on system.

  7. Dukislav said on August 20, 2013 at 10:17 am
    Reply

    Excellent article, as always, Martin.

  8. Taomyn said on August 20, 2013 at 9:06 am
    Reply

    Wow an amazing find, many thanks – first thing I will do on my Win8 systems when I get home is get rid of all the Metro apps. I don’t use any of them and probably never will.

  9. V S Rawat said on August 20, 2013 at 12:56 pm
    Reply

    how do we reinstall something that we have removed?

    Say bing news/ search, I had removed and now I want it back.

    Thanks.

    1. Martin Brinkmann said on August 20, 2013 at 1:45 pm
      Reply

      I think you can install all from the store again.

  10. V S Rawat said on August 20, 2013 at 12:55 pm
    Reply

    very useful info. thanks.

    The first command
    “Get-AppPackage -User [Username] ” has an “x” missing. so it is not working.
    It Should be
    “Get-AppxPackage -User [Username], that is, appx instead of just app

    Thanks.

    1. Martin Brinkmann said on August 20, 2013 at 1:45 pm
      Reply

      Thanks, corrected.

Leave a Reply

Check the box to consent to your data being stored in line with the guidelines set out in our privacy policy

We love comments and welcome thoughtful and civilized discussion. Rudeness and personal attacks will not be tolerated. Please stay on-topic.
Please note that your comment may not appear immediately after you post it.