Fix: Windows Store apps crashing in Windows 8, 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.

powershell 1 600x271 Fix: Windows Store apps crashing in Windows 8, by performing Clean Uninstall using PowerShell

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.

powershell 3 517x600 Fix: Windows Store apps crashing in Windows 8, by performing Clean Uninstall using PowerShell

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

powershell 4 600x417 Fix: Windows Store apps crashing in Windows 8, by performing Clean Uninstall using PowerShell

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.

powershell 5 600x417 Fix: Windows Store apps crashing in Windows 8, by performing Clean Uninstall using PowerShell

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.

script x 600x230 Fix: Windows Store apps crashing in Windows 8, by performing Clean Uninstall using PowerShell

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 aka HappyAndyK is an end-user Windows enthusiast, a Microsoft MVP in Windows, since 2006, and the Admin of TheWindowsClub.com. Please create a System Restore Point before trying out any software & be careful about any third-party offers while installing freeware. Add me on Google+.
  • Peter

    Remove-AppxPackage -Package Facebook.Facebook saved me

  • naman

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

  • 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 @ http://gallery.technet.microsoft.com/scriptcenter/Remove-Windows-Store-Apps-a00ef4a4. 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!

  • http://www.thewindowsclub.com Anand Khanse

    Thank you J. R. Acton III, really appreciate the kind words. :)

  • Epic19192

    Look..
    “Input IDs and separate IDs by comma”

  • Recent Comments