4 Ways to Check the Current PowerShell Version on Your PC

-

|

Introduction

If you are reading this guide because you want to learn how to find the PowerShell version on your computer, you are in the right place!

This guide details 4 ways you can check the version of PowerSell on your computer.

4 Ways to Get the PowerShell Version on your PC

If you want to determine the version of PowerShell on your computer, use one of the methods/commands discussed below:

Method 1: Get PowerShell Version with $PSVersionTable Automatic Variable

Copy and paste the command below into a PowerShell console and press Enter

$PSVersionTable

Here is the result

display PowerShell version with $PSVersionTable automatic variable

My current PS version is 5.1.17134.858 but the result contains other information which you may not need.

To display just the version number, use the command below

$PSVersionTable.PSVersion

Here is the result

$PSVersionTable.PSVersion

The last command provides a bit more information. We now know that 5, 1, 17134, 858 represents Major, Minor, Build and Revision numbers.

To display just the Major number, use this command:

$PSVersionTable.PSVersion.Major

Method 2: Get PS Version with Get-Variable PSVersionTable Command

You can also get your PS version using the command below:

powershell -command "(Get-Variable PSVersionTable -ValueOnly).PSVersion"

The result is the same as the last command

Method 3: Get PowerShell Version with Get-Host Command

Here is another command that will give your PS version

Get-Host

The command returned a result with the full version details

If you want just the version number, you can use any of the 3 commands below:

Get-Host | Select-Object Version

This command will expand the version numbers

Get-Host | Select-Object -ExpandProperty Version
(Get-Host).Version

The last two commands product the same result. Here are the results of the 3 commands

Get PowerShell Version with Get-Host Command

If you want to display just the Major PowerShell version, use this command:

(Get-Host).Version.Major

Method 4: Get Powershell Version with $Host Automatic Variable

To use this method type the following command into a PowerShell prompt. Then press Enter.

$Host

Below is the result of the command in PowerShell

As you can see, the result is the same as using the Get-Host Command

Here is an example:

How to Interpret PowerShell Version Number

Conclusion

There are so many reasons you may want to determine the PowerShell version. It may be that you wrote a script that requires a minimum version to run successfully. No matter your reason, I hope it met your need!

If you have any question or want to leave a comment, use the “Leave a Reply” form at the end of this script. Alternatively, you could share your experience working with PowerShell versions.

Other Helpful Guides

  1. 18 Most Useful Powershell Commands for Windows Admins
  2. PowerShell ExecutionPolicy Explained

Additional Resources and References

  1. Getting Started with Windows PowerShell
  2. PowerShell 1.0 Cmdlets
  3. PowerShell 2.0 Cmdlets
  • Was this post Helpful?
  • YesNo

LEAVE A REPLY

Please enter your comment!
Please enter your name here

ADVERTISEMENTS

FEATURED POSTS

Best Christian Movies on Netflix

The 10 Best Christian Movies on Netflix

This Itechguide reviews the 10 best christian movies on Netflix. The movies are listed in reverse order – with the 10th movie...
How to Change Orientation in Google Docs

How to Change Orientation in Google Docs

This Itechguide teaches you how to change orientation in Google Docs. The guide covers steps to change orientation in Google Docs from...
How to Delete Google Photos

How to Delete Google Photos

This Itechguide teaches you how to delete Google Photos. The guide offers steps to delete Google Photos from the Google Photos App...
How to Install Windows 10 1909 Update Manually

How to Install Windows 10 1909 Update Manually

This Itechguide teaches you how to install Windows 10 1909 update manually. Windows 10 1909 (otherwise known as Windows 10 November update)...
How to Create a Poll on Facebook

How to Create a Poll on Facebook

This Itechguide teaches you how to create a poll on Facebook. You can create a poll on Facebook from a Facebook page...

AMAZON DEALS

TRENDING POSTS

Remote Desktop Connection

Remote Desktop Connection an Internal Error Has Occurred [Fixed]

Introduction I recently received the error message "Remote Desktop Connection an Internal Error Has Occurred". It was strange because...

Find My Samsung: Register and Use Samsung Find my Mobile

Introduction Ever wondered how you could find your Samsung phone if you lost it? Find my Samsung or Samsung...
What is the Difference Between PowerShell and CMD?

Windows Powershell vs CMD: Differences and Similarities

Introduction This short guide compares Windows PowerShell vs CMD (Windows command prompt). I will cover the history and nature...
Spotify No Longer Supports this Version of Microsoft Edge

Spotify No Longer Supports this Version of Microsoft Edge [Fixed]

Introduction When you open Spotify web player on Microsoft Edge, you may receive the error message "Spotify No Longer...
Windows 10 Won't Boot

Windows 10 Won’t Boot With Black Screen? 3 Ways to Fix It

Why Won't Windows 10 Boot Up? If your Windows 10 stops with a black screen, the first question in...

ADVERTISEMENTS

BEST OF ITECHGUIDES

Steps to Fix "Windows has Detected an IP Address Conflict"

How to Fix “Windows has Detected an IP Address Conflict”

Introduction "Windows has Detected an IP Address Conflict" means that two computers on the network have the same IP...
How to Move Images in Google Docs

How to Move Images in Google Docs

This Itechguide teaches you how to move images in Google Docs. The guide offers 3 high-level steps to move images in Google...
windows has stopped this device code 43

How to Fix Windows Has Stopped this Device Code 43 Error

Introduction Sometimes you may receive "Windows has stopped this device code 43" error. This error is likely to come...
How to Create a New Outlook Profile (3 Methods)

How to Create a New Outlook Profile (3 Methods)

Introduction This guide demos 3 methods to create new outlook profile.. Options to Create New Outlook...
How to Install Windows Server 2019 from USB

How to Install Windows Server 2019 from USB

Introduction This guide demos how to install Windows Server 2019 from USB. Steps to Install...

RECENT POSTS

How to Change Facebook Page Name

How to Change Facebook Page Name

This Itechguide teaches you how to change Facebook page name. The guide covers steps to change Facebook page name from a PC...
How to Change YouTube Channel Name

How to Change YouTube Channel Name

This Itechguide teaches you how to change YouTube channel name. The guide covers steps to change YouTube channel name from a PC.
How to Bold Text on Facebook Post

How to Bold Text on Facebook Post

This Itechguide teaches you how to bold text on Facebook post. The guide covers steps to bold text on Facebook post from...
Best Crime Documentaries on Netflix

The 10 Best Crime Documentaries on Netflix

This Itechguide reviews the 10 best crime documentaries on Netflix. The documentaries are listed in reverse order – with the 10th documentary...
Best Netflix Series

The 10 Best Netflix Series

This Itechguide reviews the 10 best Netflix series. The series are listed in reverse order – with the 10th series on top....

AMAZON DEALS

MUST READ

powershell add ad computers to array

How to Add AD Computers to a Powershell Array

Introduction There is one way to add AD Computers to a PowerShell array. A PowerShell array is a data...
DISM.exe /Online /Cleanup-Image /Restorehealth

DISM.exe /Online /Cleanup-Image /Restorehealth Explained

What is DISM.EXE /Online /Cleanup-image /RestoreHealth? "DISM.exe /Online /Cleanup-Image /Restorehealth" is a DISM command that repairs issue with the...
dhcp relay agent windows server 2016 not working

DHCP Relay Agent Windows Server 2016 Not Working [Fixed]

Introduction Most reports about DHCP relay agent not working in Windows Server 2016 has to do with clients in...
How to Install RSAT in Windows 10 (3 Methods)

How to Install RSAT in Windows 10 (3 Methods)

Introduction This guide demos how to Install RSAT in Windows 10. Starting with Windows 10...
How to Setup Outlook Automatic Message Reply (Not Out Of Office)

How to Setup Outlook Automatic Message Reply (Not Out Of Office)

Introduction This guide demos how to setup Outlook auto reply messages. The guide is not about setting up Outlook...

AMAZON DEALS

By using this website you agree to accept our Privacy Policy and Terms & Conditions