Ways to Open Command Prompt (CMD) in Windows 11
In this article
You can open Command Prompt in Windows 11 using several built-in methods—the fastest is pressing Win + R, typing cmd, and pressing Enter. All methods work on the current version of Windows 11, though menu labels may differ slightly depending on your system's language and update level.
What You'll Need
- A Windows 11 PC with an administrator account (for some methods, you'll need admin rights to run Command Prompt as administrator).
- No additional software—all tools are built into Windows.
Step-by-Step
Method 1: Using the Run Dialog (Fastest)
- Press Win + R on your keyboard. The Run dialog opens.
- Type
cmdin the text box. - Press Enter or click OK. Command Prompt opens in a new window.
Method 2: From the Start Menu
- Click the Start button (Windows icon) on the taskbar or press the Win key.
- Type
cmdorcommand promptin the search box. - Click Command Prompt in the search results to open it normally.
- To run as administrator, right-click Command Prompt and select Run as administrator. Confirm any UAC prompt.
Method 3: From the Power User Menu (Win + X)
- Press Win + X or right-click the Start button.
- In the menu that appears, look for Terminal or Command Prompt. In recent Windows 11 versions, the default is Windows Terminal, which includes Command Prompt as a tab.
- If you see Terminal, click it. Windows Terminal opens with PowerShell or Command Prompt as the default profile.
- To open Command Prompt specifically in Terminal, click the down arrow next to the new tab button (or press Ctrl + Shift + 2) and select Command Prompt.
- If you see Command Prompt directly in the Win + X menu, click it. To run as admin, select Terminal (Admin) or Command Prompt (Admin).
Method 4: From File Explorer's Address Bar
- Open File Explorer (Win + E).
- Click inside the address bar at the top of the window.
- Type
cmdand press Enter. Command Prompt opens with the current folder as its working directory.
Method 5: From the Task Manager
- Press Ctrl + Shift + Esc to open Task Manager.
- Click File in the top menu, then select Run new task.
- Type
cmdin the dialog box. - Check Create this task with administrative privileges if you need admin rights, then click OK.
Method 6: From the Start Menu's All Apps List
- Click Start and then click All apps (or scroll through the alphabetical list).
- Scroll to Windows Tools or Windows System (depending on your version).
- Double-click Command Prompt. It opens in a new window.
Method 7: Create a Desktop Shortcut (Optional)
- Right-click on your desktop and select New > Shortcut.
- In the location field, type
cmd.exeand click Next. - Name it Command Prompt and click Finish.
- Double-click the shortcut to open CMD. To always run as admin, right-click the shortcut, select Properties, click Advanced, check Run as administrator, and click OK.
Common Mistakes
- Typing “cmd” in the wrong place: The Run dialog (Win + R) accepts
cmd, but the File Explorer address bar also works. Don't type it into the search box on the taskbar if you meant to open a specific folder—search will open a new window anyway. - Forgetting admin rights: Some commands (like
sfc /scannow) require an elevated Command Prompt. If you get “Access denied” or “You do not have permission,” close and reopen as administrator. - Clicking “Terminal” instead of “Command Prompt” in Win + X: Windows Terminal is a separate app that hosts multiple shells. If you want the classic CMD window, select the Command Prompt profile inside Terminal, or use the Run dialog method.
- Using the wrong shortcut:
Ctrl + Shift + Enterfrom the Start menu search runs as admin, but if you pressEnteralone, it opens normally. Make sure you use the correct key combination.
Tips
- Use Ctrl + Shift + Enter after typing
cmdin the Start menu search to run as administrator directly. - If you frequently need CMD in a specific folder, open that folder in File Explorer, type
cmdin the address bar, and press Enter—it opens with that folder as the working directory. - You can pin Command Prompt to the taskbar or Start menu for one-click access. Right-click the app in Start and select Pin to taskbar.
- In Windows Terminal, you can set Command Prompt as the default profile by going to Settings > Startup and choosing “Command Prompt” from the dropdown.
Troubleshooting
Command Prompt won't open
- Restart your PC. This clears temporary glitches.
- Check if the
cmd.exefile is present: open File Explorer, go toC:\Windows\System32, and look forcmd.exe. If it's missing, you may have system corruption. - Run a system file check: open PowerShell as administrator (right-click Start > Terminal (Admin)), type
sfc /scannow, and press Enter. Wait for the scan to complete, then restart. - If the issue persists, create a new user account and try opening CMD from there. If it works, your original profile may be corrupted.
Command Prompt opens but closes immediately
- This usually happens if you're launching a script or command that finishes quickly. To keep the window open, type
cmd /kin the Run dialog instead of justcmd. - If it closes on its own without any command, try running
cmd.exefrom File Explorer's address bar. If that works, the issue might be with the shortcut or Start menu entry.
“Windows cannot find 'cmd'” error
- Make sure you typed
cmd(lowercase or uppercase works) and notcmddor a typo. - Try the full path:
C:\Windows\System32\cmd.exein the Run dialog. - Check your system PATH environment variable. Open System Properties > Advanced > Environment Variables, and ensure
%SystemRoot%\system32is listed under Path.
Frequently Asked Questions
How do I open Command Prompt as administrator?
Press Win + X and select Terminal (Admin) or Command Prompt (Admin). Alternatively, type cmd in Start, then press Ctrl + Shift + Enter.
What's the difference between Command Prompt and Windows Terminal?
Windows Terminal is a modern host application that can run Command Prompt, PowerShell, and other shells in tabs. Command Prompt is the classic console host. Both execute the same commands, but Terminal offers more customization and tab support.
Can I open Command Prompt in a specific folder?
Yes. Open the folder in File Explorer, click the address bar, type cmd, and press Enter. The Command Prompt will start with that folder as the current directory.
Why do I see “Terminal” instead of “Command Prompt” in the Win + X menu?
Windows 11 replaced Command Prompt with Windows Terminal as the default in the Power User menu. You can still access CMD inside Terminal by clicking the down arrow next to the tab and selecting Command Prompt, or change the default profile in Terminal settings.
Is there a keyboard shortcut to open Command Prompt directly?
There's no single built-in shortcut, but you can create a desktop shortcut and assign a hotkey (right-click shortcut > Properties > Shortcut key). Or use Win + R, type cmd, and press Enter—that's two keystrokes.
Does opening Command Prompt require an internet connection?
No. Command Prompt is a local Windows application and works offline. Only commands that access the internet (like ping or ipconfig with external servers) need a connection.