To restore and reinstall Windows Store in Windows 10 after removing it with PowerShell, you need to do the following:
- Run PowerShell as Administrator.
Open the Start menu (press Win key on the keyboard) and type Powershell. When it comes up in the search results, right click on it and choose "Run as administrator". Or you can also press Ctrl + Shift + Enter to open it as administrator. Opening PowerShell as administrator is important, otherwise, the commands you run will fail: - Type the following command in the PowerShell console:
Get-Appxpackage -Allusers
- In the output, locate the Microsoft.WindowsStore entry. It was the last one for me. Look for the text PackageFamilyName.
Then run this PowerShell command, still elevated, replacing the ****** with the PackageFileName from above:Add-AppxPackage -register "C:\Program Files\WindowsApps\******\AppxManifest.xml" -DisableDevelopmentMode
For example, in my case it should be:
Add-AppxPackage -register "C:\Program Files\WindowsApps\Microsoft.WindowsStore_8wekyb3d8bbwe\AppxManifest.xml" -DisableDevelopmentMode
This will put back the Store app. You can then install new apps that you actually need such as games without the useless pre-loaded apps for which desktop apps are a far better alternative.
If you get the error "access denied" or something like that, you might need to take ownership of the WindowsApps folder. See the article on How to take ownership and get full access to files and folders in Windows 10.
Thanks to our reader "Greg" for sharing this tip.