How to Fix Error 0x87afo81 on Windows 11: Step-by-Step Troubleshooting Guide

Error 0x87afo81 is a common issue that Windows 11 users may encounter, especially when trying to install or update apps from the Microsoft Store. This error can interrupt your workflow and prevent you from accessing important applications.

Fortunately, fixing this error is usually straightforward and can be done by following a few simple troubleshooting steps. Each step targets a different potential cause of the problem.

This guide will walk you through the process, starting with the easiest solutions and moving towards more advanced options. By the end, you should be able to resolve the error and get your apps working again.

Let’s begin with a quick check to make sure your system is ready for the fixes.

Quick Note: Prerequisites and Initial Checks

Before diving into troubleshooting, ensure the following:

  • Stable Internet Connection: The Microsoft Store requires an active internet connection to download or update apps. Make sure your network is working properly.
  • Windows Updates: Sometimes, missing important Windows updates can cause app installation errors. Check that your system is up to date.
  • Microsoft Store Account: Confirm that you are signed in with a valid Microsoft account in the Store app.
  • Available Disk Space: Insufficient storage can prevent app downloads. Verify you have enough free space on your device.

Step 1: Restart Your Device

Restarting your computer might sound basic, but it often solves temporary glitches causing error 0x87afo81.

This step clears the system memory and stops any conflicting background processes.

  1. Click on the Start menu (Windows icon) at the bottom left corner.
  2. Select Power, then click Restart.
  3. Wait for your PC to reboot, then try installing or updating the app again.

Step 2: Run the Windows Store Apps Troubleshooter

Windows 11 includes a built-in troubleshooter that can detect and fix problems with Microsoft Store apps automatically.

This tool checks for common issues like corrupted cache or permission errors.

  1. Press Windows + I to open Settings.
  2. Click on System in the left menu, then select Troubleshoot.
  3. Choose Other troubleshooters.
  4. Find Windows Store Apps and click Run.
  5. Follow the on-screen instructions to complete the process.
  6. After the troubleshooter finishes, try again to install or update the app.

Step 3: Clear Microsoft Store Cache

Sometimes, corrupted cache files in the Microsoft Store can cause installation errors.

Clearing the cache forces the Store to refresh its data.

  1. Press Windows + R to open the Run dialog box.
  2. Type wsreset.exe and press Enter.
  3. A blank Command Prompt window will open; wait for it to close automatically.
  4. The Store will launch once the cache is cleared.
  5. Try installing or updating the app again.

Step 4: Check Date and Time Settings

Incorrect date and time settings can cause issues with the Microsoft Store’s security certificates, leading to errors during app installation.

Ensuring your system clock is accurate can fix this problem.

  1. Open Settings by pressing Windows + I.
  2. Go to Time & Language, then select Date & time.
  3. Make sure Set time automatically is turned on.
  4. If it’s already on, toggle it off and on again to refresh the settings.
  5. Try installing or updating the app once more.

Step 5: Reset the Microsoft Store App

If clearing the cache doesn’t work, resetting the Store app can help by restoring it to its default state.

This process will remove app data but won’t affect your installed apps or files.

  1. Open Settings with Windows + I.
  2. Navigate to Apps > Installed apps.
  3. Search for Microsoft Store in the list.
  4. Click the three-dot menu next to it and select Advanced options.
  5. Scroll down and click Reset.
  6. Confirm the reset when prompted.
  7. Once done, open the Microsoft Store and try again.

Step 6: Re-register the Microsoft Store Using PowerShell

If the issue persists, re-registering the Store app can fix deeper problems related to app registration or system files.

This step uses PowerShell, so follow carefully.

  1. Right-click the Start button and select Windows Terminal (Admin) or PowerShell (Admin).
  2. If prompted by User Account Control, click Yes.
  3. Type or paste the following command and press Enter:
Get-AppxPackage -allusers Microsoft.WindowsStore | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)AppXManifest.xml"}
  1. Wait for the command to complete.
  2. Close PowerShell and restart your PC.
  3. Try to install or update the app again.

Step 7: Check for Windows Updates

Installing the latest Windows updates can fix bugs and improve system compatibility, which often resolves Microsoft Store errors.

  1. Open Settings (Windows + I).
  2. Go to Windows Update.
  3. Click Check for updates.
  4. Download and install any available updates.
  5. Restart your computer if required, then try again.

Step 8: Create a New User Account

Sometimes, corrupt user profiles cause app installation issues. Creating a new user account can help determine if this is the cause.

  1. Open Settings and go to Accounts.
  2. Select Family & other users.
  3. Click Add account under Other users.
  4. Follow the prompts to create a new local or Microsoft account.
  5. Sign out from your current account and sign in with the new one.
  6. Try to install or update the app again.

Frequently Asked Questions (FAQs)

What does error 0x87afo81 mean?

This error typically indicates a problem with installing or updating an app from the Microsoft Store, often due to corrupted cache, network issues, or app registration problems.

Can I fix this error without reinstalling Windows?

Yes, most cases can be resolved with the troubleshooting steps listed above without needing to reinstall your operating system.

Will resetting the Microsoft Store delete my apps?

No, resetting the Store app only clears its data and cache. Your installed apps and files remain unaffected.

Is it safe to run the PowerShell command to re-register the Store?

Yes, this is a standard method used to fix Store-related issues and is safe when executed correctly.

What if my internet connection is slow or unstable?

A slow or interrupted connection can cause this error. Try switching to a more stable network or restarting your router.

When Nothing Works

If none of the above steps resolve error 0x87afo81, consider the following final options:

  • Contact Microsoft Support: Visit the official Microsoft Support page for personalized assistance.
  • Reset Your PC: As a last resort, you can reset Windows 11 (Settings > System > Recovery > Reset this PC) to fix deep system issues. Be sure to back up your data first.
  • Use the Microsoft Store Web Version: Sometimes downloading apps via the web store at Microsoft Store online can bypass the error temporarily.

Conclusion

Error 0x87afo81 can be frustrating, but it is often caused by simple problems like corrupted cache, incorrect settings, or system glitches. By following the steps above—from restarting your PC to re-registering the Store app—you can resolve most issues effectively.

Remember to keep your system updated and maintain a stable internet connection to prevent similar errors in the future. If problems persist, don’t hesitate to seek help from official Microsoft resources.

With patience and these step-by-step instructions, you’ll have your Microsoft Store working smoothly again in no time.

Leave a Reply