Advertisements

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.

Advertisements


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

LEAVE A REPLY

Please enter your comment!
Please enter your name here

LATEST DEALS

Exclusive Student Offer_Save 10% on selected Surface devices

FEATURED POSTS

How to Change Administrator Name in Windows 10 (4 Methods)

How to Change Administrator Name in Windows 10

Introduction This guide demos how to change administrator name in Windows 10. There could be...
How to Setup WhatsApp Auto Reply in an Android Phone

How to Setup WhatsApp Auto Reply in an Android Phone

Introduction This guide demos how to setup Whatsapp auto reply in an Android phone. Steps...
How to Set Out of Office Auto Reply in Outlook, Outlook.com and Gmail

How to Set Out of Office Auto Reply in Outlook, Outlook.com and Gmail

Introduction This guide demos how to set out of office auto reply in Outlook, Outlook.com and Gmail.
How to Take Ownership of Folder in Windows 10

How to Take Ownership of Folder in Windows 10 (2 Methods)

Introduction This guide demos 2 methods to take ownership of folder in Windows 10. Options to...
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...

ADVERTISEMENTS

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...

BEST OF ITECHGUIDES

How to Change Account Picture in Windows 10 (2 Methods)

Introduction This guide demos 2 methods to change account picture in Windows 10. Windows 10...
RSAT Tools in Windows 10 Explained: Plus How to Install RSAT

RSAT Tools in Windows 10 Explained: Plus How to Install RSAT

Introduction Starting from October 2018 (1809) update, RSAT Tools became part of Windows 10. From this version of Windows...

iTechGuides’ Top 10 Online Games

The gaming world is getting bigger day by day. Many people are getting engaged to play online games worldwide.

How to Fix “We Couldn’t Format the Selected Partition” Error During Windows 10 Installation

Introduction When I was writing this guide How to Install Windows 10 from USB, I suddenly received the error...
Latest Windows 10 Update

How to Install Latest Windows 10 Update (May 2019 Update 1903)

Introduction The latest Windows 10 update is 1903. It was released May 2019. Microsoft strongly recommend updating to the...

RECENT POSTS

C:\G-Drive\Work Tools\Products Portal\1. New Business\2. Content Sites\1. iTechGuides.com\Posts\1. HOW TO\Microsoft\MS Office\Microsoft Word\how to add more rows to a table in word

How to Add More Rows to a Table in Word and Google Docs

Introduction This guide demos how to add more rows to a table in Word. It also has a...
How to Create a Bar Chart in Excel and Google Sheets

How to Create a Bar Chart in Excel and Google Sheets

Introduction This guide demos how to create a bar chart in Excel and Google Sheets. A bar chart is...
How to Change Administrator Name in Windows 10 (4 Methods)

How to Change Administrator Name in Windows 10

Introduction This guide demos how to change administrator name in Windows 10. There could be...
How to Create a Pie Chart in Excel and Google Sheets

How to Create a Pie Chart in Excel and Google Sheets

Introduction This guide demos how to create a pie chart in Excel and Google Sheets. A pie chart is...

iTechGuides’ Top 10 Online Games

The gaming world is getting bigger day by day. Many people are getting engaged to play online games worldwide.

How to Open Local Security Policy in Windows 10 (5 Methods)

Introduction This guide demos how to open local security policy in Windows 10. Options to...

How to Change Network from Public to Private in Windows 10

Introduction This guide demos 2 methods to change network from public to private in Windows 10.
How to Disable Touchpad in Windows 10 for Dell or HP Laptop

How to Disable Touchpad in Windows 10 for Dell or HP Laptop

Introduction This guide demos how to Disable Touchpad in Windows 10 for a Dell or HP laptop.

How to Change Account Picture in Windows 10 (2 Methods)

Introduction This guide demos 2 methods to change account picture in Windows 10. Windows 10...
How to Create Xbox Live Account

How to Create Xbox Live Account (2 Methods)

Introduction This guide demos 2 methods to create Xbox Live account. Options to Create Xbox...

ADVERTISEMENTS

MUST READ

Our Top 10 PS4 Adventure Games

Are you ready to dive into the fantasy world of PS4 adventure games? You are at the right place.
PowerShell Foreach-Object: Syntax, Parameters, Examples

PowerShell Foreach-Object: Syntax, Parameters, Examples

Introduction PowerShell Foreach-Object is used to iterate through a collection of items to perform a specified action on each...
powershell help

Get-Help Command: Syntax, Parameters, Examples

Introduction Don't know how to use a PowerShell cmdlet? PowerShell Get-Help cmdlet will give you information about any powerShell...
GPResult Command

GPRESULT Command: Syntax, Parameters, Examples

What is GPRESULT? GPRESULT is a command line tool that displays the Resultant Set of Policy (RSoP) information for...

How to Create System Image in Windows Server 2016

Introduction This guide demos how to create system image in Server 2016. Steps to Create...

LATEST DEALS

Exclusive Student Offer_Save 10% on selected Surface devices

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