30

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!

ᄂ ᄀ
  • 4,187
GiantDuck
  • 517

10 Answers10

21

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.

PhilSwn
  • 3
  • 3
7

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
Stu
  • 159
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.

js2010
  • 713
4

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

dsmtoday
  • 141
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 ^^

FelixL
  • 21
  • 1
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

Rohit Gupta
  • 5,096
0

Revo Uninstaller might be helpful here. Under Windows Apps, select the program you want to remove and in right click menu click the uninstall button.

enter image description here

Revo Uninstaller Pro helps you to uninstall software and remove unwanted programs easily. Even if you have problems uninstalling and cannot uninstall them from their own uninstaller, with its advanced and fast algorithms, Revo Uninstaller Pro analyzes, scans and removes all remnants after the uninstall of a program. The feature Forced Uninstall is the best solution when you have to remove stubborn programs, partially installed programs, partially uninstalled programs, and programs not listed as installed at all. I have uninstalled most Windows apps this way because they are completely useless to me and just take up space on the hard drive.

As can be seen on the picture, there is an option to uninstall from all Windows accounts, which should exactly feat the question.

To address OPs problem with installing, it' necessary scan your registry and hard drive for remnants and delete them. After the app has been uninstalled, Revo Uninstaller offers the possibility to search for these remnants and if they are found, you can then delete them. These remnants are often responsible for the fact that you cannot reinstall the program or the newer versions of the program, I have also been confronted with this problem before.

This answer is definitely a solution to this linked question, have removed all programs mentioned in that question.

just user
  • 111
-1

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.

Charlie C
  • 106
-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

-2

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’.

jpeni
  • 71