Every terminal is crashing in Windows 10

Abstract: Fix Windows 10 terminal crashes by repairing corrupted system files with SFC and DISM, or disabling conflicting third-party shell extensions.

Created: 2026-08-30 by
Frequent crashes of the command prompt or Windows Terminal in Windows 10 usually stem from corrupted system files, conflicting third-party shell extensions, or misconfigured environment variables. By running system integrity checks and isolating the terminal application from external interference, you can restore stability to your command-line interface without needing to reinstall the operating system.

Identifying the Scope of the Crash

Before applying fixes, it is crucial to determine which terminal application is failing. Windows 10 includes two primary command-line interfaces: the legacy cmd.exe (Command Prompt) and the modern Windows Terminal. If only one of these crashes while the other functions correctly, the issue is likely isolated to that specific application's configuration or dependencies. If both fail simultaneously, the problem is more systemic, potentially involving core Windows components or user profile corruption. Start by opening the Start menu and searching for "Command Prompt." Right-click the result and select "Run as administrator." If this instance opens successfully, the issue may be related to permissions or specific user-level settings rather than a global system failure. Next, try launching Windows Terminal via the same method. Comparing the behavior between these two tools helps narrow down whether the fault lies with the legacy console host or the newer, cross-platform terminal emulator.

Repairing Corrupted System Files

One of the most common causes for terminal instability is corruption within the Windows System File Checker database. When essential DLLs or executable files are damaged, the operating system cannot load the terminal properly, resulting in immediate closures or error dialogs. To address this, you must run the System File Checker tool with elevated privileges. Open an administrative Command Prompt by right-clicking the Start button and selecting "Windows PowerShell (Admin)" or "Command Prompt (Admin)." Type the following command and press Enter:
sfc /scannow
This process scans all protected system files and replaces corrupted versions with correct Microsoft versions. The scan may take several minutes to complete. If the tool reports that it found corrupt files and successfully repaired them, restart your computer and test the terminal again. If SFC fails to fix the issue, proceed to the Deployment Image Servicing and Management tool, which repairs the underlying Windows image. Run this command in the same administrative window:
DISM /Online /Cleanup-Image /RestoreHealth
After DISM completes, run sfc /scannow once more to ensure any remaining file issues are resolved. This two-step repair process addresses deep-seated system corruption that often manifests as application crashes. For users experiencing broader system instability, ensuring your OS is fully patched is also recommended; see our guide on updating Windows to resolve compatibility issues.

Disabling Third-Party Shell Extensions

If system files are intact, the culprit is often a third-party application injecting shell extensions into the explorer context. Tools like cloud storage syncers, antivirus programs, or file compression utilities can add right-click menu items or hooks that interfere with how the terminal initializes. These extensions may crash during the loading phase, causing the entire terminal session to terminate unexpectedly. To diagnose this, perform a clean boot to disable non-essential services and startup applications. Press Win + R, type msconfig, and press Enter. In the System Configuration window, go to the "Services" tab, check "Hide Microsoft services," and then click "Disable all." Next, navigate to the "Startup" tab and open Task Manager to disable all startup items. Restart your computer and attempt to launch the terminal. If the terminal works correctly after a clean boot, re-enable services and startups in small batches to identify the offending software. Pay special attention to applications that modify the file system or interact with command-line interfaces. Removing or updating the problematic application should resolve the crashing issue permanently.

Resetting Environment Variables and Profiles

Misconfigured environment variables can also cause terminals to crash upon startup. If a variable points to a non-existent path or contains invalid characters, the shell may fail to initialize. Additionally, user profile corruption can lead to similar symptoms. You can reset environment variables by accessing Advanced System Settings through the Control Panel. Navigate to Environment Variables and review the PATH variable. Ensure there are no trailing semicolons or references to deleted directories. If you suspect profile corruption, creating a new local user account can help isolate the issue. Create a new standard user account, log in, and test the terminal. If it works, the original user profile is likely damaged, and migrating data to the new account may be necessary. For advanced users who need to modify system settings directly, understanding how to edit the registry safely can prevent accidental damage during troubleshooting.

Reinstalling Windows Terminal

For users specifically encountering issues with Windows Terminal rather than the legacy CMD, resetting the app via PowerShell is an effective solution. Open PowerShell as an administrator and run the following command to remove the current installation:
Get-AppxPackage *Microsoft.WindowsTerminal* | Remove-AppxPackage
After removal, restart the Microsoft Store and search for "Windows Terminal" to reinstall the latest version. This ensures you have a clean configuration file and the most recent bug fixes. Note that this action does not delete your custom profiles or settings if they were stored in the default location, but it resets the app state.

Frequently Asked Questions

Why does my terminal crash only when I run specific commands?

This usually indicates a conflict with a specific executable or a missing dependency required by that command. Check if the command relies on external tools that might be uninstalled or moved. Running the command in a different user profile can help confirm if the issue is environment-specific.

Can antivirus software cause terminal crashes?

Yes, real-time scanning can sometimes interfere with the execution of scripts or binaries launched from the terminal. Temporarily disabling your antivirus or adding the terminal executable to its exclusion list can verify if this is the cause. Ensure you re-enable protection immediately after testing.

What should I do if sfc /scannow finds nothing to fix?

If SFC reports no integrity violations, the issue likely lies outside of core system files. Focus on third-party software conflicts, driver issues, or user profile corruption. Proceed with the clean boot diagnostic steps to isolate external interference.

Is it safe to delete the AppData folder for Windows Terminal?

Deleting the local AppData folder for Windows Terminal will reset the application to its default state, removing custom themes and configurations. This is a safe troubleshooting step if the app is corrupted, but you will need to reconfigure your preferences afterward.

How do I check if my graphics drivers are causing terminal issues?

While rare, outdated GPU drivers can cause rendering failures in Windows Terminal due to its use of DirectComposition. Update your graphics drivers through Device Manager or the manufacturer's utility. If the issue persists, try switching the rendering backend in Windows Terminal settings from DirectComposition to GDI.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More