How to Open PowerShell in Windows 11 (Including as Admin)

The fastest way to open PowerShell in Windows 11 is to press Win+R, type pwsh (or powershell for Windows PowerShell 5.1), and press Enter:

pwsh

That’s one of several routes. Below I’ll walk through how to open PowerShell from the Start menu, Win+X, the Run box, Windows Terminal and Command Prompt, how to open it as admin, and how to check what you got.

Open PowerShell from the Start menu search

Press the Windows key and start typing powershell. You don’t need to click the search box first; Windows starts searching as soon as you type.

Windows 11 Start menu search for powershell with the PowerShell app and Run as Administrator
Typing powershell in Start shows PowerShell 7 as the best match, with Run as Administrator on the right

On my PC, the best match was PowerShell, which is PowerShell 7. Windows PowerShell 5.1 showed up below it under Apps, along with the ISE.

Press Enter or select Open for a normal window. If no PowerShell 7 entry appears, it isn’t installed yet; see how to install or update PowerShell 7 on Windows 11.

Right-click the result and choose Pin to taskbar if you open it every day.

Open PowerShell as administrator with Win+X

Press Win+X, or right-click the Start button. The menu has two Terminal items:

Windows 11 Win+X menu with the Terminal and Terminal (Admin) items
Win+X opens the power user menu with Terminal and Terminal (Admin)

Terminal opens Windows Terminal with its default profile, which is PowerShell after a fresh install. Terminal (Admin) opens it elevated.

For the admin option, Windows shows a User Account Control (UAC) prompt first. Select Yes to continue. A standard user must type an admin password instead.

You can also start an elevated window from a PowerShell you already have open. This triggers the same UAC prompt, so I’ve shown it as code only:

Start-Process pwsh -Verb RunAs

Use powershell instead of pwsh for 5.1. To use another account rather than elevating your own, see running PowerShell as a different user.

Use the Run dialog: powershell or pwsh

Press Win+R, type the program name, and press Enter. pwsh opens PowerShell 7, and powershell opens Windows PowerShell 5.1:

Windows 11 Run dialog with pwsh typed in the Open box
Type pwsh in the Run box to open PowerShell 7

Task Manager works the same way when Explorer is stuck. Press Ctrl+Shift+Esc, select Run new task, type powershell, and press Enter.

Pick a PowerShell profile in Windows Terminal

Windows Terminal is the tabbed host that Windows 11 uses for shells. Each shell is a profile, and Terminal creates profiles automatically when you have more than one PowerShell version installed.

Select the arrow next to the + button to see them:

Windows Terminal dropdown listing Windows PowerShell and PowerShell profiles
Windows PowerShell is 5.1 and PowerShell is 7; Ctrl+Click opens a profile as administrator

Here Windows PowerShell is 5.1 (Ctrl+Shift+1) and PowerShell is 7 (Ctrl+Shift+6). The tooltip on the + button also says Ctrl+Click opens a tab as administrator.

To make PowerShell 7 the one that opens by default, go to Settings > Startup > Default profile. The Windows Terminal vs PowerShell comparison explains how the host and the shell differ.

From a command line, wt opens a chosen profile in a chosen folder:

wt -p "PowerShell" -d C:\Reports

Start PowerShell from Command Prompt or File Explorer

In Command Prompt, type pwsh or powershell and press Enter. The window switches to a PowerShell prompt, and exit takes you back to cmd.

The same names work from inside PowerShell. This runs one command in each version and returns:

pwsh -NoLogo -NoProfile -Command '$PSVersionTable.PSEdition'
powershell -NoLogo -NoProfile -Command '$PSVersionTable.PSEdition'

Output:

Core
Desktop

Core is PowerShell 7 and Desktop is Windows PowerShell 5.1. The Windows PowerShell vs CMD guide covers what changes once you switch.

In File Explorer, click the address bar, type pwsh, and press Enter. PowerShell opens in that folder; the details are in opening PowerShell in a specific folder.

How do I know if I opened PowerShell 7 or 5.1?

The version banner can scroll away, so ask $PSVersionTable instead:

"Edition: $($PSVersionTable.PSEdition)"
"Version: $($PSVersionTable.PSVersion)"

Output:

Edition: Core
Version: 7.6.7