The fastest ways to open Command Prompt
Command Prompt is a text-based program built into Windows 10 that lets you run commands and scripts directly. You can open it in seconds using the search box, the Run dialog, or File Explorer — each method works in different situations.
The search box method is usually fastest: press the Windows key, type cmd, and press Enter. This opens Command Prompt in normal mode. If you need administrator access (which some commands require), right-click the Command Prompt result and select Run as administrator.
The Run dialog method works if you prefer keyboard shortcuts: press Windows key + R, type cmd, and press Enter for normal mode, or press Ctrl + Shift + Enter for administrator mode. This skips the search results screen entirely.
Key Takeaways
- The Windows search box is the simplest method: press Windows key, type cmd, and press Enter.
- Right-click the Command Prompt result and select Run as administrator when you need elevated permissions to run certain commands.
- The Run dialog (Windows key + R) opens Command Prompt without showing search results, which some people find faster once they know the shortcut.
- File Explorer's address bar can also launch Command Prompt by typing cmd in the location field and pressing Enter.
- Administrator mode is required for commands that modify system settings, install software, or access protected files.
Using the Windows search box
Open the search box by pressing the Windows key (the key with the Windows logo) or by clicking the search icon in the taskbar at the bottom left of your screen. Type cmd and wait for results to appear.
You will see "Command Prompt" listed in the results. Click it to open Command Prompt in normal mode. If you need administrator access, right-click "Command Prompt" instead and select Run as administrator from the menu that appears. Windows will ask for confirmation before opening the elevated version.
This method works from anywhere in Windows — the desktop, inside another program, or while you are browsing files. It is the most reliable way because the search box is always available.
Using the Run dialog
Press Windows key + R to open the Run dialog box. A small window will appear with a text field labeled "Open:". Type cmd in this field and press Enter to open Command Prompt in normal mode.
For administrator mode, type cmd in the same field, then press Ctrl + Shift + Enter instead of just Enter. Windows will ask for confirmation before opening the elevated version. This shortcut skips the search results screen and opens Command Prompt directly.
The Run dialog is useful if you already have your hands on the keyboard and want to avoid clicking. It also works for launching other programs — you can type the name of any installed program or system tool and press Enter.
Opening Command Prompt from File Explorer
Open File Explorer by pressing Windows key + E or clicking the folder icon in the taskbar. Navigate to any folder where you want to work. Click the address bar at the top (where the folder path is shown) and type cmd, then press Enter.
Command Prompt will open with that folder as the working directory, which means you can immediately run commands on files in that location without typing the full path. This is useful when you are working with files in a specific folder and want to run commands on them.
You can also right-click inside a folder and look for an option like "Open Command Prompt here" or "Open PowerShell window here" — the exact wording depends on your Windows 10 version and updates. If you see this option, clicking it opens Command Prompt in that folder directly.
Understanding normal mode versus administrator mode
Normal mode Command Prompt can run most commands and scripts, but some commands require administrator permissions to work. These include commands that change system settings, install or uninstall software, modify protected files, or access certain system folders.
If you try to run a command that needs administrator access in normal mode, you will see an error message saying "Access is denied" or similar. When this happens, close the window and open Command Prompt again using the administrator method: search for cmd, right-click the result, and select Run as administrator.
Administrator mode shows a different window title that includes the word "Administrator" in brackets. Windows will ask for confirmation when you open it this way, which is a security measure to prevent programs from making system changes without your knowledge.
Keyboard shortcuts for faster access
If you open Command Prompt frequently, these keyboard shortcuts save time. Windows key + R followed by typing cmd and pressing Enter is the fastest single method. Windows key + R followed by typing cmd and pressing Ctrl + Shift + Enter opens administrator mode directly.
You can also pin Command Prompt to your taskbar for one-click access. Search for cmd, right-click the result, and select Pin to taskbar. After that, you can click the Command Prompt icon in the taskbar whenever you need it. Right-click the pinned icon and select Run as administrator if you need elevated permissions.
Some people create a desktop shortcut to Command Prompt for even faster access. Right-click the desktop, select New, then Shortcut. In the location field, type cmd.exe and click Next. Name it "Command Prompt" and finish. You can then double-click this shortcut to open Command Prompt, or right-click it and select Run as administrator.
What to do if Command Prompt does not open
If the search box does not find Command Prompt, your Windows 10 installation may be incomplete or corrupted. Try the Run dialog method instead: press Windows key + R, type cmd.exe (including the .exe extension), and press Enter. If this works, the search index simply needs updating.
If neither method works, restart your computer and try again. If Command Prompt still does not open, you may need to repair Windows 10 using the Settings app. Open Settings, go to System, then About, and look for a Repair or Reset option. Before doing this, back up any important files.
If you see a message saying "cmd is not recognized as an internal or external command", you are likely in PowerShell instead of Command Prompt. PowerShell is a different program with different commands. Close the window and use one of the methods above to open Command Prompt specifically.
Frequently Asked Questions
What is the difference between Command Prompt and PowerShell?
Command Prompt is the older text-based tool and uses simpler commands. PowerShell is newer and more powerful, with commands designed for advanced system administration. For basic tasks, Command Prompt is usually sufficient. If a guide tells you to use PowerShell specifically, use that instead of Command Prompt.
Do I need administrator mode to run all commands?
No. Most commands work in normal mode. You only need administrator mode for commands that change system settings, install software, modify protected files, or access restricted folders. If you see an "Access is denied" error, that command needs administrator mode.
Can I pin Command Prompt to the Start menu?
Yes. Search for cmd, right-click the result, and select Pin to Start. After that, you can click the Command Prompt tile in your Start menu to open it. You can also right-click the tile and select Run as administrator from the menu that appears.
What if I accidentally close Command Prompt before finishing?
Simply open it again using any of the methods above. Command Prompt does not save your history between sessions by default, so you will need to retype your commands. Some advanced users configure Command Prompt to save history, but this is not the default behavior.
Is Command Prompt the same on Windows 11?
The methods to open Command Prompt are nearly identical on Windows 11. The search box, Run dialog, and File Explorer methods all work the same way. Windows 11 also includes a newer tool called Terminal, which combines Command Prompt and PowerShell in one window, but Command Prompt itself works exactly as described here.