Windows 10: CMD and PowerShell Closing after a couple of seconds

Discus and support CMD and PowerShell Closing after a couple of seconds in Windows 10 Network and Sharing to solve the problem; My pc 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... Discussion in 'Windows 10 Network and Sharing' started by NotGesu, Apr 13, 2022.

  1. NotGesu Win User

    CMD and PowerShell Closing after a couple of seconds


    My pc 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 hard to make out the text and the cmd icon appears for a split second in the taskbar. I searched for fixes and i got told to use the sfc /scannow command to scan for possibly corrupted or missing files.I opened CMD and ran the command but it just closes after a few seconds. I tried not inputing any commands and it still did.

    :)
     
    NotGesu, Apr 13, 2022
    #1

  2. CMD and PowerShell

    Hi Andre,

    I did all items you listed.

    After reboot, running CMD and powershell (admin) had the same result ("no app associated"). So I turned the feature off in taskbar settings.

    Regards,

    Danker
     
    dschaareman, Apr 13, 2022
    #2
  3. Windows 10 Store: After recent update, app force closes

    Hi,

    Thanks for posting your query on Microsoft Community.

    To assist you better, I would like to know; which all troubleshooting steps you have tried?

    I would suggest you to runshell commands for Windows store and check if it helps.

    Follow the below steps:


    • Press Windows key + X and select
      Command prompt(Admin)
      to open elevated Command prompt.

    • Type the following commands.

      powershell -ExecutionPolicy Unrestricted Add-AppxPackage -DisableDevelopmentMode -Register $Env:SystemRoot\WinStore\AppxManifest.xml

    • Hit enter, the blackscreen will appear still for a couple of seconds. After a couple of second a new line saying C:\.... will appear.

    • Close Command Prompt.

    • Try to start the Windows Store again.


    Hope it helps, reply to us with the status of your issue. We will be happy to assist you.
     
    Santosh_Rai, Apr 13, 2022
    #3
  4. CMD and PowerShell Closing after a couple of seconds

    CMD keeps running for a seconds an close by itself

    How can I fix the problem that the CMD window opens for a few seconds and then close by itself
     
    Sherif.Magdy75, Apr 13, 2022
    #4
Thema:

CMD and PowerShell Closing after a couple of seconds

Loading...
  1. CMD and PowerShell Closing after a couple of seconds - Similar Threads - CMD PowerShell Closing

  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 Gaming
    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 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?...
  8. CMD and PowerShell Closing after a couple of seconds

    in Windows 10 Gaming
    CMD and PowerShell Closing after a couple of seconds: My pc 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 hard...
  9. CMD and PowerShell Closing after a couple of seconds

    in Windows 10 Software and Apps
    CMD and PowerShell Closing after a couple of seconds: My pc 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 hard...
  10. 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...

Users found this page by searching for:

  1. cmd closing after few seconds