Microsoft introduced the Edge browser with Windows 10, the latest version of their operating system. Whilst being a good offering, the browser isn’t mature yet and lacks behind on functionality when compared to the likes of Firefox or Opera. Some issues with Edge include random freezes and force close which causes users to lose data entered into forms, etc. If you too are facing issues with the Edge browser, you can follow the steps below to reset the browser which can cut down on these random issues.
Step 1: Delete App Data for Edge
Open Windows Explorer and navigate to the following directory :
C:\Users\USERNAME\AppData\Local\Packages
For example, in my PC, the location is like this : C:\Users\Akhil\AppData\Local\Packages.
Find the folder named Microsoft.MicrosoftEdge_8wekyb3d8bbwe and delete it. If the system denies the deletion process of some files, skip them. After deleting, restart your PC.
Step 2: Reinstall Microsoft Edge using PowerShell
Open Start, type powershell. Right click on the result named Windows PowerShell and select Run as administrator.
After opening Windows powershell, copy and paste the following command in the Powershell terminal and press the Enter key.
Get-AppXPackage -AllUsers -Name Microsoft.MicrosoftEdge | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register “$($_.InstallLocation)\AppXManifest.xml” -verbose}
Now it will show some operations screen, it will show this text : Operation completed. Restart your PC when done and launch Microsoft Edge browser, everything should be good. Your browser will become like a newly installed one.
I got the following error.
About to service package
Microsoft.MicrosoftEdge_44.17763.1.0_neutral__8wekyb3d8bbwe. Setting the
package state to disabled returned with 0x0.
Error while deleting the existing application data. Error Code: 0x80070091.
An internal error occurred with error 0x80073D05. See
http://go.microsoft.com/fwlink/?LinkId=235160 for help diagnosing app
deployment issues.
error 0x80073D05: While processing the request, the system failed to register
the windows.stateExtension extension due to the following error: An error
occurred while deleting the package’s previously existing application data.
.
error 0x80073D05: Cannot register the request because the following error was
encountered during the registration of the windows.stateExtension extension: An
error occurred while deleting the package’s previously existing application
data.
.
Thank you very much, needed a quick example for the cmdlet and got what I needed. And without a shit ton of pop-ups in my face, appreciate it 😉
By the way, you may want to edit the code in the html itself and replace your “ and ” quotation characters with "
Correct:
Get-AppXPackage -AllUsers -Name Microsoft.MicrosoftEdge | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register “$($_.InstallLocation)\AppXManifest.xml” -verbose}
Wrong:
Get-AppXPackage -AllUsers -Name Microsoft.MicrosoftEdge | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register “$($_.InstallLocation)\AppXManifest.xml” -verbose}
Just realized that my previous comment doesn’t distinguish the different between the smart quotes and regular html quotes which use the html code:
Thank you for the comment, Travis. I believe WordPress does that automatically, however, it should not have done that for a pre-formatted text. Anyhow, we do not regularly post such codes here. So, I think I’ll leave it as is since it does not actually affect the outcome. We all hate pop-ups. So, that’s not something I would ever inject into the web pages here.
have all permissions set to allow and logged in as administrator but system won’t let me delete file in packages. Edge opens up but won’t go to any pages after I reset windows 10 on my PC
Worked nicely for me. Be sure to run powershell as administrator.
Hi. I tried the above but, still, Edge tries to open but after about 1- seconds closes. Any thing else I can try?
Had the same issue. You need to reinstall Windows. I called MS & that’s what they told me to do.
So, you might need to run PowerShell as Administrator. If the titlebar of your first PowerShell window doesn’t start with *Administrator:*, type “Start-Process PowerShell –Verb RunAs” (without the quotation marks) in the PowerShell command line and hit ENTER. A new PowerShell window will open in Administrator mode. Now enter the full Get-Appx command from above. I was getting an “Access is denied” error until I elevated the PowerShell window this way.
thanks it worked for me 🙂
did all that and still will not work — opens for few moments then shuts down please help
Are you sure that you are in the Administrator user account ?
hi
I am trying to delete this edge file as above but it says that I need administrator rights to do that how can I do that
Hi – getting the below error in powershell – any idea how to fix?
PS C:\WINDOWS\system32> Get -AppXPackage -AllUsers -Name Microsoft.MicrosoftEdge | Foreach {Add-AppxPackage -DisableDeve
lopmentMode -Register “$($_.InstallLocation)\AppXManifest.xml” -verbose}
Get : The term ‘Get’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ Get -AppXPackage -AllUsers -Name Microsoft.MicrosoftEdge | Foreach {A …
+ ~~~
+ CategoryInfo : ObjectNotFound: (Get:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
PS C:\WINDOWS\system32>
Sorry for the problem. There was a small typing error in the command. I’ve fixed it now 🙂