If Command Prompt won’t open in Windows 10 or 11, the most likely cause is a corrupted shortcut, disabled Admin rights, or a misconfigured Windows service. Try these fixes: Restart the Windows Terminal service (if enabled), recreate the shortcut (right-click > New > Command Prompt), or run CMD as administrator (search Command Prompt, right-click > "Run as administrator").
What You'll Need
- A working Windows 10/11 PC (no admin restrictions).
- Admin credentials if UAC is enabled.
- Access to the Start menu (if the taskbar is hidden, press Win to open it).
- Optional: A USB drive or installation media if you need to repair system files.
Step-by-Step
- Restart the Command Prompt service (if using Windows Terminal):
- Press Win + R, type
services.msc, and press Enter. - Scroll to Terminal Services (or Windows Terminal if listed). If you see CMD.exe, it’s likely managed by Windows Terminal.
- Right-click Terminal Services > Properties > Startup type set to Automatic.
- Click Start if it’s stopped, then Apply > OK.
- Try opening Command Prompt again.
- Press Win + R, type
- Recreate the Command Prompt shortcut:
- Right-click on the Start menu (or an empty space on the taskbar) and select Run.
- Type
cmdand press Ctrl + Shift + Enter to force a new shortcut (this ensures admin rights). - If that fails, right-click the Start menu > Run again, type
shell:appsFolder, and press Enter. - Scroll to Command Prompt, right-click it, and choose Uninstall to remove the broken entry.
- Press Win + S, type
cmd, and select the new shortcut that appears.
- Check for system file corruption:
- Open Command Prompt as admin (search for it, right-click > Run as administrator).
- Type the following and press Enter:
sfc /scannow
- Wait for the scan to complete. If errors are found, restart your PC.
- Run
DISM /Online /Cleanup-Image /RestoreHealthin the same window to repair Windows components.
- Reset Windows Terminal (if using the modern terminal):
- Press Win + R, type
wsreset.exe, and press Enter. - If that doesn’t work, open
Settings>Apps>Installed apps. - Find Windows Terminal, click the three dots (...) > Advanced options > Reset.
- Restart your PC and try opening Command Prompt again.
- Press Win + R, type
- Check User Account Control (UAC) settings:
- Go to
Settings>System>About>Advanced system settings. - In the User Account Control settings, move the slider to Always notify (or at least Notify me only for important changes).
- Click OK, then restart your PC.
- Try opening Command Prompt again (it should now prompt for admin rights).
- Go to
Common Mistakes
- Assuming "Command Prompt" is the same as "Windows Terminal": If you’re using the modern Windows Terminal app (with tabs), the shortcut may be broken separately. Always check which app is failing.
- Ignoring admin rights: Command Prompt often requires administrator privileges. Right-click > Run as administrator is essential for many tasks.
- Not restarting the PC after repairs: Many fixes (like `sfc /scannow` or `DISM`) require a reboot to take effect.
- Skipping the shortcut recreation step: A corrupted shortcut is the most common cause. Right-click > New > Command Prompt creates a fresh one.
Tips
- Use the Run dialog (Win + R) as a quick fallback: Type
cmdand press Ctrl + Shift + Enter to force an admin session. - Check for third-party antivirus interference: Some security software blocks Command Prompt. Temporarily disable it to test.
- Create a backup shortcut: Right-click the desktop > New > Shortcut, paste
cmd.exe, and name it "Admin CMD". Pin it to the Start menu. - Test in Safe Mode if the issue persists: Boot into Safe Mode (hold Shift while clicking Restart in the Start menu), then try opening Command Prompt. If it works, a startup program is likely causing the issue.
Troubleshooting
If Command Prompt still doesn’t open after trying all steps above:
- Check for Windows updates:
- Go to
Settings>Windows Update>Check for updates. - Install any pending updates and restart your PC.
- Go to
- Repair Windows via installation media:
- Create a Windows 10/11 USB installer from Microsoft’s site.
- Boot from the USB, select Repair your computer > Troubleshoot > Command Prompt.
- Run
DISM /Online /Cleanup-Image /RestoreHealthandsfc /scannow, then restart.
- Reinstall Windows (last resort):
- Warning: This deletes all files and apps. Backup important data first.
- Use the installation media to do a clean install of Windows.
Frequently Asked Questions
Can I open Command Prompt without admin rights?
Yes, but only for basic tasks. Type cmd in the Start menu search, then press Enter (not Ctrl + Shift + Enter). Some commands—like installing software or changing system settings—require admin privileges.
Why does "Run as administrator" not work?
This usually means:
- User Account Control (UAC) is disabled. Enable it in
Settings>System>About>Advanced system settings. - The shortcut is corrupted. Recreate it as shown in Step 2.
- A third-party antivirus is blocking the command. Temporarily disable it to test.
How do I fix Command Prompt if my keyboard isn’t working?
Use the touchscreen (if available) or an external keyboard. If neither works, boot into Safe Mode with Networking (hold Shift while clicking Restart in the Start menu), then try the fixes from the Troubleshooting section.
Will resetting Windows Terminal delete my profiles or settings?
Yes, resetting Windows Terminal (via Settings > Apps > Installed apps) will restore default settings and clear custom profiles. To avoid this, back up your profiles (they’re stored in %USERPROFILE%\AppData\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json) before resetting.
Is there a way to open Command Prompt from the login screen?
No, Windows does not allow opening Command Prompt from the login screen for security reasons. If you need to troubleshoot before logging in, boot into Safe Mode (hold Shift while clicking Restart) or use the installation media’s repair options.
Why does Command Prompt keep crashing after updates?
Windows updates sometimes break system components. To fix this:
- Roll back the problematic update via
Settings>Windows Update>Update history>Uninstall updates. - Run
sfc /scannowandDISM /Online /Cleanup-Image /RestoreHealthin an admin Command Prompt. - If the issue persists, use the installation media to repair Windows.