If Command Prompt won’t open, it’s usually because the Windows Terminal service is disabled, the user profile is corrupted, or the program itself is broken—though it could also mean your administrator rights are missing or the system is in a restricted state. The fastest fixes involve re-enabling the service, checking for profile errors, or resetting Windows Terminal. Below is a step-by-step guide covering all likely causes, from simple restarts to deeper system repairs.
What You’ll Need
- A Windows PC (Windows 10 or 11, 32-bit or 64-bit)
- Administrator access (or the ability to ask someone with admin rights for help)
- Stable internet connection (if updating or reinstalling)
- Backup or system restore point (optional, for advanced fixes)
Step-by-Step: How to Fix Command Prompt Not Opening
- Restart your PC. Many temporary glitches—including disabled services or cached errors—clear after a reboot. Hold the power button for 10 seconds if it freezes during startup.
-
Check if Command Prompt is accessible via other methods:
- Press Win + X, then select Windows Terminal or Command Prompt from the menu.
- Search for cmd or Windows Terminal in the Start menu and press Enter.
- Try running it from the Run dialog (Win + R, then type
cmdorwtand press Enter). If this works, the issue is likely with the Start menu or shortcuts.
-
Verify the Windows Terminal service is running:
- Press Win + R, type
services.msc, and press Enter. The Services window will open. - Scroll down and locate Windows Terminal (or Terminal in older Windows versions).
- If it’s Stopped, right-click it and select Start. If it’s disabled, right-click it, choose Properties, then under Startup type, select Automatic. Click Apply and OK.
- Restart your PC to apply changes.
- Press Win + R, type
-
Repair the user profile causing the issue (if it’s a profile-specific problem):
- Open Run (Win + R) and type
cmd. Press Ctrl + Shift + Enter to run as Administrator. - Type the following command and press Enter:
net user %username% /delete - Restart your PC. When it boots, log in again—Windows will automatically create a new profile.
- Test if Command Prompt opens now. If it does, your old profile was corrupted.
Warning: This deletes your current user profile and replaces it with a new one. Save any unsaved work or important files before proceeding.
- Open Run (Win + R) and type
-
Re-register the Windows Terminal app (if the app itself is broken):
- Open an Admin Command Prompt (Win + X > Command Prompt (Admin)).
- Run these commands one by one, pressing Enter after each:
Get-AppXPackage -AllUsers *WindowsTerminal* | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"} - Restart your PC.
-
Reset Windows Terminal settings:
- Open Command Prompt or Windows Terminal manually (if possible).
- Type
wt --resetand press Enter. This resets all custom settings to default. - Restart your PC.
-
Reinstall Windows Terminal via Microsoft Store:
- Open the Microsoft Store (Win + S, type Store).
- Search for Windows Terminal. Click the app, then Install (or Repair if it’s already installed).
- Restart your PC.
-
Check for Windows updates:
- Press Win + I to open Settings, then go to Windows Update > Check for updates.
- Install any pending updates. Restart your PC afterward.
-
Perform a system restore (if the issue started recently):
- Press Win + S, type Create a restore point, and open it.
- Click System Restore and follow the prompts to choose a restore point from before the issue began. Note: This may remove recent apps or updates.
- Restart your PC after the restore completes.
-
Last resort: Reset or repair your PC (if nothing else works):
- Backup your data first—this step will reinstall Windows and delete personal files.
- Go to Settings > Update & Security > Recovery > Reset this PC > Get started.
- Choose Keep my files (to retain data) or Remove everything (for a clean install), then follow the prompts.
Common Mistakes
- Assuming the issue is always software-related. Sometimes, hardware like the keyboard or display can prevent you from accessing menus/tools needed to troubleshoot.
- Skipping the simplest fixes first. Many users jump to advanced troubleshooting (like reinstalling Windows) without trying a reboot or checking if the service is running.
- Using a non-admin account. Command Prompt and many fixes require administrative privileges. Always use an account with admin rights.
- Ignoring profile-specific errors. If the issue started after a Windows update or profile change, the user profile itself might be corrupted.
- Not testing after each fix. After applying a solution (e.g., re-enabling a service), always verify if Command Prompt opens before moving to the next step.
Tips
- If you’re on a work or school PC, your IT admin may have disabled Command Prompt. Contact them for access.
- For Windows 10, try running
cmd.exedirectly fromC:\Windows\System32if the app isn’t launching. - If the issue persists only with Windows Terminal (not classic Command Prompt), reinstall the Microsoft Store app via
wsreset.exe(run it from Run dialog). - Use Task Manager (Ctrl + Shift + Esc) to check if
wt.exeorcmd.exeappears in the Details tab. If not, the app may be missing. - For 64-bit systems, ensure you’re using the correct version of Command Prompt (some 32-bit apps may not work in 64-bit mode).
- If you’re using BitLocker or full-disk encryption, ensure your PC is unlocked and the encryption service is running.
Troubleshooting: If Nothing Works
If Command Prompt still won’t open after trying all the steps above, consider these advanced (and riskier) options:
-
Check for malware or antivirus interference:
- Temporarily disable your antivirus software (e.g., Windows Defender, third-party AV).
- Try opening Command Prompt again. If it works, your antivirus may be blocking the app. Adjust its settings to allow Command Prompt.
-
Manually repair Windows components:
- Open an Admin Command Prompt and run:
DISM /Online /Cleanup-Image /RestoreHealth - Then run:
sfc /scannow - Restart your PC after both commands complete.
- Open an Admin Command Prompt and run:
-
Use a recovery USB or repair disk:
- Create a Windows 10/11 recovery USB on another PC (use the Microsoft Media Creation Tool).
- Boot your affected PC from the USB, then use the Troubleshoot > Command Prompt option to access a repair environment.
- From there, try repairing system files or reinstalling Windows components.
-
Check for hardware failures:
- If your PC freezes or crashes during startup, it could be a failing hard drive, RAM, or power supply.
- Test RAM with MemTest86 or use Windows’ built-in Memory Diagnostic Tool (Win + S, type mdsched).
- If the hard drive is failing, back up data immediately and consider replacing it.
-
Reinstall Windows as a last resort:
- If all else fails, perform a clean install of Windows. This is time-consuming but ensures a fresh system.
- Backup all important files first, then use the Windows Media Creation Tool to create an install USB.
- Boot from the USB and follow the on-screen instructions to reinstall Windows.
Frequently Asked Questions
Why does Command Prompt say “Windows cannot find ‘cmd’”?
This error typically means the cmd.exe file is missing or corrupted. Run sfc /scannow in an Admin Command Prompt to repair system files, or reinstall Windows if the file is completely gone.
Can I open Command Prompt if my PC is locked or in a restricted profile?
If your PC is locked, press Ctrl + Alt + Del, then select “Switch user” or “Log in” to access an unlocked profile. If you’re in a restricted profile (e.g., a child account), you’ll need an admin to grant you access or switch to an admin account.
Why does Windows Terminal open but classic Command Prompt doesn’t?
Windows Terminal is a modern replacement for Command Prompt, but it doesn’t replace cmd.exe entirely. If classic Command Prompt fails, reinstall it via Add or remove programs or use the cmd shortcut from C:\Windows\System32. If Windows Terminal works but classic doesn’t, the issue is likely a corrupted or missing cmd.exe file.
Is it safe to reset my user profile if I don’t back up my files?
Resetting your user profile deletes all personal settings, downloaded files, and app data tied to that account. If you don’t back up first, you’ll lose unsaved documents, downloads, and custom configurations. Always copy important files to an external drive or cloud storage before proceeding.
Can I open Command Prompt without admin rights?
No, many troubleshooting steps (like re-enabling services or registering apps) require administrative privileges. If you lack admin access, contact your system administrator or use a different account with higher permissions.
Why does Command Prompt open but then crash immediately?
A crash after opening suggests a corrupted system file or conflicting software. Run sfc /scannow and DISM /Online /Cleanup-Image /RestoreHealth to repair Windows components. If the issue persists, check for conflicting third-party apps (like antivirus software) that might interfere with Command Prompt.