ACTIVE MALWARE WINDOWS TESTED: WINDOWS 10

How to fix
Windows Store Error 0x87AFo813
on Windows

Resolve Windows Store Error 0x87AFo813 quickly and efficiently with expert-tested solutions. Get back to enjoying your apps in no time! Fixed in minutes.

How to Fix Windows Store Error 0x87AFo813?
Quick Summary
Error severity
Medium
Est. time
10 minutes
Offer Fortect PC Suite
Start fix →
Ad · we may earn a commission
0 Comments
01

What causes How to Fix Windows Store Error 0x87AFo813?

  • Damaged Windows Store cache
  • Issues with Windows Store app
  • Incompatibility with Windows 10 updates
  • Corrupted installation files
  • User account permissions
Offer Fortect PC Suite

Repairs Windows system files, removes malware, and restores a clean OS state — without reinstalling.

Ad · we may earn a commission
Get Fortect PC Suite ↗

I tried to install the converter of Youtube videos from Windows Store. Failed with an error code 0x87AFo813. Then I‘ve attempted to install a couple of other programs, but the download process ended up with the same error message. I performed Windows Apps Troubleshooter, and it said: „Windows Store cache may be damaged.“ Did anyone figure out how to solve this problem?

Error Code 0x87AFo813 is yet another Windows Store bug, which started emerging in Windows 10 operating system recently. Thorough investigation of the issue revealed that it hadn't been detected in older Windows versions, including earlier Windows 10 versions. The 0x87AFo813 error shows up when using Windows Store app only. When the PC‘s owner attempts to install programs, games or updates, he/she is not allowed to do so. The download process usually gets stuck, and the user receives a pop-up alert indicating the 0x87AFo813 error. No other specificities are provided on this alert, which is why it may be difficult for the inexperienced Windows user to find the culprit and the solution. We‘ve checked this problem carefully and found out that its culprit may be related to the damaged Windows Store cache. To check that, the PC user should run a Windows Apps Troubleshooter. If it shows that „Windows Store cache may be damaged“ message, then the following steps should help to fix 0x87AFo813 error.

Method 1. Reset Windows Store cache

  • Press Windows key + R, type "C:\Windows\System32", and press "Enter". (C: stands for the root driver, so change the letter if needed).
  • When the System32 folder is opened, scroll down and locate the "WSReset.exe" application.
  • Right-click on it and select "Run as administrator".
  • Press "Yes" on the UAC window and close everything.
  • Restart Windows Store app and try to download the app you needed.

Method 2. Modify Windows Store Cache Folder

  • Press Windows key + R, type "C:\Users\\AppData\Local\Packages\Microsoft.WindowsStore_8wekyb3d8bbwe\LocalState", and press "Enter".
  • You should change the C: with the letter of your root drive and with your user account name.
  • Once you access the "LocalState" folder, look for the "Cache folder".
  • If you found it, rename it to "Cache.old".
  • Then right-click on the empty space in the "LocalState" folder and select "New" -> "Folder".
  • Name it "Cache" and close "File Explorer."
  • Finally, reboot your PC and then run Windows Apps Troubleshooter.
  • If it finds Windows Store cache damaged, this time it should fix it automatically.

Method 3. Reinstall Windows Store

  • Click Windows key + R, type "PowerShell", and press "Enter."
  • Right-click on the search results and select "Run as Administrator."
  • Type "Get-Appxpackage –Allusers" and press "Enter."
  • Find "Windows Store" entry and copy the package name. For this purpose, mark it and press Ctrl + C.
  • After that, type Add-AppxPackage -register “C:\Program Files\WindowsApps\” –DisableDevelopmentMode command. NOTE: replace "PackageFullName" with the Windows Store package name by pressing Ctrl + V. Besides, instead of C: type the letter of the root driver of your system.
  • After that, reopen PowerShell with administrative privileges as explained above.
  • Paste Add-AppxPackage -register “C:\Program Files\WindowsApps\” –DisableDevelopmentMode command and press Enter.
  • Finally, reboot the system to execute all changes.

NOTE: to prevent and fix issues like 0x87AFo813 error, specialists highly recommend to optimize Windows OS regularly. For this purpose, you can use [d1]. This tool will optimize Windows Registry, repair Windows and programs’ stability issues, restore the operating system, replace the missing or affected system files, and perform many other tasks to keep your PC stable.

Bottom line

To fix the 0x87AFo813 error, you can reset the Windows Store cache using the WSReset.exe application or modify the Windows Store cache folder by renaming it. If these methods do not resolve the issue, consider seeking further assistance or exploring additional troubleshooting steps.

Frequently asked questions

Windows Store Error 0x87AFo813 typically indicates a problem with the Microsoft Store app or its components, preventing users from downloading or updating applications.

To reset the Microsoft Store, open the Settings app, navigate to Apps > Apps & features, find Microsoft Store, click on it, and select 'Advanced options' to then click 'Reset'.

Yes, clearing the cache can help; you can do this by running the 'wsreset.exe' command in the Run dialog to reset the Microsoft Store cache on Windows 10 or Windows 11.

Did this fix work for you?
Ryan Mitchell

Written & verified by

Hardware & Driver Specialist
Hardware troubleshooting Driver installation and rollback Device Manager errors USB and peripheral issues Firmware updates

Ryan Mitchell specialises in hardware troubleshooting and driver management for Windows systems. His expertise covers device recognition failures, driver conflicts, firmware updates, and peripheral connectivity issues across all major manufacturers. Ryan's systematic approach to hardware diagnosis — starting with Device Manager, working through driver rollback and clean installs, and escalating to BIOS-level checks — has made his guides a reliable resource for both home users and field technicians. He covers GPUs, printers, audio devices, USB controllers, network adapters, and external storage.

0 Comments

Be the first to comment

Still worried? Run a free check.

Paste any URL or domain — we'll scan it against 4.2M known threats in 10 seconds.

View full scanner → Add to your website →