|

How To Check Your PowerShell Version In Windows 11 (2026)

The quickest way to see your PowerShell version is to open PowerShell and run one command.

The command is $PSVersionTable.PSVersion, and the number it prints is your version.

This guide also explains Windows PowerShell 5.1 versus PowerShell 7, and why two different answers can both be right on the same PC.

Quick answer: check the version in three steps

  1. Select the search box or press Windows and type PowerShell.
  2. Open Windows PowerShell and type the command below, then press Enter.
  3. Read the Major, Minor and Build numbers that appear.
$PSVersionTable.PSVersion

Microsoft’s PowerShell 101 guide says typing PowerShell into Windows 11 search shows the Windows PowerShell shortcut among others.

A first number of 5 means Windows PowerShell 5.1, and a first number of 7 means PowerShell 7.

Open PowerShell in Windows 11

Way to open itWhat you get
Search for PowerShell, then select Windows PowerShellA window whose title bar reads Windows PowerShell
Right-click the shortcut and choose Run as administratorA window titled Administrator: Windows PowerShell
Start menu search for PowerShell 7The newer shell, only if you installed it
Run pwsh from any promptPowerShell 7, only if you installed it

Microsoft’s PowerShell 101 guide lists four shortcuts on 64-bit Windows: Windows PowerShell, Windows PowerShell ISE, and the 32-bit versions of each.

You do not need administrator rights to read the version, so a normal window is fine.

Our guide to opening Terminal or Command Prompt as administrator covers the elevated route if you need it.

Run the version command

  1. Type $PSVersionTable.PSVersion and press Enter.
  2. Look under the Major column for the first number.
  3. To see everything, type $PSVersionTable on its own.

Microsoft describes $PSVersionTable as a read-only hash table with details about the version of PowerShell running in the current session.

That wording matters, because the table describes the window you typed it into and not every copy installed on the PC.

What each line in the table means

PropertyWhat Microsoft says it holds
PSVersionThe PowerShell version number
PSEditionDesktop for PowerShell 4 and below and for 5.1 on full Windows editions; Core for PowerShell 6 and higher
GitCommitIdThe commit ID of the source files on GitHub
OSA description of the operating system PowerShell is running on
PSCompatibleVersionsVersions of PowerShell that are compatible with the current one
PSRemotingProtocolVersionThe version of the remote management protocol
SerializationVersionThe version of the serialization method
WSManStackVersionThe version of the WS-Management stack

For most people only PSVersion and PSEdition matter.

Microsoft’s page notes that older properties such as BuildVersion and ClrVersion were removed from newer releases, so they will not appear in PowerShell 7.

Windows PowerShell 5.1 or PowerShell 7?

Windows PowerShell 5.1PowerShell 7
Program namepowershell.exepwsh.exe
PSEditionDesktopCore
Comes with WindowsYes, per Microsoft’s PowerShell 101 guideNo, you install it
DevelopmentNo longer developed; security updates onlyActively developed
PlatformsWindowsWindows, macOS and Linux

Microsoft says PowerShell 7 installs side by side with Windows PowerShell 5.1 and does not replace it.

That is why a PC can honestly report version 5.1 in one window and version 7 in another.

If you see a version older than 5.1, Microsoft’s guide says to update Windows.

What about PowerShell 6 and the ISE?

Microsoft’s guide says PowerShell 6, formerly called PowerShell Core, is no longer supported.

It also says Windows PowerShell ISE is no longer updated and works only with Windows PowerShell 5.1.

Microsoft recommends Visual Studio Code with the PowerShell extension instead, because that supports both versions.

Why Terminal can show a different shell

Microsoft says Windows Terminal became the default app for hosting console windows in Windows 11 22H2.

Terminal is only the window, and the shell inside it can be Command Prompt, Windows PowerShell or PowerShell 7.

Microsoft’s Terminal settings page says a new tab opens with the default profile, and that the profile is set by the defaultProfile setting in settings.json.

If your version answer looks wrong, check which profile your tab is using before you run the command.

Our BIOS version guide is another example of a check that runs from the same window.

Find out how PowerShell 7 was installed

Type $PSHOME inside a PowerShell 7 window to see its install folder.

$PSHOME valueInstall method
$Env:ProgramFiles\PowerShell\7MSI package
$Env:ProgramFiles\WindowsApps\…Microsoft Store or MSIX
$HOME\.dotnet\tools.NET global tool
Anything elseZIP package

Knowing the method tells you how to update it later, because Microsoft says to install a newer package the same way you installed the old one.

The message that asks you to install the latest PowerShell

Windows PowerShell 5.1 shows a notice at every start telling you a newer PowerShell exists.

Microsoft says the notice does not mean your Windows PowerShell is out of date.

Microsoft also says installing PowerShell 7 is optional unless you need its features.

The message cannot be removed, but starting the shell with powershell.exe -nologo hides all startup banners.

PowerShell 7 does not show the notice at all.

Install or update PowerShell 7

  1. Open Windows PowerShell or Terminal.
  2. Type winget search –id Microsoft.PowerShell –exact to see the latest version.
  3. Type winget install –id Microsoft.PowerShell –source winget to install it.
  4. Start it by typing pwsh, then run $PSVersionTable.PSVersion again.

Microsoft says WinGet is included in Windows 11 as part of App Installer, and calls it the recommended method for client PCs.

To update later, Microsoft lists winget upgrade –id Microsoft.PowerShell.

You can also install from the Microsoft Store, which Microsoft says updates automatically through Windows.

Limits of the Microsoft Store version

Microsoft says the Store and MSIX packages install per user and do not support PowerShell remoting.

It also says $PSHOME is read-only in that package and that all-users profiles cannot be created or changed.

Home users rarely hit those limits, but administrators may prefer the MSI package.

Sources

Leave a Reply

Your email address will not be published. Required fields are marked *