How to Check PowerShell Version: The Complete Multi-OS Guide.

SOP03760-Enhanced-NR 1.pngMithra RavikrishnanProduct Marketer
Read time
9 min
Updated
Nov 20, 2026
Published
Jul 31, 2026
Analyzing the steps to check PowerShell version

TL;DR

Discovering Your PowerShell Version: A Step-by-Step Guide to Checking Your PowerShell Version

PowerShell is a powerful task automation and configuration management framework from Microsoft, widely used by system administrators, DevOps engineers, and IT professionals. 

Since PowerShell has evolved significantly over time, from Windows PowerShell (built on the .NET Framework) to the cross-platform PowerShell Core and now PowerShell 7+,  it is important to know which version you are running. 

In this guide, we will walk you through everything you need to know about how to check the PowerShell version, why it matters, and how to update it.

What is Windows PowerShell?

Windows PowerShell icon explains command line automation

Windows PowerShell is a command-line shell and scripting language built on the .NET Framework. It was designed to help automate administrative tasks and manage systems more efficiently. With PowerShell, you can run complex commands, write scripts, and automate repetitive tasks across local and remote systems.

How has PowerShell evolved over the years?

PowerShell evolution timeline shows major version releases

PowerShell has come a long way since its first release in 2006. Each version introduced new capabilities, making it more powerful and versatile for administrators and developers alike.

  • PowerShell 1.0 (2006): The first release, introduced with Windows Server 2003 R2, provided administrators with a new command-line shell and scripting language.

  • PowerShell 2.0 (2009): Added remoting, background jobs, and advanced functions, making automation more practical.

  • PowerShell 3.0 (2012): Came with Windows 8 and Server 2012; introduced workflow, improved cmdlets, and better integration with Windows Management Framework (WMF).

  • PowerShell 4.0 (2013): Brought Desired State Configuration (DSC) for infrastructure automation.

  • PowerShell 5.0/5.1 (2016): Introduced PackageManagement (OneGet), PowerShellGet, classes, and numerous enhancements. Windows PowerShell 5.1 was the last version tied to the Windows-only .NET Framework.

  • PowerShell Core 6.0 (2018): Rebuilt on .NET Core, making PowerShell cross-platform (Windows, Linux, macOS). However, it had some limitations in Windows compatibility.

  • PowerShell 7.0 (2020 onward): Began the modern PowerShell 7 series, built on newer .NET versions for Windows, Linux, and macOS. PowerShell 7.6 (LTS), released in March 2026, is built on .NET 10 and receives security and maintenance updates.

Why should you know which PowerShell version you are using?

Knowing the installed PowerShell version affects how smoothly scripts run. Each release supports different features and modules, so IT teams should check PowerShell version details before using scripts across many devices.

Here are the key reasons:

  • A quick PowerShell version check helps you confirm whether a planned script will work before running it on client devices.

  • Newer versions of PowerShell include advanced cmdlets, better error handling, and performance improvements. If you are on an older version, you may miss out on these capabilities.

  • Scripts written for PowerShell 7 might not run in Windows PowerShell 5.1, and vice versa. Knowing your version ensures you can adapt or troubleshoot scripts correctly. This also matters for PowerShell scripting in RMM, where scripts can run across many client devices.

  • PowerShell 7+ runs on Windows, Linux, and macOS, while older Windows PowerShell versions are limited to Windows.

  • Microsoft is no longer actively developing Windows PowerShell, but PowerShell 7 continues to receive regular updates, bug fixes, and security patches.

  • When seeking help online or from IT teams, version info is often the first thing you’ll be asked. Many solutions are version-specific. These checks also support patch management best practices when teams plan software updates.

Which PowerShell version is supported by which Windows OS?

Here is an overview of PowerShell releases and the Windows versions that included them by default. PowerShell 6 and 7 are separate installations and do not come preinstalled with Windows.

PowerShell Version

Release Date

Included by default or compatibility

PowerShell 1.0

November 2006

Available as a separate installation for supported legacy Windows releases; not built into all listed editions

PowerShell 2.0

October 2009

Windows Server 2008 R2 and Windows 7

PowerShell 3.0

September 2012

Windows 8 and Windows Server 2012

PowerShell 4.0

October 2013 

Windows 8.1 and Windows Server 2012 R2

PowerShell 5.0

February 2016 

Windows 10 (later builds) and Windows Server 2016 after supported updates; Windows 11 includes 5.1

PowerShell 5.1

January 2017

Windows 10 (1607+) and Windows Server 2019/2022/2025; also included with Windows 11

Powershell 6.0

January 2018

Separate installation for supported Windows editions; not preinstalled

PowerShell 7.0

March 2020

Separate installation for supported Windows editions; not preinstalled

PowerShell 7.6 (LTS)

March 2026

Separate installation; current LTS release for supported Windows, Linux, and macOS

How to check your PowerShell version?

First, open PowerShell. The methods below show how to check PowerShell version details and identify which result is the most reliable.

Open the Start menu, search for Windows PowerShell or PowerShell, and open the app you want to check. Type a command in the terminal and press Enter. Teams also use Windows CMD commands for basic system checks.

1. The Get-Host command

The Get-Host command displays the version of the PowerShell host program. This may match the engine version, but it is not the best way to confirm which PowerShell engine is running.

A host is the program that runs the PowerShell engine. For a reliable engine-version check, use $PSVersionTable.PSVersion instead of assuming the host version always matches.

This command also displays information such as the host name, the current culture, and the UI culture.

Get-Host does not report the engine version of another computer simply because it is run during a remote session. Run $PSVersionTable.PSVersion in the target session instead.

The version mentioned in the below screenshot is 5.1.22621.608

If you need to get PowerShell version details, use $PSVersionTable.PSVersion for the running engine instead of relying on host details.

Windows PowerShell terminal displays Get-Host version information

2. The $host.Version command

If you run $Host.Version, it displays the host version, often like the Get-Host result. For the PowerShell engine version, use $PSVersionTable.PSVersion.

PowerShell terminal displays host version command output

3. The $PSVersionTable command

The most reliable way to check the running engine is to type $PSVersionTable.PSVersion in PowerShell and press Enter. The output shows the engine version. To view additional details, including the edition and platform, type $PSVersionTable.

The $PSVersionTable automatic variable is read-only and describes the current PowerShell session. It can also be checked on a remote computer through a supported remote session. Use it to check PowerShell version details before running scripts that depend on a specific release.

PowerShell version table displays engine version details

4. The registry 

The Registry Editor can show the installed Windows PowerShell version. This method is most useful when you need to inspect the Windows PowerShell 5.1 installation, rather than the separate PowerShell 7 installation.

Let’s check out the first one. It is quick and easy. Just type in the below-given command.

(Get-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\PowerShell\3\PowerShellEngine' -Name 'PowerShellVersion').PowerShellVersion

PowerShell registry query shows installed engine version

You can also open Registry Editor to inspect the value. Choose Yes only if you trust the administrator prompt, and use the navigation steps below to view the key without changing its settings.

  • Open HKEY_LOCAL_MACHINE, then SOFTWARE.

  • Next, scroll down and search for Microsoft in the list of software vendors.

  • Click on the Microsoft folder and search for PowerShell.

  • Under PowerShell, select the 3 folder for the Windows PowerShell 3.0–5.1 engine registration.

  • Then click on PowerShell Engine. 

  • On the right-hand side, you’ll see a list of information including the PowerShell version number.

Registry Editor displays PowerShell folder in Windows

Registry Editor highlights installed Windows PowerShell path

Windows Registry displays PowerShell engine version settings

Version checks also help avoid compatibility problems with other languages, including Python version checks on different operating systems.

How to check your PowerShell version on a remote computer?

You can use $PSVersionTable to check PowerShell version information on a remote computer. Replace the example computer name below with the correct device name. PowerShell remoting must be enabled and your account must have the required access. For MSPs, this can also support remote support workflows during an investigation of an affected endpoint.

Invoke-Command -ComputerName incorp-eu-101 -ScriptBlock { $PSVersionTable.PSVersion }

How to check the PowerShell version on Linux?

PowerShell 6 and later run across supported Linux distributions, including Ubuntu, Debian, and Fedora. To check PowerShell version details on Linux, open a PowerShell session or run pwsh --version from the Linux terminal. A matching PowerShell version also matters for RMM task automation across client devices.

Method 1: Using $PSVersionTable

To get PowerShell version details for the current Linux session, use this automatic variable:

$PSVersionTable

Example output:

Name                           Value

----                                 -----

PSVersion                    7.3.6

PSEdition                     Core

GitCommitId               7.3.6

OS                                   Linux 5.15.0-84-generic #93-Ubuntu SMP

Platform                       Unix

Method 2: Using $Host.Version

For a quicker check, you can run:

$Host.Version

This gives you the host version in a structured format:

Major  Minor  Build  Revision

-----  -----  -----  --------

7      3      6      0

Method 3: Using pwsh --version

On Linux, PowerShell usually runs as the separate pwsh application. From a Linux shell, the following command displays its version:

pwsh --version

Example output:

On Linux, you can also run pwsh --version without starting a separate interactive PowerShell session.

PowerShell 7.3.6

Pro Tip: If you are managing multiple environments, using $PSVersionTable inside PowerShell is the most reliable approach, while pwsh --version is great for quick checks at the system level.

How to check the PowerShell version on macOS?

PowerShell 6 and later also run on macOS. If you installed PowerShell through Homebrew or the official package, you can check it using the same commands as on Linux.

To check PowerShell version details on macOS, run $PSVersionTable.PSVersion in a PowerShell session. You can also run pwsh --version from Terminal if the pwsh executable is available in your PATH. The results become easier to act on when teams have unified endpoint visibility across managed systems.

How can I install the latest version of PowerShell?

PowerShell 7 receives supported feature and security updates. If your PowerShell version check shows an older release, choose the installation method that fits your system.

1. Microsoft Store

The Microsoft Store provides a simple way to install and update PowerShell on supported Windows devices. Search for PowerShell, choose the Microsoft-published application, and follow the installation instructions. Store updates depend on your Windows settings.

Microsoft Store listing for installing modern PowerShell

2. Winget 

WinGet is the Windows Package Manager. It can find, install, and update programs from a command shell, including Windows PowerShell, PowerShell 7, or CMD. It is available on supported Windows clients, but not on every older Windows Server release.

Use these commands to find and install the supported PowerShell package:

winget search --id Microsoft.PowerShell --exact
winget install --id Microsoft.PowerShell --source winget

WinGet terminal displays available Microsoft PowerShell packages

3. Installing the MSI package

You can also download an official installer from the PowerShell GitHub releases page. Choose the correct processor architecture and current supported release before installing.

Download the installer that matches the operating system and device architecture.

  • PowerShell 7.6 (LTS), x64: official Windows MSI installer

  • PowerShell 7.6 (LTS), ARM64: official Windows MSI installer

Follow the installer instructions, then reopen a terminal and check PowerShell version with $PSVersionTable.PSVersion to verify the installation. PowerShell 7 runs alongside Windows PowerShell 5.1 rather than replacing it.

Which versions of PowerShell come preinstalled with Windows OS?

Windows PowerShell has shipped with Windows since Windows 7 and Windows Server 2008 R2. The version included by default depends on the Windows release:

  • Windows 7 / Windows Server 2008 R2: PowerShell 2.0

  • Windows 8 / Windows Server 2012: PowerShell 3.0

  • Windows 8.1 / Windows Server 2012 R2: PowerShell 4.0

  • Windows 10 / Windows Server 2016: PowerShell 5.0 or 5.1 (most editions shipped with 5.1 after updates)

  • Windows 11 / Windows Server 2022: PowerShell 5.1

These are the built-in Windows PowerShell versions. PowerShell 7.x installs separately, allowing you to use it alongside Windows PowerShell 5.1. After an update, check PowerShell version again to confirm which engine is running. Documenting these differences supports IT asset management and documentation across mixed device fleets.

What are the differences between Windows PowerShell and PowerShell Core?

Windows PowerShell 5.1 and modern PowerShell 7.x share much of the same syntax, but they differ in operating system support, .NET runtime, and compatibility with some older modules.

Feature

Windows PowerShell

PowerShell 7.x (modern)

Platform

Windows only

Cross-platform (Windows, Linux, macOS)

Underlying Framework

.NET Framework

.NET 10 for PowerShell 7.6 LTS; older PowerShell 7 releases use earlier .NET versions

Latest Version

5.1 (no active development)

Most common cmdlets; some legacy Windows PowerShell modules need compatibility support

Module Compatibility

Fully compatible with legacy Windows modules

Installed alongside Windows PowerShell; available from official packages

Installation

Preinstalled on Windows

Installs side-by-side; must be downloaded separately

Performance & Features

Standard Windows cmdlets and scripting

Improved performance, ForEach-Object -Parallel, cross-platform features

Support

Security updates only

Actively maintained with new releases and security updates

How can SuperOps simplify PowerShell script management?

At SuperOps, we connect Windows script execution with endpoint monitoring, device records, and service desk work in one AI-native platform. Technicians can create PowerShell scripts, save them in a shared library, and run them on authorized Windows assets without opening a separate tool.

Our scripting workflows let teams schedule scripts, apply them to selected endpoints, and use permissions to control access. Monica AI can help draft supported scripts, but technicians should review and test any generated code before deployment.

For mixed operating systems, the scripting language matters. We support PowerShell, batch files, and VBScript on Windows; macOS and Linux scripting uses Bash in the current scripting module. This is why checking the installed PowerShell engine is important before running Windows scripts.

A shared script library becomes more useful when the instructions sit beside the device record and related IT documentation. Our Autonomous Endpoint Management builds on this connected foundation.

Contact our team today to learn more.

Frequently asked questions

If Go (Golang) is installed on your system, open PowerShell and type go version. This command outputs the currently installed Go version along with your OS and architecture, for example: go version go1.21.0 windows/amd64. This is useful for verifying your Go setup and ensuring scripts or projects target the correct Go version. Make sure Go is added to your system PATH for this command to work.


To find the current version, run $PSVersionTable.PSVersion inside PowerShell. As of 2025, the latest stable release is PowerShell 7.5, which is cross-platform and actively maintained. Windows PowerShell 5.1 is the last version tied to the .NET Framework and is Windows-only. Knowing the version helps ensure script compatibility and access to modern features such as parallel processing and enhanced cmdlets in PowerShell 7+.


You can check by running $PSVersionTable.PSVersion or Get-Host | Select-Object Version. If the Major version shows 2, PowerShell V2 is installed. This is especially relevant for legacy scripts or older Windows environments. Windows PowerShell 2.0 is limited in features compared to later versions, so knowing whether it’s installed can help prevent compatibility issues when running modern scripts.

To determine if your PowerShell session is 32-bit or 64-bit, run:

if ([IntPtr]::Size -eq 8) { "64-bit" } else { "32-bit" }

The output will tell you the architecture of your PowerShell process. This is important when installing modules or scripts that are architecture-specific, or when troubleshooting system differences between 32-bit and 64-bit Windows environments

. 

PowerShell comes in two main editions: Windows PowerShell (1.0–5.1, Windows-only) and PowerShell Core / 6.x–7.x (cross-platform, modern). Windows PowerShell 5.1 is the final legacy version, while PowerShell 7+ runs on Windows, Linux, and macOS with new features, improved performance, and long-term support. Choosing the correct version ensures script compatibility, access to the latest cmdlets, and the ability to run cross-platform automation reliably.

Updating PowerShell using CMD is pretty simple. Just open Command Prompt as an administrator and run winget upgrade Microsoft.PowerShell. If you're using PowerShell 7, this will install the latest version. If you're still on Windows PowerShell 5.1, you don't need to update it manually—it gets updates through Windows Update.

If you're just running a few basic commands, CMD works perfectly fine. But if you plan to automate tasks, manage your system, or do more advanced work, PowerShell is definitely the better choice. It has way more features and is the command-line tool Microsoft recommends for modern Windows administration.

Open Command Prompt and type powershell to start Windows PowerShell, or type pwsh if PowerShell 7 is installed. You can also run one command using powershell -Command "$PSVersionTable.PSVersion". Use pwsh -Command for PowerShell 7.

Use PowerShell for scripts, remote administration, and commands that return structured data. CMD is still useful for basic file and network tasks or older batch scripts. Choose the shell supported by your software and environment.

PowerShell can run many Windows command-line programs, including ipconfig and ping. However, some CMD built-ins and batch syntax work differently. You may need to call cmd /c for a specific CMD command or batch file.

Continue reading

Run your IT estate with a capable human-AI workforce.

Explore how agents and their playbooks are about to change the way you do IT work. Without ever compromising on trust.

BOOK A DEMO
CMS