Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Monday, December 5, 2016 7:43 PM
Hi everyone, my name's Angelo I'm 33 from Italy.
I have a question for you regarding Windows Store on Win10 Pro x64.
My goal is to be able to add and remove Windows Store App through powershell commands from the provisioned apps, in such a way that I can make Windows Store available for new users when they log in.
Although I managed to accomplish the first part with the following command:
Remove-AppxProvisionedPackage -Online -PackageName Microsoft.WindowsStore_11606.11001.39.0_x64_8wekyb3d8bbwe
I don' find any way to restore the situation as it was. Whatever command I tried it failed miserably. Of course I logged in as Administrator, and I work with elevated command prompt.
To restore the Windows store I tried:
Add-AppxProvisionedPackage -online packagepath "C:\Program Files\WindowsApps\
Microsoft.WindowsStore_11606.11001.39.0_neutral_~_8wekyb3d8bbwe\AppxMetadata\AppxBundleManifest.xml" -skiplicense
I get the error Add-AppxProvisionedPackage failed. Error code = 0x8051100f
what am I doing wrong? Please help
All replies (3)
Tuesday, December 6, 2016 6:25 AM
Dear Angelo,
We do can remove Windows Store from system by use Remove-AppxProvisionedPackage command, but after we removed it, there is no way to recover Windows store again by command. Your behavior is ok, but the fact is that we can’t achieved it.
If we want to regain Windows Store function, system needs to execute a feature upgrade or a repair upgrade, in other words, we need to upgrade system to a new version(such as 1511 to 1607) or use iso image file to upgrade system.
Therefore, if you want to manage Windows Store, I suggest to just delete specific built-in apps, don’t remove Windows Store itself.
Regards
Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.
Wednesday, May 16, 2018 12:09 PM
That is PANTS!
How can one remove, but never be able to add back?
Saturday, May 19, 2018 12:42 PM
Ofcourse it can be added!
Add-AppxProvisionedPackage -Online -PackagePath c:\temp\Microsoft.WindowsStore_8wekyb3d8bbwe.app
xbundle -DependencyPackagePath,c:\temp\Microsoft.NET.Native.Framework.x64.1.6.appx,c:\temp\Microsoft.NET.Native.Framework.x64.1.7.appx,c:\temp
\Microsoft.NET.Native.Framework.x86.1.6.appx,c:\temp\Microsoft.NET.Native.Framework.x86.1.7.appx,c:\temp\Microsoft.NET.N
ative.Runtime.x64.1.6.appx,c:\temp\Microsoft.NET.Native.Runtime.x64.1.7.appx,c:\temp\Microsoft.NET.Native.Runtime.x86.1.
6.appx,c:\temp\Microsoft.NET.Native.Runtime.x86.1.7.appx -LicensePath c:\temp\Microsoft.WindowsStore_8wekyb3d8bbwe.xml
if that gives error like:
Add-AppxProvisionedPackage : Element not found.then simply do install on another machine/VM & export / importHKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore\Applications\Microsoft.WindowsStore_11712.1001.2313.0_neutral_~_8wekyb3d8bbwe
.appxbundle are available in SW_DVD9_NTRL_Win_10_1803_32_64_ARM64_MultiLang_-2_App_Update_X21-79791.ISO