PowerShell was introduced by Microsoft on August 18, 2016 as PowerShell Core, which was then built to be open source and cross-platform. I'll show you a quick way to find your PowerShell version installed in Windows 10 and older versions. The utility pack includes a command line shell and a powerful scripting language.
Originally it was a Windows component known as Windows PowerShell . It was later renamed PowerShell Core and made available to the public using operating systems other than Windows.
It differs from the other traditional command line shells that accept and return text. PowerShell is based on the .NET CLR (Common Language Runtime) and accepts and returns .NET objects that provide access to a whole new set of automation tools and methods.
Used
It allows users to automate wide-ranging tasks and configure a management framework within the Windows operating system. This includes processes like updating Windows, updating drivers, listing installed drivers, installing and uninstalling apps, etc.
Each new version includes more cmdlets that give you access to more new features. So it's always a good idea to check your current PowerShell version and keep it up to date. However, before proceeding with the steps to verify the current version, let's take a look at the previous versions of PowerShell and the corresponding versions of the Windows operating system with which it is preinstalled.
Windows PowerShell 1.0: It was released in November 2006 for Windows XP SP2, Windows Server 2003 SP1 and Windows Vista.
Windows PowerShell 2.0: PowerShell 2.0 is preinstalled in Windows 7 and Windows Server 2008 R2.
Windows PowerShell 3.0: It is built into Windows 8 and Windows Server 2012.
Windows PowerShell 4.0: PowerShell 4.0 is built into Windows 8.1 and Windows Server 2012 R2.
Windows PowerShell 5.0: Windows Management Framework (WMF) 5.0 RTM included PowerShell 5.0 and was re-released on February 24, 2016.
Windows PowerShell 5.1: This version was released along with the Windows 10 Anniversary Update on August 2, 2016.
PowerShell Core 6: PowerShell Core 6 was the first open source and cross-platform version that is now also available for MacOS and Linux systems.
Our main goal is to check the PowerShell version currently running on your system.
To check your PowerShell version I have mentioned two methods:
Search with $PSVersionTable
1) Press WIN + R keys at the same time and click OK
2) Type powershell and press Enter. This will open the PowerShell command line.
3) In the shell command line, type the following command and press Enter.$PSVersionTable
4) You can find the PowerShell version next to 'PSVersion'.
In this list you will find the PSVersion section and an associated value . This value indicates the version of PowerShell you are currently using.
In my case the PowerShell version is 5.1.18362.752
A note for developers:
You can also use the following command to find out which version is installed on Windows 10 or older:
get-host | Select-Object-Version
This command uses the Get-Host cmdlet, which gets the PowerShell version property from the parent object and returns its value.
Search with $ host.Version
Another easy way to find out the PowerShell version is to use the command line$host.Version
The steps are exactly the same as above:
1) Press Windows + R key
2) Type powershell and click OK
3) Type $ host.Version and press Enter
4) This shows the version in different parts as follows:
However, if you combine 'Major', 'Minor', 'Build' and 'Revision', you can easily find out the version.
Here on my other laptop the PowerShell version is 5.1.18352.145
If you know another quick way to find the PowerShell engine version, let me know in the comment below.


แสดงความคิดเห็น