Windows 10: Why does Powershell crashing cause Edge to close and open?

Discus and support Why does Powershell crashing cause Edge to close and open? in Windows 10 Gaming to solve the problem; Hello, PowerShell is crashing so many times and when that happens, it closes all browsers and it opens Edge. I tried to disable running at startup, I... Discussion in 'Windows 10 Gaming' started by pedro henrique fontes, Jun 28, 2025 at 5:18 PM.

  1. Why does Powershell crashing cause Edge to close and open?


    Hello, PowerShell is crashing so many times and when that happens, it closes all browsers and it opens Edge. I tried to disable running at startup, I ran sfc /scannow, I disabled Edge starting up on startup, but it didn't work.How do I fix this?

    :)
     
    pedro henrique fontes, Jun 28, 2025 at 5:18 PM
    #1

  2. windows edge opens then closes immediately

    Hi Jamie,

    Thank you for keeping us posted.

    From what you have mentioned, it looks like Microsoft Edge is set as the default browser. I would suggest you to try the steps below to set Internet Explorer as the default browser and check if you are able to open the PDF file.

    1. Press Windows key + I to open settings.

    2. Click "system" and click "default apps" on the left pane.

    3. Under "browser", if Microsoft Edge is listed, click on it and choose Internet Explorer from the list.

    Also, for Microsoft Edge crash related issue, please follow the steps given below to run powershell command.

    Powershell is a scripting language for Windows and Windows Server that allows you to simplify the management of your systems.

    1. Type powershell in the search bar

    2. Right click on PowerShell and select
    run as administrator


    3. Copy and paste the following command and press enter:

    Get-AppXPackage -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register “$($_.InstallLocation)\AppXManifest.xml”}

    4. Once the command is completed successfully, restart the computer and check again.

    Let us know the result.
     
    Wungraileng Vashi, Jun 28, 2025 at 5:22 PM
    #2
  3. helios12 Win User
    Opening Microsoft Edge Causes Explorer.exe to Hang then Crash

    Using Windows version 21H1 (OS Build 19043.1288) So a few days ago I discovered that when ever I open up Microsoft Edge I would quickly loses the ability to alt-tab or use the windows key though control+alt+delete still works, then my computer would seem to completely crash if I clicked anything outside of a Microsoft Edge window like the task bar (forcing me to reboot) or in the best case seem to freeze for a long period of time (at times over 10 minutes). At first I was able to use task manager to restart explorer.exe, and while it would take a minute or two to reboot it would seem to fix the issue. Later, when trying to launch task manger would not work as it would never appear. After more digging around and talking with a friend more knowledgeable in computers than me and I tried:
    • SFC /Scannow command
    • Windows Memory Test through advance trouble shooting in options
    • Tried using CPUID HWMonitor to check the CPU temputre to see if it was over heating
    • Tried disabling my two adblocker extensions (while turning off one seemed to work for about a day the issue came back)
    • Tried disabling both my adblocker extensions
    • Googling "Why does launching Microsoft Edge crash (or make) explorer.exe hang (pretty much only got results about Microsoft Edge crashing, the one thing not crashing in my case as far as I can tell)
    • Tried clearing the explorer.exe cache/quick access cache thing
    • Tired clearing Microsoft Edge's cache
    Yet none of that has solved the issue for more than a day, and afterward when I opened Microsoft Edge up the next day and the issue arose again it seems that a solution that had previously worked now no longer works at all. When I went into event viewer saw the following (though this error did not seem to appear for every instance of the error I experienced): "The program explorer.exe version 10.0.19041.1266 stopped interacting with Windows and was closed. To see if more information about the problem is available, check the problem history in the Security and Maintenance **control panel. Process ID: 3858 Start Time: 01d7cba48be397f9 Termination Time: 0 Application Path: C:\Windows\explorer.exe Report Id: c6db2dbc-b1d9-401e-9e5b-a08744b4d42f Faulting package full name: Faulting package-relative application ID: Hang type: Unknown" In all cases the issue only appears when opening Microsoft Edge which itself would continue to operate fine minus the ability to use alt-tab, and occasionally being unable to switch Edge windows. Also launching Microsoft Edge InPrivate mode would not result in any issues, but the minute I went back to normal mode the issue arose. (Also yes I know I could just switch browsers but then I would need to go get the bookmark and sessions files and see if they are compatible with other browsers) I am completely out of ideas and googling solutions seems to lead me in circles of people suggesting the same things, or more often not finding anything related to the crashing/hanging of Explorer.exe after opening Microsoft Edge.
     
  4. Why does Powershell crashing cause Edge to close and open?

    Edge favourites disappear and crash.

    Hi,

    Thank you for posting in Community, I understand your concern and we apologize for the inconvenience caused.

    Before we proceed, I would like to know if the same issue arises when you log in Google and Youtube through Internet Explorer?



    I would suggest that you try the steps mentioned below and check if it helps.

    Step 1: Add Favorites.

    I would suggest that you save all you favorites in Internet Explorer. Once done proceed to step2.

    Step 2: Reset Edge.

    • Navigate to the location:
    C:\Users\%username%\AppData\Local\Packages\Microsoft.MicrosoftEdge_8wekyb3d8bbwe

    • Delete everything in this folder.
    • Type Windows Powershell in search box.
    • Right click on Windows Powershell and select
      Run as administrator.
    • Copy and paste the following command.
    Get-AppXPackage -AllUsers -Name Microsoft.MicrosoftEdge | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml" –Verbose}

    • Once done import your favorites from Internet Explorer.

    Hope this information helps.
     
    Vanessa Sohtun, Jun 28, 2025 at 5:22 PM
    #4
Thema:

Why does Powershell crashing cause Edge to close and open?

Loading...
  1. Why does Powershell crashing cause Edge to close and open? - Similar Threads - Why does Powershell

  2. Why does Powershell crashing cause Edge to close and open?

    in Windows 10 Software and Apps
    Why does Powershell crashing cause Edge to close and open?: Hello, PowerShell is crashing so many times and when that happens, it closes all browsers and it opens Edge. I tried to disable running at startup, I ran sfc /scannow, I disabled Edge starting up on startup, but it didn't work.How do I fix this?...
  3. Why does my powershell keep opening?

    in Windows 10 Software and Apps
    Why does my powershell keep opening?: When I use my PC for apps or games, PowerShell would pop up and close, which makes me return to home, and I would have to reopen the application again. This keeps happening constantly every 30 minutes or so. I am not sure what to do ....
  4. Why does my PowerShell Closes immediately after selecting Run with PowerShell

    in Windows 10 Gaming
    Why does my PowerShell Closes immediately after selecting Run with PowerShell: I want to run a file using PowerShell but after after selecting Run with PowerShell. PowerShell closes immediately after launching. I couldn't capture the error message....
  5. Powershell Randomly Opening and Closing

    in Windows 10 Gaming
    Powershell Randomly Opening and Closing: Recently, Powershell has been randomly opening and instantly closing, which tabs me out of whatever I'm doing and sometimes restarts my browser Chrome. I have tried resetting the browser and disabing Powershell, but it still happens. Powershell isn't in the Control Panel...
  6. Powershell Randomly Opening and Closing

    in Windows 10 Software and Apps
    Powershell Randomly Opening and Closing: Recently, Powershell has been randomly opening and instantly closing, which tabs me out of whatever I'm doing and sometimes restarts my browser Chrome. I have tried resetting the browser and disabing Powershell, but it still happens. Powershell isn't in the Control Panel...
  7. CMD And PowerShell Open And Close

    in Windows 10 BSOD Crashes and Debugging
    CMD And PowerShell Open And Close: I was playing a game and out of nowhere my game tabbed out and cmd flashed open and closed immediately and seconds later PowerShell did the same thing. I thought nothing of it so I kept playing and then it kept happening after every game. I haven't updated anything and i...
  8. CMD And PowerShell Open And Close

    in Windows 10 Gaming
    CMD And PowerShell Open And Close: I was playing a game and out of nowhere my game tabbed out and cmd flashed open and closed immediately and seconds later PowerShell did the same thing. I thought nothing of it so I kept playing and then it kept happening after every game. I haven't updated anything and i...
  9. CMD And PowerShell Open And Close

    in Windows 10 Software and Apps
    CMD And PowerShell Open And Close: I was playing a game and out of nowhere my game tabbed out and cmd flashed open and closed immediately and seconds later PowerShell did the same thing. I thought nothing of it so I kept playing and then it kept happening after every game. I haven't updated anything and i...
  10. Why does Edge constantly crash when open?

    in Windows 10 BSOD Crashes and Debugging
    Why does Edge constantly crash when open?: Every time when I open Edge Source Microsoft Edge Content Process Summary Stopped working Date ‎7/‎8/‎2019 6:12 PM Status Report sent Description Faulting Application Path: C:\Windows\System32\MicrosoftEdgeCP.exe Problem signature Problem Event Name: MoCFGSUP...