23

Fresh Windows 10 install. Somehow the MSN Weather app became corrupted. (Unable to launch) I removed the app with the following Powershell command:

Remove-AppxPackage -Package Microsoft.BingWeather_4.7.118.0_x86__8wekyb3d8bbwe

However, when running

Get-Appxpackage –Allusers

the package is still present. When I attempt to reinstall the app via the Windows Store, the download is skipped and the same corrupted package is installed.

I've tried restarting (many times) and using WSReset to no avail.

What can I do? Thank you!

3
  • 4
    you have to use Remove-AppxProvisionedPackage to remove buildin apps: Remove-AppXProvisionedPackage -Online -PackageName <PackageName> Dec 21, 2015 at 5:17
  • I'm getting "the system cannot find the file specified".
    – GiantDuck
    Dec 22, 2015 at 0:28
  • DId you try running the command as Administrator from the powershell console?
    – doenoe
    Dec 29, 2015 at 10:06

9 Answers 9

16

Tested on Windows 10 1709-22H2 and 11 21H2-22H2 :

Get-AppxPackage -all *NAME_OF_THE_APPX* | Remove-AppxPackage -AllUsers

-all: This parameter is used to retrieve information about all Appx packages installed on the computer.

-AllUsers: This parameter is used to remove the Appx package for all users on the computer.

2
  • 1
    Theoretically it worked (I saw something happened, and Get-AppxPackage -all *CandyCrush* now shows empty), but unfortunately I still see gigabytes of CandyCrush & similar crap in the WindowsApps folder :( not a complaint to you, just to Microsoft I suppose :/
    – akavel
    May 6, 2019 at 14:45
  • it ran, but I expected it to give back the disk space too. I still see the app in WindowsApps folder too
    – hamish
    Sep 8, 2022 at 3:47
6

The Remove-AppxPackage only removes store applications for the logged in user, even if you pipe it from Get-AppxPackage -AllUsers

I've had trouble updating apps in the past because another user had logged in and the app had been updated in their profile, it's also a known issue when using sysprep.

You can identify if that is the case using this script:

Get-AppxPackage -AllUsers | Format-List -Property PackageFullName,PackageUserInformation.

In the output of this last cmdlet, check the users for whom the package is showing up as Installed. Delete these user accounts from the reference computer, or log on to the computer by using these user accounts & remove the Appx package, as you have been:

Remove-AppxPackage -Package Microsoft.BingWeather_4.7.118.0_x86__8wekyb3d8bbwe

If that still doesn't work, you could try removing the provisioning and installing it again from the Store.

Remove-AppxProvisionedPackage -Online -PackageName Microsoft.BingWeather_4.7.118.0_x86__8wekyb3d8bbwe
2
  • Careful to users removing store from provisioning, it can be a real hassle after reinstall; see here to get store back, if you make this mistake!
    – user900431
    Jun 16, 2019 at 8:13
  • "Remove-AppxPackage -allusers" works to remove app for users that are not logged in. The -allusers is new.
    – Tom A
    Dec 11, 2020 at 4:41
5

This will work in windows 10 1809:

get-appxpackage *pattern* | remove-appxpackage -AllUsers

or

remove-appxpackage -AllUsers -Package somepackagefullname

This is currently not working:

remove-appxpackage -User somesid -Package somepackagefullname

Piping anything to remove-appxpackage with no options will only remove the packages of the current user. EDIT: actually I think this will take care of current users but not new users.

4

As of v1709 (Fall Creator's Update), there is a new "-AllUsers" flag for Remove-AppxPackage.

0
1

I've got the same problem, but in the context of trying to sysprep a System which was already running for a few months.

I am running Windows 10 20H2 (19042.1052)

I think my problem was that the user which it was installed for did not exist anymore (I've deleted all users before) and Get-AppxPackage showed a very weired username: S-1-5-21-350941.... (followed by at least 32 "random" numbers)

I got it working with following command pipe:

Get-AppxPackage -AllUsers | Where PackageFullName -eq {PackageFullName} | Remove-AppxPackage -AllUsers

In my case {PackageFullName} was "Microsoft.LanguageExperiencePackde-DE_19041.20.66.0.neutral__8wekyb3d8bbwe"

Hope that helps somebody ^^

1
  • How does this answer differ from this answer from 2017?
    – Ramhound
    Jul 7, 2021 at 21:09
1

Since the other question has been closed. This is how to disable Cortana and App Store functionality.

There are a number of registry tweakers around. Ultimate Windows Tweaker from Windows Club is most suitable for this. I am not associated with any of the tweakers in anyway

You can use the search feature to find all the tweaks for a topic. Here are screenshots for Cortana and App Store.

App Store

Cortana

-1

this works for me

Get-AppxPackage -allusers  *WindowsAlarms* | Remove-AppxPackage
Get-AppxPackage -allusers  *windowscommunicationsapps* | Remove-AppxPackage
Get-AppxPackage -allusers  *officehub* | Remove-AppxPackage

win 10 pro 1909

1
  • This solution has already been suggested by another user in 2017 and 2019 and one deleted answer in 2019.
    – Ramhound
    Aug 23, 2020 at 10:52
-2

Best bet is to remove the apps from the image. Weather is a provisioned app, meaning it will install a fresh copy for each user if present. This holds true for new version releases as well. Check out Michael's article on removing them via task sequence, it's a great reference you can adapt for your particular methods. https://blogs.technet.microsoft.com/mniehaus/2015/11/11/removing-windows-10-in-box-apps-during-a-task-sequence/

TL;DR - You have to remove it from the image if you want it to stay gone, else it will eventually reinstall for someone.

3
  • 1
    would you care to include the instructions from the link into your answer?
    – flolilo
    Jan 3, 2018 at 13:02
  • 1
    Basically, you'd use powershell and run get-startapps | format-list | out-file C:\users\username\desktop\startapps.txt to isolate the target packages , and run the supplied script in the link after modifying the $AppsList variable definition. Of course, replace username in the get-startapps cmdlet with your username. You'll want to use format-list in the cmdlet to prevent truncation of package names. I strongly advise picking through a few articles before doing this. There are provisioned and non-provisioned applications. Not enough room to type it all out.
    – Charlie C
    Jan 4, 2018 at 18:20
  • 1
    Removing a non-provisioned package in the image can cause serious functionality loss. For example, removing Cortana components can cause SearchUI to break, since it is nested in Cortana's package for efficiency.
    – Charlie C
    Jan 4, 2018 at 18:22
-3

After I remove the Windows Appx package with the above Remove-AppxPackage commands - I run the FREE version of CCleaner to uninstall any remaining apps.

Some Windows 8, 8.1 and 10 default apps have no uninstall option whatsoever. Maps for example, is built in. This is where CCleaner can help.

CCleaner makes managing apps easy by listing them all in one place and allowing you to uninstall them - even if they're built-in. To do this, open CCleaner and click on ‘Tools’. Simply select the unwanted app from the list and click ‘Uninstall’.

2
  • 2
    This answer reads like an advertisement for CCleaner.
    – Ramhound
    Jul 7, 2021 at 21:10
  • I have tried CCleaner, it did not help me in removing Store apps leftovers at all. It did not see them, I did not find any options so that I can remove them.
    – Suma
    Jan 24, 2022 at 10:50

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .