Fix Windows Store apps crashing, by performing Clean Uninstall using PowerShell

Sometimes Windows Store apps may keep crashing every time you run it, in Windows 8. This may happen for no apparent reason. As a solution, you may have tried running the App Troubleshooter or even successfully uninstalling and then reinstalling the app. But still you may find that the app may continue to crash even after the reinstallation.

Windows Store apps crashing in Windows 8

If your Windows Store app is crashing every time you run it, you may want to check out these posts before you proceed:

If none of these help, the final solution could possible be to completely uninstall and remove the particular app from your Windows 8 device. To do so, you can use PowerShell and scripting to perform a Clean Uninstall of the Windows Store app.

Note: I am not familiar with PowerShell, having used it for the first time now. But when I found my Windows Phone app constantly crashing in spite of having reinstalled it and trying other troubleshooting steps, I decided to use this script. This was the first time that I had opened PowerShell! It was only after some trial and error that I was able to get the script to work. Based on what I read at the TechNet Script Center post, this is the way I went about it. It worked for me and I hope it does for you too.

First, I recommend you create a system restore point.

Having done that you will have to allow active scripting on your Windows 8 computer. Because, by default, for security reasons, PowerShell’s execution policy is set to Restricted. This means that scripts won’t run. In such a scenario, if you try to run a script, you will get an error:

Running scripts is disabled on this system

Open Powershell as an administrator. To do so, while on the start screen, type powershell, and on the result, right click and select Run as administrator.

Type Set-ExecutionPolicy -ExecutionPolicy Unrestricted and hit Enter.


Type Y again as confirmation and hit Enter again. This will change the Execution Policy.

Now, download this script from Microsoft and extract the contents of the zipped file. Open RemoveWindowsStoreApp with a Notepad. Scroll down to the end of the script file, and then add the command that you want to run – in this case Remove-OSCAppxPackage. Save the script.

Next, run the script using PowerShell. Check the path. Change the directory if need be, Type cd C:\ and hit Enter. Then place the RemoveWindowsStoreApp on your C drive if need be.

When you run the script, it will first list all the installed apps along with the app IDs.


In my case, The Windows Phone app had the ID “34”.


You will be asked Which Apps do you want to remove. Enter the ID or IDs and hit Enter. I entered 34 and hit Enter.


A Clean Uninstall will be performed and the app will be completely removed from your system.

Now restart the computer and reinstall the app. The app should hopefully work and not crash now.

Once your work is done, remember to change back the PowerShell Execution policy to Restricted using: Set-ExecutionPolicy -ExecutionPolicy Restricted.


Hope it helps!

If you are facing other kinds of problems with your Windows Store apps, you may want to check these links:

  1. Fix: Unable to Install Apps from Windows 8 Store
  2. Fix: Unable to update Windows Store applications on Windows 8.
Posted by on , in Category Windows with Tags
Anand Khanse is the Admin of, a 10-year Microsoft MVP Awardee in Windows (2006-16) & a Windows Insider MVP. Please read the entire post & the comments first, create a System Restore Point before making any changes to your system & be careful about any 3rd-party offers while installing freeware.


  1. Peter

    Remove-AppxPackage -Package Facebook.Facebook saved me

  2. naman

    can we enter multiple apps to uninstall from pc at once ???

  3. J. R. Acton III

    Another highly useful post, Anand (as always!). I notice that the article’s link to the “Remove Windows Store apps in Windows 8” script is broken; as of 18Feb14 the script can be found In the TEchNet Script Center @ Again, thanks for all the great stuff – I’m sure I’m not the only person your concise and informative articles helped over the years!

  4. Thank you J. R. Acton III, really appreciate the kind words. 🙂

  5. Epic19192

    “Input IDs and separate IDs by comma”

  6. Geon George

    u dont need to do all that just run this bats script from this blog
    Just visit this blog for latest fix(trust me u won’t regret)
    u will find a small batch script which will help u

  7. Mitchell Pierce

    Hope you can help me I have completely reinstalled my windows RT 8.1 a couple times and still have the problem involving games. When the tablet goes to sleep it will not wake up. But if I close the game and do a wsreset it is fine and will awake. Is there anyway you can run wsreset all the time before it goes to sleep?

  8. RandomUser1981

    I tried the method above but it didn’t fix my issue. I was hopeful that the script would fix Solitaire Collection. for the life of me I can’t figure out how that game, which was working fine, got messed up just by running the GetAppPackage registration command. All the other store based apps work fine.

    I’ve tried taking ownership of the folders where this game installs, uninstalling, restarting and reinstalling the game, your methods here, reregistering all the apps again, and again. This game just won’t load, shows the frame and the name then closes instantly. If anyone has an updated approach to tackle the apps crashing on startup issue please explain how or link me to a site that can help.

Leave a Reply

Your email address will not be published. Required fields are marked *

7 + 4 =