PoshTIP #3 – Determine installed PowerShell version

PoshTip #3 – Determine installed PowerShell version

First of all, to check if PowerShell is installed, you need to check this registry key :

If it exist, then PowerShell is well installed. Below, we will see how to check the PowerShell version.

I will not describe $host.version because it is not reliable. For example in PowerGUI, it returns the PowerGUI host version which is not the same as the PowerShell engine version.

First method

To determine the engine version, just copy and paste this code :

If $PSVersionTable does not exist, it’s entirely safe to assume that you are on v1.0.

Second method

Use the registry database and check the following key :

About Nicolas 270 Articles
I work as an IT Production Manager, based in Paris (France) with a primary focus on Microsoft technologies. I have 10 years experience in administering Windows Servers. . I am a Microsoft MVP for Cloud & Datacenter Management. I also received the PowerShell Hero 2016 award by PowerShell.0rg. And finally, I am "MCSE: Cloud Platform and Infrastructure", "MCSA: Windows Servers", "Administering & Deploying SCCM", and CheckPoint CCSA certified.