Command Prompt is built into Windows and you can open it in seconds
Command Prompt is a text-based program on Windows that lets you type commands directly to your computer instead of clicking through menus. You do not need to install anything — it comes with Windows. The fastest way to open it is to press the Windows key, type "cmd", and press Enter. If you need to run commands that change system settings, you will need to open it as Administrator, which takes one extra step.
This guide covers the main ways to open Command Prompt, how to tell if you need Administrator access, and what to do if you cannot find it.
Key Takeaways
- Press the Windows key, type "cmd", and press Enter to open Command Prompt in seconds.
- Right-click the Command Prompt result and select "Run as administrator" if you need to make system changes.
- You can also open it through the Start menu, the Run dialog, or by navigating to the System32 folder.
- Administrator mode is required for commands that affect Windows settings, drivers, or system files.
- If Command Prompt will not open, restart your computer and try again — this fixes most problems.
The quickest method: Windows key and search
Press the Windows key on your keyboard (the key with the Windows logo). Your Start menu will open and a search box will appear at the top. Type "cmd" and wait a moment for results to show.
You will see "Command Prompt" appear in the results. Click it or press Enter to open it. A black window with white text will appear — that is Command Prompt, and it is ready to use.
This method works on Windows 10 and Windows 11. It is the fastest way to open Command Prompt when you know you do not need Administrator access.
Opening Command Prompt as Administrator
Some commands require Administrator access to run. These are commands that change system settings, install drivers, or modify Windows files. If you try to run one without Administrator access, you will see an error message saying access is denied.
To open Command Prompt as Administrator, press the Windows key and type "cmd". When "Command Prompt" appears in the results, right-click it. A menu will pop up. Click "Run as administrator". Windows will ask you to confirm — click "Yes". The Command Prompt window will open with the title "Administrator: Command Prompt" at the top.
You only need Administrator mode if you are running a command that requires it. For most tasks like checking your IP address or listing files, regular Command Prompt is fine.
Opening Command Prompt from the Start menu
Click the Start button in the bottom left corner of your screen. The Start menu will open. Scroll down through the list of programs until you see "Windows System" or "System Tools" — the exact name depends on your Windows version. Click it to expand the folder.
You will see "Command Prompt" listed inside. Click it to open Command Prompt. If you see "Windows PowerShell" instead, that is a different program — Command Prompt is the one you want, though PowerShell can run the same commands.
This method is slower than using the search box, but it works if search is not responding or if you prefer navigating menus.
Using the Run dialog to open Command Prompt
Press Windows key + R on your keyboard at the same time. A small box labeled "Run" will appear in the center of your screen. Type "cmd" in the box and press Enter. Command Prompt will open immediately.
This method is as fast as the search method and works on all Windows versions. If you want to open it as Administrator using the Run dialog, type "cmd" and press Ctrl + Shift + Enter instead of just Enter. Windows will ask for confirmation, and then Administrator Command Prompt will open.
Finding Command Prompt through File Explorer
Open File Explorer by pressing Windows key + E. In the address bar at the top, type "C:\Windows\System32" and press Enter. You will see a long list of files and folders. Scroll down until you find "cmd.exe" — this is the Command Prompt program file.
Double-click "cmd.exe" to open Command Prompt. If you need Administrator access, right-click "cmd.exe" instead, select "Run as administrator", and confirm when Windows asks.
This method is useful if the search function is broken or if you want to create a shortcut to Command Prompt on your desktop. Right-click "cmd.exe", select "Send to", and then "Desktop (create shortcut)" to add it to your desktop.
Troubleshooting when Command Prompt will not open
If you type "cmd" in the search box and nothing appears, or if Command Prompt closes immediately after opening, restart your computer first. Many temporary problems go away after a restart.
If Command Prompt still will not open after a restart, try opening it through the Run dialog instead (Windows key + R, type "cmd", press Enter). If that works, the problem is with your search function, not with Command Prompt itself.
If Command Prompt opens but closes right away, you may have a startup command in your registry that is causing it to exit. This is rare and usually only happens if you have run a script or batch file that modified your system. In this case, try opening Command Prompt as Administrator and see if it stays open longer.
Frequently Asked Questions
What is the difference between Command Prompt and PowerShell?
Both let you type commands to control Windows, but PowerShell is newer and more powerful. Command Prompt uses older commands that have been in Windows for decades. For most tasks, either one works. If a guide tells you to use Command Prompt, use Command Prompt — if it says PowerShell, use that instead.
Do I need Administrator access to open Command Prompt?
No. You can open regular Command Prompt without Administrator access. You only need Administrator mode if you are running a specific command that requires it. Most commands for checking information or listing files work fine in regular mode.
Can I pin Command Prompt to my taskbar?
Yes. Open Command Prompt using any method above. Right-click the Command Prompt window in your taskbar at the bottom of the screen and select "Pin to taskbar". After that, Command Prompt will appear in your taskbar permanently, and you can click it to open it without searching.
What if I see "Command Prompt (legacy)" in the search results?
Both "Command Prompt" and "Command Prompt (legacy)" are the same program. Windows 11 labels it as legacy because it is planning to move toward PowerShell in the future, but it works exactly the same way. Click whichever one appears.
Is it safe to open Command Prompt?
Opening Command Prompt itself is safe. The danger comes from running commands you do not understand or copying commands from untrusted websites. If you are following a guide from a trusted source and typing the exact commands it shows, you are safe. Never copy and paste commands from random websites.