5
2
I've been exploring ways to remove "features" included with Windows 10. One of the ways that I've been looking at is this gem:
Get-AppxPackage | Select Name, PackageFullName
Get-AppxPackage | Remove-AppxPackage
Get-AppxProvisionedPackage -online | Select DisplayName, PackageName
Get-AppxProvisionedPackage -online | Remove-AppxProvisionedPackage -online
Part one shows the packages... Part two removes them. All of them. cackles with glee
The kicker is that this removed the Windows Store app. That currently doesn't bother me. I might change my mind and want to use the Windows Store in the future.
How can I restore an app that has been uninstalled and removed from ProvisionedPackages? Can I install via DVD? Download? Email from Bill Gates (that also promises 100$ for forwarding it)?
Edit #1: Empty Folders
Looking at other questions/answers, it seems that people expect the files needed to be located in C:\Program Files\WindowsApps. From my best guess, the Get-AppxPackage | Remove-AppxPackage completely removes the App from that folder. I've looked at other folders (C:\Windows\SystemApps, C:\User\<user>\AppData\Local\Packages\Microsoft.WindowsStore*, etc) and I do not see the application anywhere on the disk.
Edit #2: Copied app from another machine
I've copied the Application from another machines C:\Program Files\WindowsApps\... folder (after taking ownership on both machines and jumping through the proper hoops) (also: I've removed ALL removable apps/provisionedapps EXCEPT Windows Store on that machine and the App Store still opens).
Using this:
Add-AppxPackage -DisableDevelopmentMode -Register
"C:\Program Files\WindowsApps\Microsoft.Window sStore_2015.722.24.0_neutral_~_8wekyb3d8bbwe\AppxMetadata\AppxBundleManifest.xml "
The app initially refused to open. I assume that a full reboot cleared it up, because the Store works now.
Welcome to our team. :) http://superuser.com/questions/949112/restore-microsoft-store-application-in-windows-10
– Badiboy – 2015-08-03T07:01:29.520I'll have to check C:\Program Files\WindowsApps tonight and see if anything is there... I know C:\Windows\SystemApps didn't have it and, like that question, I didn't see App files located that I could place my finger on. – WernerCD – 2015-08-03T12:19:15.283
1@Badiboy Yeah, looking through the various App folders I know of (C:\Windows\SystemApps, C:\Program Files\WindowsApps, etc), the Microsoft.WindowsStore folder doesn't exist. Remove-AppxPackage blows it away. I've copied the folder from a VM, reregistered it and it doesn't open. – WernerCD – 2015-08-04T13:50:37.250
That's sad. :( Even with "Add-AppxPackage..." advice from my question? – Badiboy – 2015-08-04T14:18:10.763
Updated question with my progress, but yeah. I ran out of time to play with it last night, but it registered... and then refused to open (Screen popped up... then closed). I'll toy with it a bit more tonight when I get home. – WernerCD – 2015-08-04T14:26:04.117
1@Badiboy Either I'm a liar or time heals all wounds. It seems that copying the folder and waiting (or rebooting?) got the Store working again. – WernerCD – 2015-08-05T02:02:21.080