Windows 10: CMD and Powershell instantly closes after opening it.

Discus and support CMD and Powershell instantly closes after opening it. in Windows 10 Gaming to solve the problem; For I think a few years now, whenever I open CMD, Powershell or something similar, it is there for a few seconds and I can use it but then it just... Discussion in 'Windows 10 Gaming' started by Florian Scholz1, Mar 12, 2023.

  1. CMD and Powershell instantly closes after opening it.


    For I think a few years now, whenever I open CMD, Powershell or something similar, it is there for a few seconds and I can use it but then it just randomly closes.I have been looking for fixes for so long can someone please help me?

    :)
     
    Florian Scholz1, Mar 12, 2023
    #1

  2. 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 Startup list, so I don't know where else I can go to stop it from doing this.
     
    IsaacHardin, Mar 12, 2023
    #2
  3. 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 haven't changed any settings so I don't know what is causing it.
     
    KelgySanchez, Mar 12, 2023
    #3
  4. CMD and Powershell instantly closes after opening it.

    Cmd instantly closes

    So my cmd instantly closes.

    That is because you have an Autoruns key in there which is starting explorer and then exiting.

    That key seems to be there because something else is broken and explorer is not starting when you log on.

    Note that the key is not required for normal operation of Windows.

    You need to fix explorer first and then remove the Autoruns key.

    To fix explorer:

    • Run regedt32
    • Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon.
    • On the right side, there should be a value called Shell.
    • In the right hand side pane, make sure that the default string value of Shell is explorer.exe.
    • Save any changes
    • Log off and log on again.

    Source Windows explorer.exe does not start or open at startup
     
    DavidPostill, Mar 12, 2023
    #4
Thema:

CMD and Powershell instantly closes after opening it.

Loading...
  1. CMD and Powershell instantly closes after opening it. - Similar Threads - CMD Powershell instantly

  2. CMD and PowerShell Closing after a couple of seconds, CMD and Powershell closing.

    in Windows 10 Gaming
    CMD and PowerShell Closing after a couple of seconds, CMD and Powershell closing.: My Laptop is fine i didnt download any viruses, Didnt mess with system files nor modify it. After a normal restart, A message that pops up for half a second saying "This app wont work on this computer" Or something like that The messages appears and disappears too fast its...
  3. CMD and PowerShell Closing after a couple of seconds, CMD and Powershell closing.

    in Windows 10 Software and Apps
    CMD and PowerShell Closing after a couple of seconds, CMD and Powershell closing.: My Laptop is fine i didnt download any viruses, Didnt mess with system files nor modify it. After a normal restart, A message that pops up for half a second saying "This app wont work on this computer" Or something like that The messages appears and disappears too fast its...
  4. CMD and PowerShell Closing after a couple of seconds, CMD and Powershell closing.

    in Windows 10 Customization
    CMD and PowerShell Closing after a couple of seconds, CMD and Powershell closing.: My Laptop is fine i didnt download any viruses, Didnt mess with system files nor modify it. After a normal restart, A message that pops up for half a second saying "This app wont work on this computer" Or something like that The messages appears and disappears too fast its...
  5. CMD and Powershell instantly closes after opening it.

    in Windows 10 BSOD Crashes and Debugging
    CMD and Powershell instantly closes after opening it.: For I think a few years now, whenever I open CMD, Powershell or something similar, it is there for a few seconds and I can use it but then it just randomly closes.I have been looking for fixes for so long can someone please help me?...
  6. CMD and Powershell instantly closes after opening it.

    in Windows 10 Software and Apps
    CMD and Powershell instantly closes after opening it.: For I think a few years now, whenever I open CMD, Powershell or something similar, it is there for a few seconds and I can use it but then it just randomly closes.I have been looking for fixes for so long can someone please help me?...
  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. CMD promt opens and closes instantly.

    in Windows 10 BSOD Crashes and Debugging
    CMD promt opens and closes instantly.: I tried SFC and Anti-virus scans, both of these failed to fix it. I managed to capture the CMD screen using ShadowPlay https://answers.microsoft.com/en-us/windows/forum/all/cmd-promt-opens-and-closes-instantly/bfc9daab-0f8f-4afd-acef-45893f5d10b2