In an Administrator CMD prompt, run
DISM /Online /Cleanup-Image /RestoreHealth
Detailed technical description of the DISM command from Microsoft
If this doesn't reinstall the Windows Store, you may need to install it from the .appxbundle file. First you can check whether it's already on your machine and can be installed by running the following in an Administrator Powershell session:
Get-AppxPackage -allusers Microsoft.WindowsStore | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
If that doesn't work, you'll need to get the .appxbundle file from Microsoft first. The easiest way to get the URL from Microsoft (and not an untrusted third party) is to go to https://store.rg-adguard.net/ and enter this URL which is the link for the Windows store https://www.microsoft.com/en-us/p/microsoft-store/9wzdncrfjbmp. Change the type from "RP" to "Retail" and it'll generate all the possible Microsoft URLs you may need. Assuming you don't need to reinstall .NET or the Microsoft VC libraries, you can just download the most recent Microsoft.WindowsStore*.appxbundle file. As of today, it's "Microsoft.WindowsStore_11811.1001.2713.0_neutral_~_8wekyb3d8bbwe.appxbundle"
Once you've downloaded that to your local machine, you may be able to double-click it to install it or run Add-AppxPackage -Path "Microsoft.WindowsStore*.appxbundle" from an Administrator Powershell in the same directory as you saved the .appxbundle.
ms-windows-store:PurgeCaches File system error(-21472191196)after a minute or so of running wsreset – The epic face 007 Mar 12 '21 at 13:25%ProgramFiles%\WindowsApps, as there's no reason AFAIK for a user to be in there and is why users have no access to it by default (you'll want to ensure you remove your user from its ACL)?DismandSfcmay fix the issue (they must be run in order specified in Steps 1 - 6), but if not, you'll likely need to pull the file from a Windows 10 install USB'ssources/install.wimfor the version of Win10 you're on (if it doesn't fix the issue, perform a Repair Install of Windows) – JW0914 Mar 12 '21 at 14:24