Restore Windows Store in Windows 10 after uninstalling it with PowerShell

Windows 10 comes with many built-in Modern apps of which some of them may not be useful to you. PowerShell, as you may’ve known, allows you to uninstall individual apps or all apps using a single command. If you had used the following command to uninstall all bundled apps in Windows 10, you should have noticed that the much useful “Windows Store” app is one among those removed apps.

Get-AppXPackage | Remove-AppxPackage

Without the “Windows Store” app, you won’t be able to install apps from the Store. This post tells you how to get back Windows Store after uninstalling it accidentally using PowerShell.

Reinstall Windows Store Using PowerShell

To restore or reinstall Windows Store in Windows 10, start PowerShell as Administrator. Click Start, type Powershell. In the search results, right-click “PowerShell” and click Run as administrator.

PowerShell - Run as administrator

In the PowerShell window, Type the following command and press ENTER:

Get-AppxPackage -allusers Microsoft.WindowsStore | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
reinstall windows store using powershell
Restore Windows Store using Add-AppxPackage command

That restores Windows Store in most cases. However, for some users, the above command may throw one of the following errors and Store does not get reinstated:

Add-AppxPackage : Deployment failed with HRESULT: 0x80073CF6, Package could not be registered.
error 0x80070057: While processing the request, the system failed to register the windows.applyDataExtension extension …
error 0x80070057: Cannot register the request because the following error was encountered during the registration of the windows.applyDataExtension extension: The parameter is incorrect.
An internal error occurred with error 0x80070002.
Package could not be registered. Merge Failure : error 0x80070003 : Cannot register the Microsoft.WindowsStore_2015.23.23.0_x64__8wekyb3d8bbwe package because there was a merge failure.

In those cases, your best option would be to create a new user account which will have all the built-in apps — including Windows Store.

Although there is a procedure that involves altering the “Program Files\WindowsApps” package folder permissions and attempting a reinstall of Windows Store and its dependencies, creating a new user account is probably the safest and preferred way.

Uninstall Individual Apps Using PowerShell

You can then remove unneeded apps individually using the following PowerShell command-line syntax.

Get-AppxPackage [packagename] | Remove-AppxPackage

You can also use asterisks (wildcard) instead of typing the full app name, such as “Microsoft.3DBuilder”. Here are some examples:



Uninstall 3D Builder

Get-AppxPackage *3dbuilder* | Remove-AppxPackage

Uninstall Calculator

Get-AppxPackage *calculator* | Remove-AppxPackage

Uninstall Xbox

Get-AppxPackage *xboxapp* | Remove-AppxPackage

You can uninstall other apps in the same way by using its package name. To find the package name, run the following PowerShell command:

Get-AppxPackage -allusers |more

Restore all Built-in Apps

If you wish to reinstall or restore all the built-in Windows 10 apps, use this command:

Get-AppXPackage -allusers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}

That’s another way to restore Windows Store app along with all built-in apps.


One small request: If you liked this post, please share this?

One "tiny" share from you would seriously help a lot with the growth of this blog. Some great suggestions:
  • Pin it!
  • Share it to your favorite blog + Facebook, Reddit
  • Tweet it!
So thank you so much for your support, my reader. It won't take more than 10 seconds of your time. The share buttons are right below. :)

About the author

Ramesh Srinivasan founded Winhelponline.com back in 2005. He is passionate about Microsoft technologies and he has been a Microsoft Most Valuable Professional (MVP) for 10 consecutive years from 2003 to 2012.

26 thoughts on “Restore Windows Store in Windows 10 after uninstalling it with PowerShell”

  1. Thank you so much!
    I never write comments, but this time i was so happy that i found solution for my problem. You are a great man, thank you sir!

  2. Unfortunately, I have un-installed my windows store apps, don’t know how to re-installed it. After searching on the internet I stuck this website and read your article about re-installed windows store using Powershell, I tried it and finally I succeed. Thank you, Ramesh, for your wonderful stuff.

  3. Hi, Thanks for the help but when I use the code it says that the shell experience host is still open and running. So what should I do?

    Thanks,
    Lanre

  4. Hi, thank you.
    I’ve tried this command, but this is the error I get. I don’t know what went wrong? All my apps are gone and I’m losing my mind.

    Add-AppxPackage : Cannot find path ‘C:\appxmanifest.xml’ because it does not exist.
    At line:1 char:38
    + … | foreach {Add-AppxPackage -register “$($_.InstallLocation)\appxmani …
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : ObjectNotFound: (C:\appxmanifest.xml:String) [Add-AppxPackage], ItemNotFoundException
    + FullyQualifiedErrorId : PathNotFound,Microsoft.Windows.Appx.PackageManager.Commands.AddAppxPackageCommand

    Add-AppxPackage : Deployment failed with HRESULT: 0x80073D02, The package could not be installed because resources it
    modifies are currently in use.
    error 0x80073D02: Unable to install because the following apps need to be closed
    Microsoft.Windows.Cortana_1.10.7.17134_neutral_neutral_cw5n1h2txyewy.
    NOTE: For additional information, look for [ActivityId] c68a6b7f-98a5-0001-b629-8bc6a598d401 in the Event Log or use
    the command line Get-AppxLog -ActivityID c68a6b7f-98a5-0001-b629-8bc6a598d401
    At line:1 char:38
    + … | foreach {Add-AppxPackage -register “$($_.InstallLocation)\appxmani …
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : NotSpecified: (C:\Windows\Syst…ppxmanifest.xml:String) [Add-AppxPackage], Exception
    + FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.AddAppxPackageCommand

  5. Thank you , this worked for me
    Get-AppxPackage -allusers Microsoft.WindowsStore | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register “$($_.InstallLocation)\AppXManifest.xml”}

  6. So I tried this and I get the following error. Can someone tell me how to fix this please? I keep getting all these errors when trying to do various things.
    β€œYou need a new app to open this ms-get- (Something Something)”

    β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”-

    Add-AppxPackage : Deployment failed with HRESULT: 0x80073D06, The package could not be installed because a higher version of this package is
    already installed.
    Windows cannot install package Microsoft.Services.Store.Engagement_10.0.1610.0_x86__8wekyb3d8bbwe because it has version 10.0.1610.0. A
    higher version 10.0.18101.0 of this package is already installed.
    NOTE: For additional information, look for [ActivityId] 04fe7f55-e2a4-0002-7289-fe04a4e2d401 in the Event Log or use the command line
    Get-AppPackageLog -ActivityID 04fe7f55-e2a4-0002-7289-fe04a4e2d401
    At line:1 char:38
    + … | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register “$($_.I …
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : NotSpecified: (C:\Program File…ppXManifest.xml:String) [Add-AppxPackage], Exception
    + FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.AddAppxPackageCommand

  7. Unfortunately, the command did not succeed. No error but no result either (store still missing even after reboot)
    I am stuck without microsoft store.
    Silly that one cannot redownload it from microsoft’s site.
    Thanks anyway

  8. Typed in command as instructed, nothing happened. No error message and still have remaining apps. Not really all that pc savvy, not going to bother trying anything else.

  9. I am having issues with windows store and constantly failing apps, I have tried the method of installing one or re-installing all and I get the same error:

    Add-AppxPackage : Deployment failed with HRESULT: 0x80073CF9, Install failed. Please contact your software vendor.
    Windows cannot install package Microsoft.WindowsStore_11904.1001.1.0_neutral_split.scale-100_8wekyb3d8bbwe because the
    package is currently paused. The package must be Staged in order to proceed.
    NOTE: For additional information, look for [ActivityId] 849625a0-62d1-0000-b540-9784d162d501 in the Event Log or use
    the command line Get-AppPackageLog -ActivityID 849625a0-62d1-0000-b540-9784d162d501
    At line:1 char:61
    + … | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register “$($_.I …
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : WriteError: (C:\Program File…ppXManifest.xml:String) [Add-AppxPackage], IOException
    + FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.AddAppxPackageCommand

    Can you throw some light on this please?

    Thanks in advance
    Lee

Leave a Comment