Easy method to Check your PowerShell Version

The PowerShell version that you have installed determines the cmdlets and features that you can use. But how do you know which version you have installed? Well, with a single PowerShell command.

Check PowerShell Version

To get the PowerShell version we can use PowerShell itself, which is the most convenient way.

  1. Open PowerShell

  2. Type $host

    In PowerShell, type $host and press enter

    get powershell version

  3. Find the Version line

    You will find the PowerShell version that you are running on the second-line Version. In this example 7.1.3

If you want a more user-friendly layout then you can also use $host.Version cmdlet.

check powershell version

Sometimes you need to check the installed version in a script to know which cmdlets you can use. For this you can even filter the output more with:


There are also a couple of other commands that you can use to get the PowerShell version. But a commonly used alternative is the $PsVersionTable host variable. This variable is recommended everywhere on the internet, but I always forget it. ($host is easier to remember 😉 )


# Output
Major  Minor  Build  Revision
-----  -----  -----  --------
5      1      19041  1237
show powershell version

Get PowerShell Version from Remote Host

If you have a local domain then you can easily get the PowerShell version of remote computers with the invoke-command cmdlet and a script block:

Invoke-Command -Computername lazy-lab11 -Scriptblock {$PSVersionTable.PSVersion}

Wrapping Up

There is not much more to explain when it comes to looking up the version of PowerShell. If you would like to know how to update PowerShell, then make sure you read this article.

I hope you found this article useful, if you have any questions just drop a comment below.

Get more stuff like this

IT, Office365, Smart Home, PowerShell and Blogging Tips

I hate spam to, so you can unsubscribe at any time.

Leave a Comment