How To Find Version Of Powershell

How To Articles

As a tech enthusiast and PowerShell aficionado, I’ve often found myself needing to check the version of PowerShell installed on my system. Whether I’m working on a new script or troubleshooting an existing one, knowing the version of PowerShell is crucial for ensuring compatibility and leveraging the latest features. In this article, I’ll guide you through the various methods to find the version of PowerShell on your Windows system.

Using PowerShell Console

One of the quickest ways to check the PowerShell version is by opening the PowerShell console and using a simple command. After launching the console, you can type the following command and press Enter:

$PSVersionTable.PSVersion

This will display detailed information about the PowerShell version, including the major and minor version numbers, build version, and revision number.

Checking Registry

Another method involves checking the Windows Registry. For this, you can open the Registry Editor by typing “regedit” in the Windows search bar and navigating to the following location:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\PowerShellEngine

In this registry key, you can find the PowerShell version under the “PowerShellVersion” entry.

Exploring File Properties

If you prefer a graphical interface, you can also locate the PowerShell executable file on your system, right-click it, and select “Properties.” Within the “Details” tab, you’ll find the version information, including the file and product version.

Conclusion

These methods provide various ways to find the version of PowerShell installed on your system. Whether you prefer using PowerShell commands, delving into the registry, or exploring file properties, the version information is readily accessible. Knowing the PowerShell version not only helps in scripting and troubleshooting but also ensures that you stay updated with the latest enhancements and features. So, next time you need to verify the PowerShell version, you can use these approaches to quickly find the information you need.