Fix: Command Prompt Keeps Crashing in Windows 11

Stop CMD crashes in easy steps

by Afam Onyimadu
Afam Onyimadu
Afam Onyimadu
Afam is a geek and the go-to among his peers for computer solutions. He has a wealth of experience with Windows operating systems, dating back to his introduction... read more
Reviewed by Alex Serban
Alex Serban
Alex Serban
Windows Server & Networking Expert
After moving away from the corporate work-style, Alex has found rewards in a lifestyle of constant analysis, team coordination and pestering his colleagues. Holding an MCSA Windows Server... read more
Affiliate Disclosure
  • A lot of things may trigger these random crashes, but they can be fixed in a few steps.
  • We always recommend a reboot of the system as this in some cases will suffice. 

To fix various PC problems, we recommend Restoro PC Repair Tool:
This software will repair common computer errors, protect you from file loss, malware, hardware failure and optimize your PC for maximum performance. Fix PC issues and remove viruses now in 3 easy steps:

  1. Download Restoro PC Repair Tool that comes with Patented Technologies (patent available here).
  2. Click Start Scan to find Windows issues that could be causing PC problems.
  3. Click Repair All to fix issues affecting your computer's security and performance
  • Restoro has been downloaded by 0 readers this month.

Command Prompt is a powerful tool that allows users to perform various tasks on their Windows 11 operating system.

However, some users have reported that the Command Prompt keeps crashing on their computers. This issue can be caused by various factors, including corrupt system files, outdated drivers, and malware.

This article will explore solutions to help you fix the Command Prompt keeps crashing issue on Windows 11.

Why does my Command Prompt keep crashing in Windows 11?

There are a few reasons why the Command Prompt may keep crashing on your Windows 11 system. Some possible causes include the following:

  • Corrupt system files – Certain files may be corrupted, causing the Command Prompt to crash.
  • Outdated drivers – If the drivers for your hardware components need to be updated, they may not be compatible with Windows 11, causing the Command Prompt to crash.
  • Malware – Malicious software, such as viruses or malware, can cause the Command Prompt to crash.
  • Conflict with other software – Some third-party software may conflict with the Command Prompt, causing it to crash.
  • Insufficient memory or storage – If your computer doesn’t have enough memory or storage, it may not be able to run the Command Prompt properly, resulting in crashes.
  • System errors – Some system errors may cause the Command Prompt to crash.

It’s important to note that this is a partial list, and there may be other reasons why the Command Prompt keeps crashing on your Windows 11. To fix the issue, you should try different troubleshooting methods to identify and resolve the specific cause of the problem.

What should I do if my Command Prompt keeps crashing in Windows 11?

Before you start these fixes, you should:

  • Do a simple reboot. A reboot will force some problematic processes to end and could repair certain minor PC issues.

1. Update Windows

  1. Press Windows + I to open the Settings app.
  2. On the right pane, press Windows Update, then select Check for updates on the right pane.
    command prompt keeps crashing
  3. You may need to restart your computer.

Updating Windows can stop command prompt crashes by installing the latest security updates and bug fixes that Microsoft may have released.

These updates can address known issues causing command prompt crashes, including issues with system files or drivers. Additionally, updates can add new features and improvements that can improve the overall stability and performance of the operating system, which can also help prevent command prompt crashes.

However, it’s worth noting that updates can also introduce new bugs, so it’s important to keep your system updated and a backup in case something goes wrong.

2. Update drivers

  1. Right-click on the Start menu and select Device Manager.
    command prompt keeps crashing
  2. Expand a category, right-click on the driver, and select Update driver.
  3. Select Search automatically for drivers.

You may save time by automating this process using third-party driver updater software.

Expert tip:


Some PC issues are hard to tackle, especially when it comes to corrupted repositories or missing Windows files. If you are having troubles fixing an error, your system may be partially broken.
We recommend installing Restoro, a tool that will scan your machine and identify what the fault is.
Click here to download and start repairing.

Updating drivers can help prevent random command prompt crashes on Windows 11 because newer drivers may contain bug fixes and compatibility updates that can resolve issues causing the crashes.

Additionally, new drivers may have improved performance and stability that can help prevent crashes from occurring.

One of the most reliable third-party driver updater software is DriverFix because it has the automatic functionality to detect outdated or missing drivers and find the latest updates from its database.


Save time and effort and let DriverFix locate the latest updates for your drivers.

Free Trial Download now

3. Scan for malware

  1. Press the Windows key, type windows security, and choose the Windows Security app.
    command prompt keeps crashing
  2. Click on Virus & threat protection.
  3. Select Scan options.
  4. Select Full scan and click the Scan now button.

A malware or virus infection can cause the Command Prompt to crash. You should use a reputable antivirus program to scan your computer and remove any malware or viruses that are found.

4. Uninstall conflicting software

  1. Press Windows + R, type control panel, and hit Enter.
  2. Select the Uninstall a program option.
  3. Click on the program you wish to uninstall from the program list and select the Uninstall option.
  4. Finally, follow the prompt to complete the uninstallation.

Uninstalling conflicting software can help stop CMD crashes because software conflicts can cause issues that can lead to crashes. When two or more programs compete for resources or access the same files or settings, it can cause errors or crashes.

Uninstalling one of the conflicting programs can free up resources and resolve the conflict, preventing crashes. Additionally, sometimes software can be outdated and incompatible with the current version of Windows or other installed software; uninstalling it could help remove the problem.

5. Troubleshoot with PowerShell

  1. Press the Windows key, type powershell, and click the Run as administrator option.
    command prompt keeps crashing
  2. Write the script below and hit Enter.
    Get-AppXPackage -AllUsers -Name Microsoft.WindowsTerminal
  3. Exit the PowerShell and see if the crashes continue.

6. Reset or reinstall Windows

Resetting or reinstalling Windows can stop CMD crashes by replacing any corrupted or missing system files that may be causing the crashes.

Additionally, it can also remove any malware or software conflicts that may be causing the crashes. However, it’s important to note that it may not be the only solution to command prompt crashes, and it’s essential to try to identify the cause of the crashes before resorting to resetting or reinstalling Windows.

In conclusion, if you’re facing this issue on your Windows 11, you can try some of the solutions mentioned in this article.

These solutions include running the System File Checker, updating drivers, and scanning your computer for malware. If the issue persists, you can also try resetting or reinstalling Windows 11.

Remember to always back up your important files before making any changes to your system. If you’re still having trouble, it’s best to seek help from a professional or contact Microsoft support. You’ll be back to using the Command Prompt with the right fix.

Still having issues? Fix them with this tool:


If the advices above haven't solved your issue, your PC may experience deeper Windows problems. We recommend downloading this PC Repair tool (rated Great on to easily address them. After installation, simply click the Start Scan button and then press on Repair All.

This article covers:Topics: