remove Provisioned Win10 Apps using powershell

I am trying to remove Provisioned Win10 Apps using powershell.

Input:
Get-AppxProvisionedPackage -online

Output:
DisplayName
Microsoft.BingWeather

PackageName
Microsoft.BingWeather_4.23.10923.0_neutral_~_8wekyb3d8bbwe



so that proves its there, so something really simple to remove just this app like:
Remove-AppXProvisionedPackage -Online -PackageName Microsoft.BingWeather_4.23.10923.0_neutral_~_8wekyb3d8bbwe


give "Unspecified error"...why?

as does:
$App = Get-AppXProvisionedPackage -Online | Where {$_.DisplayName -eq "Microsoft.BingWeather" }
Remove-AppXProvisionedPackage -Online -PackageName $App.PackageName
LVL 1
PeteAsked:
Who is Participating?
 
McKnifeCommented:
No, it's perfect that way. You could also install the may cumulative update (out since yesterday) and retry after a reboot: http://download.windowsupdate.com/c/msdownload/update/software/secu/2018/05/windows10.0-kb4103721-x64_fcc746cd817e212ad32a5606b3db5a3333e030f8.msu
0
 
McKnifeCommented:
Should work. What's your build number of win10?
0
 
PeteAuthor Commented:
1803
0
Live Q & A: Securing Your Wi-Fi for Summer Travel

Traveling this summer? Join us on June 18, 2018 for a live stream to learn about the importance of Wi-Fi security and 3 easy measures you can start taking immediately to protect your private data while using public Wi-Fi. Follow us today to learn more!

 
PeteAuthor Commented:
cant get it to work on 1709 either.
0
 
McKnifeCommented:
1803 is the same as mine, but weather has the version 4.22 here - what build of 1803, please? Use the command winver to find out.
0
 
PeteAuthor Commented:
Build - 17134.1
0
 
McKnifeCommented:
Ok, whatever. Here at home, 17134.5, it has the same version as yours and removal works.
Retry starting powershell as another administrative user.
0
 
PeteAuthor Commented:
Ok, will try tomorrow.

So I don't need to be too specific with names I'd prefer the second command:

$App = Get-AppXProvisionedPackage -Online | Where {$_.DisplayName -eq "Microsoft.BingWeather" }
Remove-AppXProvisionedPackage -Online -PackageName $App.PackageName


Do u agree? Maybe something better?

Thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.