Requirement: Get the PowerShell version.
How to check the PowerShell version?
PowerShell is a powerful scripting language that enables you to automate tasks, manage your environment, and more. The latest version of PowerShell has brought many new features. Hence, it’s important to know what version of PowerShell you have. Do you know how to get the PowerShell version you are running? Well, in this blog post, we’ll show you how to find out what PowerShell version you’re using in your system.
Open “Windows PowerShell” from the start menu >> Type:
Or you can use the following:
These cmdlets get you the PowerShell version installed along with Major, and minor versions, build, and revision details. You can also use the “$PSVersionTable.PSVersion.Major” cmdlet to determine the major version of PowerShell installed.