Fix: Microsoft Edge Opens Then Closes

There’s no doubt that the Windows Edge browser is quite an improvement over Microsoft’s previous browser Internet Explorer. But Windows Edge is far from perfect with a few bugs in it. One of the problems that you might face while using Microsoft Edge is the crashing. When you open Microsoft Edge, it will close immediately. For some users, it stays open for a second or two while it quickly closes for other users. This error, obviously, prevents users from using Microsoft Edge which can be troublesome especially if you use Microsoft Edge as your main browser. However, keep in mind that this error only effects Microsoft Edge and other browsers work just fine. So, you can use Mozilla Firefox or Google Chrome while you are having problems with Microsoft Edge.

The problem is because of a Windows bug that Windows officials are working on. That is why you are most likely to see this problem if you recently did a Windows Update. However, the good news is that this will be solved in the next updates. But until then, you can solve the issue by following the methods given below.

Try the general troubleshooting. If that doesn’t solve your problem then move on to the methods given in detail.

General Troubleshooting

These are some general troubleshooting steps that you should perform before diving into the details of solution methods. These general solutions will only work if Edge opens, if it won’t open at all then ignore these and proceed with Method 1.

Clear Cache

  1. Open Microsoft Edge.
  2. Click the More (3 dots) button then select Settings.
  3. Click Choose what to clear under Clear browsing data.
  4. Select Cache data only and click Clear.

Reset Browser

  1. Hold Windows key and press R
  2. Type control and press Enter
  3. Click Network and internet
  4. Click Internet Options
  5. Click Advanced tab
  6. Click Reset
  7. Restart your computer

Run Troubleshooter

Go here and click on run troubleshooter. Follow the on-screen instructions to run the troubleshooter.

Method 1: Uninstall and Reinstall the Microsoft Edge

Note: This method will remove your Favourites or any other setting related to Microsoft Edge browser. So follow this method on your own risk. It is also advised to make restore point just in case you want to revert the changes.

Uninstalling and then reinstalling Microsoft Edge solves the problem for almost everyone. In order to uninstall the Microsoft Edge, you will need to either rename or delete a certain Microsoft Edge’s folder. But that folder is hidden by default so you need to make sure that you can see hidden files and folders. To do this follow the steps given below

  1. Hold Windows key and press E
  2. Click View
  3. Check the option that says hidden items

Uninstalling of Microsoft Edge

Now follow the following steps to uninstall Microsoft Edge

  1. Restart your computer to make sure none of the Microsoft Edge’s files are open because they will interfere with the uninstallation process
  2. Press Windows key once
  3. Type cmd in the Start Search box
  4. Right click on the cmd that appears in the search results and select Run as administrator
  5. Type the command given below and press Enter

  1. Type the command given below and press Enter

REN C:\Users\username\AppData\Local\Packages\Microsoft.MicrosoftEdge_8wekyb3d8bbwe edge.old

Note: replace “[username]” with your computers username

  1. Repeat step 6 again to make sure the folder is renamed. If the folder is renamed then you should see and error like Windows cannot find the file specified.

If you run into errors, make sure the folder name and paths are correct. (you can get these manually, by going to Packages\

If you see an Access Denied error or any other error then you have 2 options. Either rename the folders from Windows Explorer or switch to another account (administrator) and change the name of the folder from there. Steps for both are given below

Windows Explorer:

  1. Restart your computer
  2. Hold Windows key and press R
  3. Type the following and press:
    C:\Users\%username%\AppData\Local\Packages\Microsoft.MicrosoftEdge_8wekyb3d8bbwe
  4. Right click on the RoamingState folder and click Delete
  5. Confirm if computer asks for permission
  6. Hold Windows key and press R
  7. Type C:\Users\%username%\AppData\Local\Packages\ and press Enter
  8. Locate and right click the folder named MicrosoftEdge_8wekyb3d8bbwe and select Rename. Rename this folder too Microsoft.MicrosoftEdge_8wekyb3d8bbwe.OLD and press Enter

Switching Accounts:

Sometimes you might need to switch to a local account (from your Microsoft Account) to rename the Microsoft Edge folder. This always lets you rename the folder but it takes more time

  1. Press Windows Key once
  2. Select Settings
  3. Click Accounts
  4. Click Sign in with a local account instead
  5. Enter the password of your current Microsoft account
  6. Type in your username and password.
  7. Click Next

Now you will sign out from your Microsoft Account and sign in to your local account. Once you are signed in, repeat the above-given steps to rename the Microsoft Edge folder. You can use wither the Command Prompt way or the windows Explorer way.

Reinstalling of Microsoft Edge

The above steps should uninstall Microsoft Edge from your computer. Now you can reinstall the browser by following steps

  1. Press Windows key once
  2. Type Powershell in the Start Search box
  3. Right-click on the PowerShell that appears in the search results and select Run as administrator
  4. Type cd c:\users\[username] and press Enter. Replace “[username]” with your computer’s username. Also, keep in mind if your username has more than one word then write it in quotations. For example users\”John boy”.
  5. Type the following and press Enter:
    Get-AppXPackage -AllUsers -Name Microsoft.MicrosoftEdge | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml" -Verbose}



  6. Wait until the processing is finished.
  7. Type exit and press Enter once the process is finished

Now your Microsoft Edge is installed back and it should work fine.

In case of errors:

If you see any errors then do the following:

  1. Hold Windows key and press R
  2. Type %SYSTEMROOT%\SystemApps and press Enter
  3. Locate and right-click the folder named MicrosoftEdge_8wekyb3d8bbwe and select Rename. Rename this folder to Microsoft.MicrosoftEdge_8wekyb3d8bbwe.OLD and press enter
  4. Now press Windows key once
  5. Type cmd in the Start Search box
  6. Right-click on the cmd that appears in the search results and select Run as administrator
  7. Type sfc /scannow and press Enter
  8. Once it is finished close the Command Prompt
  9. Press Windows key once
  10. Type Powershell in the Start Search box
  11. Right-click on the PowerShell that appears in the search results and select Run as administrator
  12. Type the following and press Enter:
    Get-AppXPackage -AllUsers -Name Microsoft.MicrosoftEdge | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register “$($_.InstallLocation)\AppXManifest.xml” -Verbose}

Once it is finished, you should be good to go.

Method 2: Switching Accounts

This isn’t a solution but more of a hack for this problem because it doesn’t actually solve the problem. You can get around the problem by switching to another account. The problem is mainly caused in you are signed in with your Microsoft Account.

So as long as you aren’t signed in with your Microsoft Account, Microsoft Edge should work fine. To switch to a local account, follow the steps given below

  1. Press Windows Key once
  2. Select Settings
  3. Click Accounts
  4. Click Sign in with a local account instead
  5. Enter the password of your current Microsoft account
  6. Type in your username and password.
  7. Click Next

Now you will sign out from your Microsoft Account and sign in to your local account.

Kevin Arrows
Kevin is a dynamic and self-motivated information technology professional, with a Thorough knowledge of all facets pertaining to network infrastructure design, implementation and administration. Superior record of delivering simultaneous large-scale mission critical projects on time and under budget.

Expert Tip

Fix: Microsoft Edge Opens Then Closes

If the issue is with your Computer or a Laptop you should try using Restoro which can scan the repositories and replace corrupt and missing files. This works in most cases, where the issue is originated due to a system corruption. You can download Restoro by clicking the Download button below.

Download Now

I'm not interested