Fix: “ms-windows-store:PurgeCaches, The application didn’t start.”

ms-windows-store:purgecaches is a setting feature that purges and clears the locally stored cache for Windows Store that builds up over time. The following error code usually appears when there is a problem with the Windows Store to which users usually respond by using the wsreset.exe utility. This is the error message that is most regularly reported by affected users:  “ms-windows-store:PurgeCaches, The application didn’t start.

ms-windows-store:PurgeCaches

However, there are other contexts where the error can appear and they are all related to errors related to Windows Store. From what we gathered, this error has increased in frequency after a certain Windows 10 update and might sometimes be caused by the upgrading process to Windows 10.

If you’re currently struggling with the same “ms-windows-store:PurgeCaches, this article will deliver a series of reliable troubleshooting guides. Below you have a collection of methods that other users in a similar situation have used to resolve the issue. To ensure the best results, please follow the methods below in order until you follow a method that enables you to either fix or circumvent the issue. Let’s get to it!

1. Enable the License Manager Service

This issue can also occur if your License Manager Service is disabled. This is caused by a third-party tweaking program or optimization software. It will disable this service and then your Windows Store will stop working and throw this issue. To fix this we have simple steps for you, follow these:-

  1. Search for Command Prompt and click “Run as administrator”.
    Running Command Prompt as an administrator
  2. Once Command Prompt is opened type the following command and press enter:-
    sc config LicenseManager start= demand
  3. Now restart your computer and check to see if the issue persists.

2. Repair permissions via Registry Editor

Since the error is mostly occurring because Windows is unable to reset the app cache, we can circumvent the issue with a registry workaround. Here’s a quick issue on fixing the ms-windows-store:PurgeCaches error by repairing the Packages permissions using Registry Editor:

  1. Press Windows key + R to open up a Run box. Next, type “regedit“, hit Enter, and choose Yes at the User Account Control (UAC) prompt to open Registry Editor with Administrative privileges.
  2. Inside Registry Editor, use the left pane to navigate to the following location:
    HKEY_CURRENT_USER \ Software \ Classes \ Local Settings \ Software \ Microsoft \ Windows \ CurrentVersion \ AppModel\ Repository \ Packages
  3. Right-click on the Packages key and choose Permissions.
  4. Then, in the following window, click on the Advanced button.
  5. Click on the Change button at the top of the Advanced Security Settings for Packages and make sure that the Owner is set as System. If it’s not set to System, type System in the next box, then click on Check Names and then on OK.
  6. Once the Owner is set to System, scroll all the way down to the bottom of the screen and check the box associated with Replace all child object permission entries with inheritable permission entries from this object.
  7. Next, click Apply and then Ok. Finally, close Registry Editor and reboot your machine to see if the issue is resolved at the next startup.

If you’re still encountering the same “ms-windows-store:PurgeCaches error, continue down with Method 2.

3. Use Windows Store Troubleshooter

This solution was suggested by a Microsoft professional and it helped plenty of people, unlike other generic responses users usually receive. This solution is quite helpful as you will first run the inbuilt Windows Apps troubleshooter which will try to identify and solve the error. After that, you will try to run a Powershell command which tries to reregister your Windows Store app. Follow the instructions carefully:

  1. Search for Settings in the Start menu and click on the first result which pops up. You can also click directly on the gear button at the lower left part of the Start menu.

  1. Locate the Update & security section at the bottom part of the Settings window and click on it.
  2. Navigate to the Troubleshoot tab and check under the Find and Fix other problems.
  3. Windows Store Apps troubleshooter should be right there at the bottom so make sure you click on it and follow the instructions on the screen.

  1. Additionally, you can repeat the same process for the Internet Connections troubleshooter to check if it is your Internet connection that is causing the problems with Windows Store.

The next part of this solution consists of running this PowerShell command which will reregister the Windows Store. Make sure no Windows app updates are running in the meantime.

  1. Open PowerShell by right-clicking on the Start menu button and selecting the Windows PowerShell (Admin) option to open the tool with administrator privileges. If you see Command Prompt at that spot, you can also search for it manually.

  1. Copy and paste the following command and make sure you click Enter afterward.
$manifest = (Get-AppxPackage Microsoft.WindowsStore).InstallLocation + '\AppxManifest.xml' ; Add-AppxPackage -DisableDevelopmentMode -Register $manifest
  1. Restart your computer and check to see if the Windows Store issue has been resolved.

4. Update Windows

The thing is that many people only started to experience the error after a certain version of Windows has been released. Luckily, folks who had issues with that build were relieved to find out that a new build was soon released which managed to deal with the problem efficiently. The point is that you should install all pending updates on your computer and see if the problem has been resolved.

  1. Open PowerShell by right-clicking on the Start menu button and selecting the Windows PowerShell (Admin) option to open the tool with administrator privileges. If you see Command Prompt at that spot, you can also search for it manually.
  2. In the Powershell console, type in “cmd” and wait for Powershell to switch to the cmd-like environment.
  3. In the “cmd”-like console, type in the command displayed below and make sure you click Enter afterward:
    wuauclt.exe /updatenow
  4. Let this command run for at least an hour and check back to see if any updates were found and/or installed without issues.

Alternative

  1. Search for Settings in the Start menu and click on the first result which pops up. You can also click directly on the gear button at the lower left part of the Start menu.
  1. Locate the Update & security section at the bottom part of the Settings window and click on it.
  2. Stay in the Windows Update tab and click on the Check for updates button under the Update status section to check if there is a new version of Windows available online.
  1. If there is one, Windows should initiate the download process automatically.

5. Reinstall Windows Default Apps Using PowerShell

This method is somewhat advanced as it involves plenty of details and its implementation can be lengthy. However, if you follow the instructions carefully, you will probably end up with a properly working Windows Store service simply by reinstalling the Windows default apps.

  1. Right-click the WindowsApps folder located in C:\Program Files, click Properties, and then click the Security tab. Click the Advanced button. The “Advanced Security Settings” window will appear. Here you need to change the Owner of the key.
  2. Click the Change link next to the “Owner:” label The Select User or Group window will appear.
  1. Select the user account via the Advanced button or just type your user account in the area which says ‘Enter the object name to select’ and click OK. Add your user account.
  2. Optionally, to change the owner of all subfolders and files inside the folder, select the check box “Replace owner on subcontainers and objects” in the “Advanced Security Settings” window. Click OK to change the ownership.
  1. In the Security tab of the WindowsApps folder’s Properties window, click on Edit to change permissions and select the personal user account you set the ownership to. Change permissions to Full Control and apply the changes.

Now that you have performed these steps, it’s time to use Powershell to effectively reinstall these apps. This is probably the easier part of this method so consider yourself almost there.

  1. Open PowerShell by right-clicking on the Start menu button and selecting the Windows PowerShell (Admin) option to open it with admin privileges.
  1. Copy and paste this command and make sure you click Enter:
Get-AppXPackage | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register $($_.InstallLocation)\AppXManifest.xml}
  1. Check to see if the problem has been resolved.

6. Use a New Account to Fix Things

This unusual trick has saved several users from losing their minds over this problematic error. It appears that, even though Windows Store and wsreset appear to be not working on your account, they sometimes do work on a new account, and running wsreset fixes Windows Store for both users! This is easy to do so make sure you don’t skip this solution!

  1. Open Settings either by clicking on the gear icon which is located just above the power button in the Start menu or by searching for it in the search bar next to the Start menu.
  1. Open the Accounts section in Settings and select the Family and other users option. Choose the Add someone else to this PC option located there, and then click on the Sign in without a Microsoft account option which is usually not recommended but it’s sufficient for your current purposes.
  1. Create a Local account and proceed with the instructions on-screen. Enter a username for this new account.
  2. If you want this account to be password-protected, you can add a character password, a password hint, and proceed by clicking Next. You are better off without a password in this scenario.
  1. Click the Finish button to finish creating a new account. Log in via this account by restarting your computer and try running the “wsreset” command by typing this work in the Start menu button and clicking the first result. Check to see if the problem is solved.

7. Reset Permissions

In some cases, certain permissions might need to be reset to the Windows folders to get rid of this issue. To do that:

  1. Press “Windows” + “R” to open the Run prompt.
  2. Type in “cmd” and press “Ctrl” + “Shift”+ “Enter” to provide administrative privileges.
    Running the Command Prompt
  3. Type in the following command and press “Enter” to execute it.
    icacls "C:\Program Files\WindowsApps" /reset /t /c /q
  4. Check to see if the issue persists.
ABOUT THE AUTHOR

Kevin Arrows


Kevin Arrows is a highly experienced and knowledgeable technology specialist with over a decade of industry experience. He holds a Microsoft Certified Technology Specialist (MCTS) certification and has a deep passion for staying up-to-date on the latest tech developments. Kevin has written extensively on a wide range of tech-related topics, showcasing his expertise and knowledge in areas such as software development, cybersecurity, and cloud computing. His contributions to the tech field have been widely recognized and respected by his peers, and he is highly regarded for his ability to explain complex technical concepts in a clear and concise manner.

Comments

61
    KO
    korval Aug 7, 2018

    I tried EVERY suggestion you provided, including a new account. The problem is so bad that the Windows Store and apps on a brand new account is messed up. Why doesn’t Microsoft fix this? Short of me reinstalling Windows, which is absolutely out of the question, I cannot see any other way to fix this issue.

    I know what the problem is so why isn’t the fixer looking there? The issue relates to the permissions on and in the C:Program FilesWindowsApps folder. I accidentally “changed” these and the issues have been there since. To me that seems like horrible programming. Microsoft should boilerplate that.

      KA
      K. Arrows Author Aug 9, 2018

      We’ve updated Method 1 to address permissions issue.

        KO
        korval Aug 18, 2018

        For me, setting Ownership to Users fixed the problem. AFAIK Users is Microsoft’s native permission group. So consider adding that as another viable option.

        Reply
        GA
        Gabriel Jan 6, 2019

        Nothing worked for me. I am with exactly the same problem than Korval, permissions of WindowsApps folder messed up. I can’t execute the method 1 because I don’t have permission to modify some registers in regedit… Jesus, what is the point of being the adm if you can do nothing?

          KA
          K. Arrows Author Jan 6, 2019

          I would suggest backing up and resetting your PC

          GA
          Gabriel Jan 8, 2019

          I reset the Windows and the problem still was there. The only solution was formatting… Such a bad experience, Microsoft messed up again.

    BF
    Beorn Fifer Dec 1, 2018

    Get-AppXPackage | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register “$($_.InstallLocation)AppXManifest.xml”}

    Remember to add the quotes around your directory

    Reply
    CW
    Conrad Wong Jan 10, 2019

    I tried many suggestions posted by people ranging from tampering with the file/folder permission, registry edit, resetting/clearing cache as well as the dozen of powershell command floating out there. I was getting exhausted and almost gave up until I came across a post from one guy recommended to re-install the mediafeaturepack from Microsoft. In desperation, I tried it and it works! UNBELIEVABLE how mediafeaturepack reinstall the missing or corrupted component require for Microstore to work. This is how exactly to fix this stupid MSoft issue.
    1) run winver to gather what version of OS is installed.
    2) Google microsoft mediafeaturepack and download the version that matched your version of OS installed.
    3) Execute the download file, reboot, and you should be back in business

    Reply
      RU
      Rizqi Putra Utama Mar 21, 2019

      The mediafeature pack won’t run

        SW
        Shane Warren Author Sep 14, 2019

        Make sure you have downloaded the correct version for your operating system

    KB
    Kevin Brooks Jun 11, 2019

    What worked for me was to reset the permissions on the WindowsApps folders with the following in an elevated command:

    icacls “C:Program FilesWindowsApps” /reset /t /c /q

    Reply
      MA
      Mark Sep 20, 2019

      Thanks Kevin! This worked for me mate. :o)

        ST
        Steve Sep 28, 2019

        Thank you so much guys…tried everything to open the store and purge caches but this one worked!

      AM
      alex mercer Nov 7, 2019

      you are a life saver boi

      UP
      Umang Patel Nov 30, 2019

      how to do it please explane

      KE
      Kesler Mar 26, 2020

      I went through literally 50 different ways and a soft windows reinstall, and all it took was this?! You saved me so much headache.

    MC
    MC Mar 31, 2020

    I messed up with the permission in the WindowsApp folder, and the last command for resetting the permissions worked for me. Thanks.

    AG
    Agustin Apr 1, 2020

    This website actually SOLVED IT, after hours of trying. THANK YOU!

    LI
    Lio May 29, 2020

    unable to save permission changes – access is denied. how?

      SW
      Shane Warren Author May 28, 2020

      Are you on an administrator account?

    PA
    Padman Jun 9, 2020

    YOU my friend deserve a medal! Method 6 WORKED in my case! Everything else failed. Thank u so much!

      XY
      xyes Aug 3, 2020

      Saved mine too, thank you, Kevin Arrows.

      VO
      Voltaicmimic Jan 2, 2021

      Method #6 worked for me as well.

        SH
        Shaunak May 19, 2021

        Yeah it worked for me too

    OV
    Oscar Viklund Dec 30, 2020

    Oh my actual god number 6 worked, the only one I thought wouldn’t thank you thank you thank you

    NA
    Nas Jan 14, 2021

    I confirm, you deserve a medal. I tried everything, and by everything I mean I formatted the PC and it didn’t work either.
    The last solution I was like, in pain and I said, well, let’s give it a last chance. And it said 0 Erros, and I was like, woah, wait.
    Looked in the Windows bar “Store” and it opened and I litterally exploded.
    Cheers to you. Thank you so much.

    DJ
    Dario de Judicibus Feb 27, 2021

    icacls “C:Program FilesWindowsApps” /reset /t /c /q

    results in all “access is denied”

      MZ
      Muhammad Zubyan Author Feb 27, 2021

      Right-click on the start menu and open Windows Powershell as an admin and then try the command again.

      DE
      DeerSpotter May 13, 2021

      try this:

      takeown /R /F “C:Program FilesWindowsApps”

      icacls “C:Program FilesWindowsApps” /t /c /q /GRANT Everyone:F

      icacls “C:Program FilesWindowsApps” /reset /t /c /q

      Reply
        DJ
        Dario de Judicibus May 14, 2021

        Done, but wsreset continues to give the same error.

          MZ
          Muhammad Zubyan Author May 15, 2021

          Hey Dejudicibus,

          Try this command it will reinstall all the store apps present in your Windows:-

          1. Search for Windows PowerShell in the start menu and click “Run as administrator”.
          2. Type the following command:-

          $manifest = (Get-AppxPackage Microsoft.WindowsStore).InstallLocation + ‘AppxManifest.xml’ ; Add-AppxPackage -DisableDevelopmentMode -Register $manifest

          then press enter.
          3. Wait for the command to finish then restart your computer.

          Check to see if the issue still persists. Keep me updated so that I can assist you further.

          DJ
          Dario de Judicibus May 15, 2021

          I know that. It does not work. Tried a lot: sfc, dism, new account, store troubleshooter, wsreset, folder ownership, power shell reinstall. No way.

          MZ
          Muhammad Zubyan Author May 16, 2021

          That’s a really odd and unfortunate situation, however, there are still some things that we can try. Follow these steps please:-

          1. Search for Command Prompt in your Search bar and click “Run as administrator”.
          2. Now put this following command and press enter.

          sc config LicenseManager start= demand

          3. Restart your computer and check to see if the issue persists.

          DJ
          Dario de Judicibus May 16, 2021

          Before I do that, which are the effects? Am I going to loose something or to reset something I might not wish to reset?

          MZ
          Muhammad Zubyan Author May 16, 2021

          No, you aren’t going to lose anything, sometimes a third-party program stops the Windows Installer service that can cause issues while Uninstalling and Installing the APPX packages properly, this command will just make sure that the service’s parameter is set to default and it actually starts when your Windows is started. There is a long procedure that you can do, opening services.msc and enabling the service manually but I decided to give you just the command to make it a little bit easier for you but if you want to do It manually let me know!

          DJ
          Dario de Judicibus May 16, 2021

          OK, but the installing of APPX works fine. What I suspect is that there is an issue in some dependencies on .NET or Visual Studio C++ redistributable libraries. Another possibility is a problem with Cortana. In fact the search bar does not work in either the desktop taskbar and Internet Explorer. As well as the Start menu does not work. I am temporarily using Open-Shell, which is providing me most of missing functions. However it does not provide an alternative to the store. A typical error I have in the Event Viewer is

          The server Microsoft.WindowsStore_12104.1001.1.0_x64__8wekyb3d8bbwe!App.AppXxxnt3skd41veb34vkvcyva53g0wwk0gg.mca did not register with DCOM within the required timeout.

          or

          The server Microsoft.Windows.Search_1.14.1.19041_neutral_neutral_cw5n1h2txyewy!CortanaUI.AppXf8r3d8cn5hd71h9jyzah6ak9f3shj2d2.mca did not register with DCOM within the required timeout.

          I do not like to make experiment with my PC. That is, I do not like “try and cross your fingers”. I prefer to understand. I am pretty sure all I need to understand is the Event Viewer but it would require a deep skill in Windows internal mechanisms that I have not.

          MZ
          Muhammad Zubyan Author May 16, 2021

          You didn’t mention any of this information before that’s why I was trying to give you possible solutions to diagnose and narrow down to the source of this problem, I work with a Windows optimization team, and the problems that are happening to your computer really similar to the problems everyone else faces when they try debloating their Windows. The exact problem happens when you try to remove dependencies of Cortana/Taskbar or Windows Store from the “SystemApps” folder located on “C:WindowsSystemApps”.

          This issue also represents that your Windows shell isn’t loading these apps properly, In our case though the DISM Repair command always fixes these problems however your case is a little more aggressive as you mentioned neither SFC nor DISM fixed the problem you are having. Now even if you somehow managed to recover those Apps packages, I don’t think they will work properly because they won’t be linked to your Windows properly.

          These are just my speculations about the problem you are facing, I suggest you head over to this folder “C:WindowsSystemApps” and check if the folders named

          “Microsoft.Windows.StartMenuExperienceHost_xxxxxxxxx”
          “ShellExperienceHost_xxxxxxxxxx”

          Are present or not, If they aren’t present we will try to download the Store app directly and try to Install it. If that doesn’t work I am afraid you might have to reset your Windows but I don’t think even resetting is going to affect this issue if you don’t have the packages that Install the appx apps. Keep me updated!

          DJ
          Dario de Judicibus May 16, 2021

          I have

          Microsoft.Windows.StartMenuExperienceHost_someletters

          and

          ShellExperienceHost_someletters

          somelletrs are the same.

          DJ
          Dario de Judicibus May 16, 2021

          I wonder why MIcrosoft does not create a Package to reinstall from scratch the Store and default Apps without having to reinstall the whole Windows. There are so many people with my same problem.

          MZ
          Muhammad Zubyan Author May 16, 2021

          Yes, you are right they should have a way to download and Install a Package from Scratch. It is possible to do it and you can actually Install it from scratch but I think there should be a better way to do it from Microsoft as well. Here is how you can do it if you want to give it a shot: https://appuals.com/download-microsoft-store-games-directly/

          DE
          DeerSpotter May 17, 2021

          I can confirm without any doubt that the last Microsoft store update broke everything.

          I even restored and was able to open up Microsoft store without no issue.. but then it auto updated without me creating a restore again and force quit the application and store won’t reopen. All the installed apps for the store work. But the store won’t open.

          I have been working on tracking down the problem for the dependencies and was able to manually rewrite a few powershell lines that are customized to what the problem is.

          But I don’t fully trust the solution as it might break things for others.

          What I’m determining is if we can’t get wreset.exe to work and ms cache to run that nothing will work. Or ever work again.

          Edit: I really hate that Microsoft deletes restore points after they restored.

          DJ
          Dario de Judicibus May 17, 2021

          Well, that is for downloading and installing games directly, but my problem is that it is the store framework that does not work, that is:
          1. the Microsoft Store itself
          2. any System App, as for instance Feedback Hub (it opens, appear and disappear with no error)
          3. any third parties’ app (as Alienware Control Center)
          4. the Search bar of Cortana
          5. the Search bar on Internet Explorer
          6. the Notification Sidebar on right side
          7. the Start Button and tile menu

          I temporarily solved the last problem by Open-Shell which provides me also with a good Search bar, but I am missing the rest. I installed a app directly from bundle as a test, but it opens and close suddenly as all the others. Just consider that in the past I reinstalled Windows 10 from scratch: the Store worked fine for one day and then the problem occurred again. If I create another user, the problem occurs for the other user too.

          RP
          Rokas Pakarklis Oct 31, 2021

          Oh my gosh. I’m so glad I read the comments. I tried all the suggested fixes in the post itself but it didn’t do anything for my problem. But this command just fixed it for me and now I can open Microsoft store again. You’ve just single handedly cured this headache, so thank you so much

          MZ
          Muhammad Zubyan Author Oct 31, 2021

          Thank you so much for the confirmation of this solution. We will add it to the post soon!

    MZ
    Muhammad Zubyan Author Apr 21, 2021

    Have you tried uninstalling and installing Store again? Follow these steps:-

    1. First of all search for command prompt in search menu and then click “run as administrator”.
    2. Type the following command:-

    icacls “C:Program FilesWindowsApps” /reset /t /c /q

    Check to see if the issue persists. If it does persists you can try to reinstall the Store using these command:-

    powershell $manifest = (Get-AppxPackage Microsoft.WindowsStore).InstallLocation + ‘AppxManifest.xml’ ; Add-AppxPackage -DisableDevelopmentMode -Register $manifest

    Reply
    NO
    Noffie Jun 4, 2021

    OH MY GOD THANK YOU. I HAVE BEEN TRYING FOR LIKE 7 WEEKS

    TR
    Triangulatorr Jun 26, 2021

    me4. Thanks Kevin.

    CO
    Compliment Aug 12, 2021

    First method really work on win11, Thank you, really

    SP
    SpookyGhost Aug 18, 2021

    Method 6 worked for me you’re a hero! I have been struggling with this for weeks now.

    RB
    Robert Brubaker Aug 25, 2021

    I’ve spent days trying to repair Windows Store and Cortana using numerous different help pages (many of which specified numerous similar procedures), albeit without success. Method 6 above (RESETTING PERMISSIONS) which I had not seen on any of the previous pages I visited worked for me, and I almost fell out of my chair through sheer surprise! MANY THANKS!!!!

    BU
    bulgarski Jan 16, 2022

    THANKYOU the last one WORKED 🙂

    JD
    Julien Desmarest Feb 26, 2022

    Hello for the powershell commande try this :

    Get-AppXPackage | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register $(“$($_.InstallLocation)AppXManifest.xml”)}

    Reply
    CC
    Classy Car Apr 23, 2022

    YO thanks. My brothers elitebook 2570p microsoft store kept flippin crashing EVERY time and nothing worked. I did step 1 and restarted and once waiting like 20 minutes for it to start up (yes, it needs an ssd upgrade) IT FINALLY OPENED. I feel dumb now but hey, at least it works. Thanks!

    JX
    Joe_XXX May 1, 2022

    Like many others, I have been trying to find a solution that works for countless hours and now your method 1 has solved it. THANKS a million!!!

    J'
    J'Neal Jun 17, 2022

    Wonderful, step 5 finally got my store back up! quick note, the powershell code is missing quotes at the install location: Get-AppXPackage | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register “$($_.InstallLocation)AppXManifest.xml”}

    Reply
    J'
    J'Neal Jun 17, 2022

    Hallelujah, after half a year your 5th step finally fixed it! Thank you so much!

    FJ
    Felix Jones Jun 28, 2022

    Praise be, method seven has fixed it. I have spent at least 20 hours attempting to diagnose and fix whatever I broke when I started ripping window’s insides apart to disable microsoft edge, and the final method is the only one in dozens of forums, videos and tutorials to have fixed anything. I cant believe it took me this long to find this one page.

    MS
    Mohammad Shoaib Oct 14, 2022

    Greate Saved my day

    RM
    Roman Martinez Dec 17, 2022

    Thank you so much! for me was the setp 1, thank you!

    LH
    Labib Hasan Nov 22, 2023

    man give this guy a crown, I was about to give it a new windows reset then i saw his website

    AJ
    AJ Jan 14, 2024

    Thanks brother, I tried EVERYTHING out there and none worked. I don’t know which method worked for me as I did everyone and when I restarted pc, I got my Store back to open.