Key takeaways
- Fastest: Windows key, type cmd, Enter. Add Ctrl+Shift+Enter for an administrator window.
- Win+R, type cmd, then Ctrl+Shift+Enter is the quickest admin route without touching the mouse.
- Win+X shows “Terminal” and “Terminal (Admin)”; inside Terminal, Ctrl+Shift+2 usually opens a Command Prompt tab.
- Typing cmd in File Explorer’s address bar opens Command Prompt already pointed at that folder.
- If Windows will not start, Command Prompt is available from the recovery environment’s Advanced options.
The quickest answer to how to open Command Prompt in Windows 11 is to press the Windows key, type cmd and press Enter; to open it as administrator, press Ctrl+Shift+Enter instead of Enter, or choose “Run as administrator” on the right side of the search results. Command Prompt still ships with Windows 11, but it now usually opens inside Windows Terminal, which is the default console app.
Below are seven reliable ways to open it, including the fastest keyboard shortcut, how to open cmd as admin in Windows 11, how to open it in a specific folder, and what to do when Windows will not boot normally.
Key takeaways
- Fastest: Windows key, type cmd, Enter. Add Ctrl+Shift+Enter for an administrator window.
- Win+R, type cmd, then Ctrl+Shift+Enter is the quickest admin route without touching the mouse.
- Win+X shows “Terminal” and “Terminal (Admin)”; inside Terminal, Ctrl+Shift+2 usually opens a Command Prompt tab.
- Typing cmd in File Explorer’s address bar opens Command Prompt already pointed at that folder.
- If Windows will not start, Command Prompt is available from the recovery environment’s Advanced options.
How to Open Command Prompt Windows 11: Seven Methods Compared
| Method | Keys or clicks | Opens as admin? | Best for |
|---|---|---|---|
| 1. Start search | Win, type cmd, Enter | Yes, with Ctrl+Shift+Enter or “Run as administrator” | Everyday use |
| 2. Run dialog | Win+R, cmd, Enter | Yes, with Ctrl+Shift+Enter | Keyboard-only users |
| 3. Windows Terminal via Win+X | Win+X, Terminal, then Ctrl+Shift+2 | Yes, choose Terminal (Admin) | People who use tabs or PowerShell too |
| 4. File Explorer address bar | Click address bar, type cmd, Enter | No | Running commands in a specific folder |
| 5. Task Manager | Ctrl+Shift+Esc, Run new task, cmd | Yes, tick the admin box | When Start or Explorer is frozen |
| 6. Windows Tools or System32 | Start, All apps, Windows Tools | Yes, right-click | Finding the original shortcut |
| 7. Desktop or taskbar shortcut | One click or a custom hotkey | Yes, set in shortcut properties | Frequent users |
Step-by-Step: Seven Ways to Open Command Prompt
- Use Start menu search. Press the Windows key, type cmd or Command Prompt, and press Enter. To run it as administrator, press Ctrl+Shift+Enter, or click “Run as administrator” in the right-hand pane of the search results. Reason: search is always available and works the same on every Windows 11 version.
- Use the Run dialog. Press Windows+R, type cmd, and press Enter for a standard window. Press Ctrl+Shift+Enter instead to open an elevated window, then approve the User Account Control (UAC) prompt. Reason: it is the fastest admin method that never requires the mouse.
- Use Windows Terminal from the Win+X menu. Press Windows+X (or right-click the Start button) and choose Terminal or Terminal (Admin). Terminal usually opens a PowerShell tab by default. Press Ctrl+Shift+2 to open a Command Prompt tab, or click the down arrow next to the tabs and choose Command Prompt. Reason: Terminal is the default console in Windows 11 and lets you keep cmd, PowerShell and other shells in tabs.
- Open it from File Explorer in a specific folder. Open the folder you want, click the address bar, replace the path with cmd and press Enter. Command Prompt opens with that folder as the working directory. Alternatively, right-click empty space in the folder and choose Open in Terminal. Reason: you skip typing long cd commands.
- Use Task Manager. Press Ctrl+Shift+Esc, select Run new task, type cmd, tick Create this task with administrative privileges if you need admin rights, and click OK. Reason: this works even when the Start menu, taskbar or File Explorer has frozen.
- Use Windows Tools or the System32 folder. Open Start, select All apps, scroll to Windows Tools, and double-click Command Prompt. You can also browse to C:\Windows\System32, find cmd.exe, and right-click it to run as administrator. Reason: Microsoft moved the classic shortcut into Windows Tools, so this is where it lives if search is broken.
- Create a desktop or taskbar shortcut. Right-click the desktop, choose New > Shortcut, enter cmd.exe, and name it. To always run elevated, open the shortcut’s Properties, select Advanced, and tick Run as administrator. In the Shortcut tab you can also set a key combination such as Ctrl+Alt+C. You can pin the shortcut to the taskbar or Start. Reason: one click or one hotkey for people who use cmd daily.
How to Open CMD as Admin in Windows 11
Many fixes, such as sfc /scannow, DISM, chkdsk and network resets, need an elevated Command Prompt. You can tell you are running as administrator because the window title starts with “Administrator:” and the default folder is C:\Windows\System32 rather than your user folder.
The quickest admin routes, in order of speed:
- Windows+R, type cmd, Ctrl+Shift+Enter, then Yes on the UAC prompt.
- Windows key, type cmd, Ctrl+Shift+Enter.
- Windows+X, choose Terminal (Admin), then Ctrl+Shift+2 for a Command Prompt tab.
If you are signed in with a standard account, Windows asks for an administrator’s password at the UAC prompt. On work or school computers, your organization may block elevated access; contact your IT department rather than trying to bypass it.
Command Prompt and Windows Terminal: What Changed in Windows 11
In Windows 10, typing cmd opened the classic black console window, called Console Host. In Windows 11, Microsoft made Windows Terminal the default console application. When you run cmd, it usually opens as a tab in Terminal instead of in its own old-style window. The commands are exactly the same; only the window around them changed.
Make Command Prompt the default in Terminal
If you always want cmd instead of PowerShell when Terminal opens:
- Open Windows Terminal and press Ctrl+, (Control and comma) to open Settings.
- Under Startup, set Default profile to Command Prompt.
- Click Save. Now Win+X > Terminal opens straight into Command Prompt.
Bring back the classic console window
If you prefer the old standalone window, open Windows Terminal Settings, go to Startup, and set Default terminal application to Windows Console Host. The same option also appears in the Windows Settings app under System, on the developer settings page (labeled “For developers” on many builds and “Advanced” on some newer ones), in the Terminal section. After that, running cmd opens the classic window again.
Run CMD Windows 11 From a Specific Folder
Developers and power users often need Command Prompt in a project or download folder. Three ways to do it:
- Address bar trick: in File Explorer, type cmd in the address bar and press Enter.
- Open in Terminal: right-click inside the folder and choose Open in Terminal; switch to a Command Prompt tab with Ctrl+Shift+2 if PowerShell opens.
- Change directory manually: in any Command Prompt window, type cd /d D:\Projects to switch drive and folder in one step.
Open Command Prompt When Windows Will Not Start
If Windows fails to boot, Command Prompt is still reachable through the Windows Recovery Environment (WinRE):
- If Windows boots but is unstable, go to Settings > System > Recovery and select Restart now next to Advanced startup. If it will not boot at all, Windows usually enters recovery automatically after two or three failed starts.
- Choose Troubleshoot > Advanced options > Command Prompt.
- Pick your account and enter its password if asked.
From a Windows 11 installation USB, you can also press Shift+F10 on the first setup screen to open Command Prompt. Note that drive letters in recovery can differ from normal; your Windows drive may appear as D: instead of C:. Type dir C:\ and dir D:\ to check which one contains the Windows folder.
Useful Commands to Try First
| Command | What it does | Needs admin? |
|---|---|---|
| ipconfig /all | Shows network adapters, IP addresses and DNS servers | No |
| ping 1.1.1.1 | Checks whether your internet connection responds | No |
| ipconfig /flushdns | Clears the DNS cache, often fixes sites that will not load | Usually yes |
| sfc /scannow | Scans and repairs protected Windows system files | Yes |
| DISM /Online /Cleanup-Image /RestoreHealth | Repairs the Windows component store used by sfc | Yes |
| chkdsk C: /f | Checks and fixes file system errors (may schedule at reboot) | Yes |
| winget upgrade –all | Updates supported installed apps through Windows Package Manager | Sometimes |
| shutdown /r /t 0 | Restarts the PC immediately | No |
Run DISM before sfc if sfc reports files it cannot fix. Both can take 10 to 30 minutes, so let them finish without closing the window.
Command Prompt vs PowerShell: Which Should You Use?
Windows 11 nudges you toward PowerShell, but Command Prompt is still the right tool for many tasks. Use Command Prompt when a guide, support article or batch file (.bat or .cmd) gives you cmd commands, or for quick classics like ipconfig, ping, sfc and chkdsk. Those commands also run in PowerShell, but some cmd-specific syntax, such as certain set, for and %variable% constructions, behaves differently there.
Use PowerShell when you need to automate tasks, manage Windows settings in bulk, work with objects instead of plain text, or follow modern Microsoft documentation, which increasingly uses PowerShell cmdlets. If you are unsure, check which shell the instructions were written for and match it; the Terminal tabs make switching between them a two-key shortcut.
Troubleshooting: Command Prompt Will Not Open
- Window flashes and closes: something may be running a script on startup. Open Terminal first, then open a Command Prompt tab, to see any error messages.
- “This app has been blocked by your system administrator”: a group policy disables cmd on managed PCs. On a personal computer, check whether parental controls or security software applied the block. On a work PC, ask IT.
- Search does not find cmd: use Win+R or Task Manager instead, then rebuild the search index in Settings > Privacy & security > Searching Windows if search stays broken.
- Run as administrator does nothing: make sure UAC prompts are not hidden behind other windows, and that you are using an account with admin rights.
- Odd text or colors: in Terminal, check the Command Prompt profile’s appearance settings or reset Terminal settings to default.
Frequently Asked Questions
What is the shortcut to open Command Prompt in Windows 11?
There is no single default hotkey, but Windows+R, then typing cmd and pressing Enter is the fastest built-in route. You can create your own hotkey by making a cmd shortcut and setting a key combination in its Properties.
How do I open CMD as admin in Windows 11?
Press the Windows key, type cmd, then press Ctrl+Shift+Enter and approve the UAC prompt. You can also use Windows+X and choose Terminal (Admin), then open a Command Prompt tab with Ctrl+Shift+2.
Is Command Prompt removed in Windows 11?
No. Command Prompt is still included in Windows 11. Its shortcut moved to the Windows Tools folder, and it usually opens inside Windows Terminal, but cmd.exe and its commands work as before.
Why does PowerShell open instead of Command Prompt?
Windows Terminal opens PowerShell by default. Change Default profile to Command Prompt in Terminal’s Startup settings, or press Ctrl+Shift+2 to open a cmd tab.
How do I open Command Prompt in a folder?
In File Explorer, click the address bar, type cmd, and press Enter. Command Prompt opens with that folder already set as the current directory.
Can I open Command Prompt without logging in?
Only through the recovery environment or installation media, by choosing Troubleshoot > Advanced options > Command Prompt or pressing Shift+F10 during setup. These routes are meant for repairs and may still ask for an account password.