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.

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

13
    AJ
    Ayushi Jain Jun 15, 2017

    Thanks.. Switching accounts fixed my issue..

    JE
    Jeremy Apr 12, 2018

    I Took Trusteer Rapport off and it worked instantly. Seems like issue was started after last windows 10 update.

    Reply
      CR
      Chantal Ranger-Richard Apr 21, 2018

      Before, I had tried everything and nothing was fixing the problem. I read your message and your solution did it! I am so happy! I deleted the Trusteer software from my computer and even digged into the Registry to completely get rid of! 🙂

    JC
    John Chidgey Apr 17, 2018

    I tried this but…

    This is my error message when I try to reinstall it using PowerShell Admin:

    PS C:windowssystem> Get-AppXPackage -AllUsers -Name Microsoft.MicrosoftEdge | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register “$($_.InstallLocation)AppXManifest.xml” -Verbose}

    Add-AppxPackage : Cannot find path ‘C:AppXManifest.xml’ because it does not exist.
    At line:1 char:68
    + … | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register “$($_.I …
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : ObjectNotFound: (C:AppXManifest.xml:String) [Add-AppxPackage], ItemNotFoundException
    + FullyQualifiedErrorId : PathNotFound,Microsoft.Windows.Appx.PackageManager.Commands.AddAppxPackageCommand

    RT
    Rodney Thomas Aug 4, 2018

    Goto Start Menu > right-click Microsoft Edge > select APP Settings > Reset Microsoft Edge…

    Simple as that…no reghax etc…

    Reply
      MA
      MadDogD01 Oct 31, 2018

      This worked!!! Thanks

    SW
    Shane Warren Author Sep 29, 2019

    Restore to an earlier date or mount an ISO of the same version of Windows and conduct a repair

    MJ
    Mark Jacobs Oct 3, 2019

    None of the solutions have worked for me. I simply cannot get Edge to work. Also, on a VMWare machine, Edge will load, but relaunches the webpage you’re on when you right-click View Source. All in all, Edge is a real disappointment.

    SW
    Shane Warren Author Oct 4, 2019

    Try this, create a new administrative account on the computer and check if Edge works correctly. Also, if it doesn’t work, but the computer in safe mode and check if the problem persists, if it does, it means that the issue is being caused due to a background application. Close, the app, restart the computer and check if it helps.

    Reply
    RF
    Ron Frazier Jan 23, 2020

    After wasting hours trying to resolve this, I changed to Google Chrome. No problems.

    MP
    Mochammad Yuliardhi Pratama Jul 30, 2020

    its stupid edge, he do update n put new bugs. dnt u reset your edge browser,cuz its can lose your addon setting n data. n microsoft n dev , they dnt care its. solution dnt use n click search address box on top edge browser. they put script bugs,its make your browser close. instal addon “search all ” from webstore chrome. its habits,that dev to many do experiment every day. n this bugs always created by them n will always comes, they dnt care your addon data. so u must survive self. on they game. if do reset u lose your setting data n your addon. suck dev edge.

    ZE
    Zarul Elzani Nov 26, 2021

    VERBOSE: Performing the operation “Register package” on target
    “C:WindowsSystemAppsMicrosoft.MicrosoftEdge_8wekyb3d8bbweAppXManifest.xml”.
    Add-AppxPackage : Deployment failed with HRESULT: 0x80073D02, The package could not be installed because resources it
    modifies are currently in use.
    error 0x80073D02: Unable to install because the following apps need to be closed
    Microsoft.MicrosoftEdge_44.22000.120.0_neutral__8wekyb3d8bbwe.
    NOTE: For additional information, look for [ActivityId] 8a2d27ed-e1f4-0001-d58b-5c8af4e1d701 in the Event Log or use
    the command line Get-AppPackageLog -ActivityID 8a2d27ed-e1f4-0001-d58b-5c8af4e1d701
    At line:1 char:68
    + … | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register “$($_.I …
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : NotSpecified: (C:WindowsSyst…ppXManifest.xml:String) [Add-AppxPackage], Exception
    + FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.AddAppxPackageCommand.

      MZ
      Muhammad Zubyan Author Nov 27, 2021

      You have to close Edge if it’s already running, I suggest you boot into safe mode and try the methods again. Here is how you can boot into safe mode https://appuals.com/how-to-start-windows-10-in-safe-mode/

      Reply