How to: Open Command Prompt, Terminal, or PowerShell in Windows


Introduction

In Windows, the default app used to host console windows is Windows Terminal.

Command Prompt, Windows PowerShell, and other console apps appear inside an instance of Windows Terminal.

To open Terminal, follow the steps below. Multiple methods are presented.

See also

What is Windows Terminal?

Instructions

Jump to:

A: Run dialog box

  1. Open the "Run" dialog box.

  2. Type cmd. Then, click OK or press Enter.

    Run dialog box in Windows 11 showing "cmd" typed and the "OK" button selected

    Jump to: Outcome

B: Start menu search

  1. Click your Start button. In the search field, type terminal, but do not press Enter.

    Windows 11 Start menu showing "terminal" typed into the search field

  2. In the list of search results that appears, click Terminal.

    Windows 11 Start menu showing "terminal" typed into the search field. In the list of search results, "Terminal" is selected.

    Jump to: Outcome

C: Run as administrator

  1. Click your Start button. In the search field, type terminal, but do not press Enter.

    Windows 11 Start menu showing "terminal" typed into the search field

  2. In the list of search results, right-click Terminal and choose Run as administrator.

    Windows 11 Start menu showing "terminal" typed into the search field. In the list of search results, "Terminal" is shown to be right-clicked. In the resulting pop-up menu, "Run as administrator" is selected.

  3. If prompted about User Account Control, click Yes.

    User Account Control in Windows 11 asking if you want to allow Terminal to make changes. The options are "Yes" and "No". The "Yes" option is highlighted.

Outcome

The Terminal application is open.

NOTE: If PowerShell opens by default, you can run most commands that you would normally run in Command Prompt in PowerShell instead. It is Microsoft's recommended modern console.

PowerShell app in Windows 11

If you have legacy needs that require Command Prompt, click the down arrow across the top and choose Command Prompt.

Terminal app in Windows 11 showing the menu open and "Command Prompt" chosen from the menu

Command Prompt is open.

Command Prompt in Windows 11