Tech News Today
  • Hardware
    • Motherboards
    • CPUs
    • Graphic Cards
    • RAM
    • SSDs
    • Computer Cases
    • Monitors
    • Peripherals
    • Power Supply Unit
    • PC Builds
    • Computer Tips
  • Software
  • Operating System
    • Windows
    • Mac
    • Linux
  • Gaming
  • Mobile
  • Console
  • More
    • Internet
    • Networking
    • Security
    • Buyer’s Guide
    • Gadgets
    • Laptops
    • Reviews
    • How To
    • News
Facebook Twitter Instagram
Tech News Today
  • Hardware
    • Motherboards
    • CPUs
    • Graphic Cards
    • RAM
    • SSDs
    • Computer Cases
    • Monitors
    • Peripherals
    • Power Supply Unit
    • PC Builds
    • Computer Tips
  • Software
  • Operating System
    • Windows
    • Mac
    • Linux
  • Gaming
  • Mobile
  • Console
  • More
    • Internet
    • Networking
    • Security
    • Buyer’s Guide
    • Gadgets
    • Laptops
    • Reviews
    • How To
    • News
Tech News Today
Home»Windows»3 Easy Ways to Check PowerShell Version

3 Easy Ways to Check PowerShell Version

Abhishek SilwalBy Abhishek SilwalMay 24, 2023
check powershell version

Depending on your Operating System and how updated it is you will have a certain PowerShell version in the system.

A PowerShell version contains three or four numbers separated by periods (.) that represent the Major version number, the Minor version number, the Build number, and the Revision number (optionally).

Microsoft integrates new features inside PowerShell while improving the current ones on each successive build or version. Some editions also remove certain outdated cmdlets, so you can only use those in the previous builds. 

As such, it’s best if you know what version of PowerShell you have, especially if you are getting into PowerShell scripts. This way, you’ll better understand what functionalities or cmdlets to include and what to exclude in your codes or scripts.

Current PowerShell Editions and Versions

Microsoft usually bundles a specific edition of PowerShell in its installation software, which is called Windows PowerShell. For instance, these were the PowerShell versions during the initial launch of the following Windows builds:

  • Windows 10 version 1607, Windows 11 and Server 2016, 2019, 2022 – PowerShell 5.1
  • Windows 10 version 1507, 1511 – PowerShell 5.0
  • Windows 8.1 and Server 2012 R2 – PowerShell 4.0

Regularly updating Windows will install the necessary .NET Framework and Windows Management Framework on all these systems and update the Windows PowerShell to the latest version (5.1).

But Microsoft has continued developing PowerShell and released further editions even though they are not bundled together with the Windows Operating System. These builds are commonly called PowerShell Core to differentiate them from Windows PowerShell. However, you will usually see them as PowerShell 6.x or PowerShell 7.x.

You need to download and install the latest PowerShell versions separately to get them in your system. Microsoft provides many methods to install this application, but they may install the program in different locations. So, it’s best to keep using the same method when installing any future versions or builds as well.

How to Check the PowerShell Version?

You should already have a tentative estimate of the version while opening the program itself. 

In Windows 10 and 11, the PowerShell command on Run opens Windows Powershell (version 5) while you need to use the pwsh command to open PowerShell Core (v6 or v7). Searching PowerShell on the Search bar (Win + S) also lists Windows PowerShell, PowerShell 7, and so on.

PowerShell Core also shows the version number on the top after you open it. But you will need to run some cmdlets inside Windows PowerShell to know the full version. You can also get this information from the corresponding registry entries.

Note: PowerShell is not a case-sensitive command-line interface. So, you don’t need to worry about matching the cases of all cmdlets.

Using $PSVersionTable Cmdlet

$PSVersionTable is the best cmdlet to check the current PowerShell version. It will show all the version information, including the version number in a table format.

  1. Open PowerShell.
  2. Type $PSVersionTable and press Enter. Here, check the Value of PSVersion to find the PowerShell version.
  3. Alternatively, you can directly enter $PSVersionTable.PSVersion to get only the version number.
    powershell-ps-version-table

Using Get-Host or $Host Cmdlet

PowerShell uses the concept of hosts in its operation and allows other applications to host themselves using the System.Management.Automation.PowerShell class.

The Get-Host or the $host cmdlets display the information of the current PowerShell host, which is the default PowerShell Console. This information also includes the PowerShell version number.

However, keep in mind that you may not get an accurate result if you use this cmdlet as a script to get the PowerShell version on a remote computer.

  1. Open PowerShell.
  2. Enter Get-Host or $Host and check the value next to Version.
  3. Alternatively, you can directly enter one of the following cmdlets to display only the version number.
    • (Get-Host).Version
    • $Host.Version
      powershell-version-get-host

Through the Registry Editor

Your Registry stores all the necessary information on your programs and features, including the version number. So, you can use the Registry Editor to check out the current version of your PowerShell.

To see the version of Windows PowerShell:

  1. Open Run (Windows + R).
  2. Type regedit and press Enter to open the Registry Editor.
  3. Go to Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\3\PowerShellEngine
  4. Check the value of PowerShellVersion.
    Windows-powershell-engine-powershellversion-registry
  5. You can also use the following cmdlet on PowerShell to get the value of this Registry Entry.
    (Get-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\PowerShell\3\PowerShellEngine -Name 'PowerShellVersion').PowerShellVersion
    powershell-get-itemproperty-registry-powershellversion

To see the version of PowerShell Core:

  1. Open the Registry Editor.
  2. Go to Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShellCore\InstalledVersions\
  3. Select the key/s inside InstalledVersions and check the SemanticVersion.
    semanticversion-powershell-core-registry
  4. If you have multiple instances of PowerShell Core (it can happen if you install different versions through different methods), you can check the InstallLocation entry to determine which version points to which program.
how-to
Abhishek Silwal
  • LinkedIn

Abhishek Silwal is an Electronics Engineer and a technical writer at TechNewsToday. He specializes in troubleshooting a wide range of computer-related issues. His educational background in Electronics Engineering has given him a solid foundation in understanding of computers. He is also proficient in several programming languages and has worked on various robotics projects. Even in his early days, he used to tinker with various computer components, both hardware, and software, to satiate his curiosity. This experience has given him a breadth of experience that goes beyond his educational qualification. Abhishek has been writing articles on dealing with varieties of technical issues and performing specific tasks, especially on a Windows machine. He strives to create comprehensive guides on fixing many system and hardware issues and help others solve their problems. You can contact him at abhisheksilwal@technewtoday.com

Related Posts

d drive not showing up

D Drive Not Showing Up—10 Ways to Fix It

May 22, 2023
antimalware service executable high memory

Fix: Antimalware Service Executable High Memory

May 18, 2023
windows event logs

How to Check Event Logs on Windows

May 17, 2023
the rpc server is unavailable

Fix: The RPC Server is Unavailable

May 15, 2023
DirectStorage Windows 11

How to Enable DirectStorage on Windows 11

May 15, 2023
audio keeps cutting out

5 Ways to Fix Audio Keeps Cutting Out on Windows 11

May 12, 2023
Add A Comment

Leave A Reply Cancel Reply

Latest Posts
what is port 443

Port 443: Everything You Need to Know About It

May 18, 2023
Best-1200W-PSU

8 Best 1200W PSUs for Extreme PC Builds in 2023

May 16, 2023
Best-1000W-PSU

10 Best 1000W PSUs in 2023

May 16, 2023
You may also like
check powershell version

3 Easy Ways to Check PowerShell Version

May 24, 2023
how to clean lightning port

How to Clean Lightning Port Safely

May 24, 2023
How-to-Print-Stickers-at-Home

How to Print Stickers at Home (Step-by-Step Guide)

May 24, 2023
Recommended
Cookie Clicker Garden Guide

Cookie Clicker Garden Guide to Unlocking Every Seed

September 26, 2021
monitor no signal

Computer Turns On But Monitor Says No Signal (9 Ways To Fix)

November 10, 2022
Facebook Twitter Pinterest
  • Home
  • About Us
  • Our Team
  • Editorial Guidelines
  • Privacy Policy
  • Affiliate Disclosure
© 2023 TechNewsToday, editor@technewstoday.com | Tech Central Pvt. Ltd.

Type above and press Enter to search. Press Esc to cancel.