Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Windows Key + CMD: How to Open Command Prompt

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

To open Command Prompt using the Windows key, press Windows + R to open the Run dialog, type cmd, and press Enter. This is the fastest keyboard-only method and works on Windows 10 and Windows 11. You can also press Windows, type cmd, and press Enter, or use Windows + X and choose Command Prompt or Terminal from the menu. No extra software is needed, but some commands require administrator rights, which you can get by pressing Ctrl + Shift + Enter instead of Enter after typing cmd.

What You'll Need

  • A Windows 10 or Windows 11 PC with a working keyboard.
  • Patience to read the User Account Control prompt if you need administrator rights.
  • No additional downloads; Command Prompt is built into Windows.

Step-by-Step

  1. Open the Run dialog. Press Windows + R together. A small window labeled Run appears in the bottom-left corner of the screen. This works on both Windows 10 and Windows 11; the dialog looks the same.
  2. Type the command. In the Open field, type cmd (lowercase is fine). Do not add spaces or extra characters.
  3. Press Enter. A black window titled Command Prompt opens. If you are signed in as a standard user, it opens in your user folder, such as C:\Users\YourName>.
  4. Optional: open as administrator. If you need to run commands that change system settings, close the window and repeat steps 1–2, but press Ctrl + Shift + Enter instead of Enter. A User Account Control prompt appears; click Yes. The window title will show Administrator.
  5. Run a command. Type a command and press Enter. For example, ipconfig shows your network settings, and dir lists files in the current folder. To close the window, type exit and press Enter, or click the X.

Menu labels and the exact appearance of the Run dialog can differ slightly by Windows version, edition, or region, but the Windows + R shortcut and the cmd command are consistent across current Windows releases.

Common Mistakes

  • Typing cmd in the wrong place. The Run dialog is not the search box. Press Windows + R first, then type.
  • Forgetting administrator rights. Many commands fail with “Access is denied” unless the window is elevated. Use Ctrl + Shift + Enter.
  • Adding a space or period. Type exactly cmd, not cmd or cmd..
  • Confusing Command Prompt with PowerShell. Windows + X may show “Windows PowerShell” or “Terminal” on newer builds. Either works for most commands, but the window title tells you which one you have.
  • Running unknown commands. Commands can delete files or change settings. Only run commands you understand or that come from a trusted source.

Tips

  • Pin Command Prompt to the taskbar: open it, right-click its taskbar icon, and choose Pin to taskbar. Then you can open it with one click.
  • Use the arrow keys to recall previous commands; press F7 for a history list.
  • Right-click inside the window to paste text; Ctrl + V also works in Windows 10 and 11.
  • To open Command Prompt in a specific folder, open File Explorer, click the address bar, type cmd, and press Enter.
  • If you prefer a modern shell, Windows Terminal includes Command Prompt as a tab; open it from the Start menu or with Windows + X.

Troubleshooting

If the Run dialog does not open, check that the Windows key is not disabled by a keyboard toggle or third-party software. Try the on-screen keyboard from Settings > Accessibility > Keyboard if your physical keyboard is suspect. If typing cmd opens a different app, you may have a shortcut conflict; type the full path C:\Windows\System32\cmd.exe in the Run dialog instead. If Command Prompt opens and closes immediately, a startup script may be exiting it; open it as administrator and check for autorun settings. If you get “Access is denied” for a command, close the window and reopen with Ctrl + Shift + Enter. If Windows + X does not show Command Prompt, look for Terminal or PowerShell in the menu; on Windows 11, Terminal is the default and includes Command Prompt. If the window is too small or text is unreadable, right-click the title bar, choose Properties, and adjust the font size. If commands like ipconfig are not recognized, the system PATH may be damaged; run where ipconfig to check, and use the full path C:\Windows\System32\ipconfig.exe if needed. Restarting the PC resolves many temporary shell issues; if problems persist, run sfc /scannow from an administrator Command Prompt to check system files.

Frequently Asked Questions

Does Windows + Cmd open Command Prompt?

No. There is no Windows + Cmd shortcut. Use Windows + R, type cmd, and press Enter.

Can I open Command Prompt as administrator with a keyboard shortcut?

Yes. Press Windows + R, type cmd, then press Ctrl + Shift + Enter and confirm the User Account Control prompt.

Why does my Command Prompt say PowerShell?

On newer Windows versions, the Windows + X menu may list Terminal or PowerShell instead of Command Prompt. Terminal can host a Command Prompt tab; PowerShell accepts most CMD commands but not all.

Is Command Prompt the same as MS-DOS?

No. Command Prompt is a Windows command-line interpreter that runs many MS-DOS-style commands, but it is not the MS-DOS operating system.

How do I close Command Prompt?

Type exit and press Enter, or click the X in the top-right corner. Closing the window ends the session.

Can I use Command Prompt to change network settings?

Yes, commands such as ipconfig and netsh can view or change network configuration, but some changes require administrator rights and can disconnect you. Use them carefully.