Windows 10: Windows 10 Command Prompt auto closed. Exited with code 1

Discus and support Windows 10 Command Prompt auto closed. Exited with code 1 in Windows 10 Software and Apps to solve the problem; Hi,I'm hitting a problem of Windows Command prompt auto closed in about 2 to 2.5 mins, either I do something or do nothing.Even when I open 4 command... Discussion in 'Windows 10 Software and Apps' started by David HK Chang, Jun 30, 2022.

  1. Windows 10 Command Prompt auto closed. Exited with code 1


    Hi,I'm hitting a problem of Windows Command prompt auto closed in about 2 to 2.5 mins, either I do something or do nothing.Even when I open 4 command prompt windows, wait for a few mins, all 4 windows are closed at the same time.I tried using Windows Terminal and still see a similar thing, with one more info that's showing the exited code 1.I found some info saying deleting registry AutoRun for Command Parser. But my register doesn't have it. So I have no clue why this is happening.I had doubt if CrowdStrike Windows Sensor causes this, but I have no right to uninstall it to test due to no pri

    :)
     
    David HK Chang, Jun 30, 2022
    #1
  2. Bree Win User

    Installation media boots to command prompt

    I've just booted from known working install media to see exactly what it does when booting. The sequence of events is...

    1. Windows logo on a black screen
    2. circling dots appear beneath the logo
    3. light blue 'Please wait' screen with circling dots
    4. a command prompt window (very briefly)
    5. the initial Setup page appears

    Do you see steps 1-3? If so, it appears you have stopped at step 4, suggesting that something on the disc cannot be read.

    Does the disc boot properly in another machine? If so, try cleaning the laptop's drive lens then try booting from the disc again.

    If not, make new install media with Microsoft's Media Creation Tool, either as a bootable USB, on an ISO that you can burn to another disc. At Step 8 in Option One of this tutorial you can choose between making a USB or an ISO.

    Download Windows 10 ISO File
     
  3. Windows 10 Start Menu Auto Close

    Hi,

    Thank you for posting your query on Microsoft Community.

    I would suggest you follow the steps below and see if it helps:

    Step 1: DISM TOOL:


    • On the Search bar type “cmd”. You will notice Command prompt as an option
      Right Click on it and select Run as Administrator. (If prompted for a password, type the password and click Allow)

    • Type “DISM.exe /Online /Cleanup-image /Restorehealth”\
    For more information about DISM click on the link below: Fix Windows Update errors via DISM or System Update Readiness tool - Windows Server | Microsoft Docs

    Step 2: System File Checker (SFC) Scan:


    Hope this helps.

    Regards,
     
    Jesinta Rozario, Jun 30, 2022
    #3
  4. W1zzard Win User

    Windows 10 Command Prompt auto closed. Exited with code 1

    W7 Hard drive partition issue

    to get rid of that 100 meg windows partition that setup creates for you on a new install on a blank hdd:

    - press shift+f10 when on the partition management screen in setup <-- this opens a command prompt
    - diskpart <-- start the windows command line partition management tool
    - list disk <--- list the installed hdds in this computer for the next step
    - select disk 0 <- might have to replace 0 with the number of the correct disk
    - clean <-- this will erase all data on the disk you selected one step up- dont use the wrong disk!
    - create partition primary <- creates a primary partition taking up all space on the drive, adjust the command if necessary
    - exit, exit to exit diskpart and the command prompt
    - click refresh in partition manager and select your newly created partition and install to that
     
    W1zzard, Jun 30, 2022
    #4
Thema:

Windows 10 Command Prompt auto closed. Exited with code 1

Loading...
  1. Windows 10 Command Prompt auto closed. Exited with code 1 - Similar Threads - Command Prompt auto

  2. Windows 10 Command Prompt auto closed. Exited with code 1

    in Windows 10 Gaming
    Windows 10 Command Prompt auto closed. Exited with code 1: Hi,I'm hitting a problem of Windows Command prompt auto closed in about 2 to 2.5 mins, either I do something or do nothing.Even when I open 4 command prompt windows, wait for a few mins, all 4 windows are closed at the same time.I tried using Windows Terminal and still see a...
  3. Windows 10 Command Prompt auto closed. Exited with code 1

    in Windows 10 BSOD Crashes and Debugging
    Windows 10 Command Prompt auto closed. Exited with code 1: Hi,I'm hitting a problem of Windows Command prompt auto closed in about 2 to 2.5 mins, either I do something or do nothing.Even when I open 4 command prompt windows, wait for a few mins, all 4 windows are closed at the same time.I tried using Windows Terminal and still see a...
  4. Command Prompt opens and immediately exits with code 1.

    in Windows 10 BSOD Crashes and Debugging
    Command Prompt opens and immediately exits with code 1.: Hello, I'm sorry to have to post a question when there are dozens with the same title, but I have tried all of the options I have seen suggested, but my issue persists.When I run cmd.exe, it opens and then immediately quits.Things I've tried, but have not solved the...
  5. How to exit Command Prompt in Safe Mode?

    in Windows 10 Customization
    How to exit Command Prompt in Safe Mode?: I forgotten the password and got stuck in Command Prompt in Safe Mode. How can I get out the Command Prompt to go back to Troubleshoot? https://answers.microsoft.com/en-us/windows/forum/all/how-to-exit-command-prompt-in-safe-mode/f92f8ea4-ef74-46f9-ba61-e7e86ff62ca5
  6. Command Prompt opening and closing immediately

    in Windows 10 Network and Sharing
    Command Prompt opening and closing immediately: im trying to open my cmd, ive tried as administrator, I've tried making a copy and renaming the exe file, I've tried launching it in safe mode. and nothing is working...
  7. Command Prompt exited with code 1

    in Windows 10 BSOD Crashes and Debugging
    Command Prompt exited with code 1: [ATTACH] Hi, I'm having this error problem and couldn't run any file and Jupyter notebook is not working also. https://answers.microsoft.com/en-us/windows/forum/all/command-prompt-exited-with-code-1/8f05ee60-869b-4234-8de6-9b42b3ebd364
  8. Command Prompt closing immediately.

    in Windows 10 Customization
    Command Prompt closing immediately.: When I startup and application which requires the command prompt to function I run the application as administrator and then the command prompt just flashes and nothing else happens, I need help....
  9. Command Prompt closing by itself

    in Windows 10 Ask Insider
    Command Prompt closing by itself: While i try to access Command Prompt, it opens in full sice for less than half of a second, then chages into very small size (viz. picture) near upper left corner of a screen and after cca half a second closes completly. picture I also noticed the command prompt appears for...
  10. Command Prompt Won't Close

    in Windows 10 Support
    Command Prompt Won't Close: Ok, so on my Dell Latitude E6520 laptop, I can open command prompt (Normal and Admin), but can not close any of the CMD windows I open unless I go through the Task Manager and shut them down. I do not have that issue on my desktop, which is also running Windows 10 Pro. Is...