Search

How to find the PowerShell version in Server Core and Desktop experience

Finding the PowerShell version is important if you are a system administrator for a network consisting of Windows Servers, Windows based workstations or client computers. Finding the PowerShell version can help you to find which features or cmdlets are supported in the PowerShell version your computers are running.

Note that there are two different base PowerShell versions available. First version I want to mention here is "Windows PowerShell". "Windows PowerShell" is the version of PowerShell, which is shipped with Windows Server Operating Systems. The version of "Windows PowerShell" packed with Windows Server 2025 installation media is 5.1.

PowerShell 7.x is the platform independent version, supported on Windows, Linux and Mac Operating Systems. May be because of being actively developed for different Operating Systems, 7.x version is not included by default, with the Windows Server installation media. You may download and install PowerShell 7.x version from the Microsoft website. Please visit the following Microsoft webpage link to find more information about how to install the latest version of PowerShell.

If you have many Windows based computers/servers in your network environment, it is always better to find the version of the PowerShell running in each Windows computer, because if any feature in your PowerShell script is not supported by the PowerShell version in any machine, there is chance for your PowerShell script to fail in that computer.

Finding "Windows PowerShell" version using "$PSVersionTable"

Finding the PowerShell version using "$PSVersionTable" is useful in Windows Server Core installations, because there are no GUI tools in Server Core installations.

Step 01 – To find the PowerShell version of the "Windows PowerShell", open the Windows PowerShell terminal. You can open the "Windows PowerShell" terminal by typing "powershell.exe" at Windows search box and then by clicking the Windows PowerShell from the search results.

type-powershell.exe-windows-search.jpg

 

Step 02 – Type $PSVersionTable in Windows PowerShell and press "Enter" key to view the Windows PowerShell version. Please refer the below screenshot.

psversiontable-variable-to-find-psversion.jpg

 

As you can see from the above image, PSVersion (the first line in the $PSVersionTable) shows the version of the Windows PowerShell shipped with the current Windows Server installation media. In this case, the PSVersion is 5.1.26212.5000.

Finding "Windows PowerShell" version from the Windows Registry

Warning – Please be careful. If you do not know what is Windows Registry and how critical & important is the Windows Registry, do not try to open Windows Registry. A mistake while editing the Windows Registry can seriously damage your Windows Server installation or your whole network.

Finding PowerShell version using Windows Registry is useful in Windows Server with Desktop experience.

Step 01 – Type "regedit.exe" in your Windows Search box, and then click "regedit.exe" from the search results. Please refer below screenshot.

type-regedit.exe-windows-search.jpg

 

Step 02 – The Windows Registry editor application will be opened. In Windows Registry editor, expand Computer > HKEY_LOCAL_MACHINE > SOFTWARE > Microsoft, as shown in below screenshot.

psversion-windows-registry-01.jpg

 

Step 03 – Scroll down to PowerShell and then to PowerShellEngine. Inside PowerShellEngine, you can view the "PowerShellVersion" registry entry. You can view that in this case, the "PowerShellVersion" is 5.1.26212.5000.

psversion-windows-registry-02.jpg

 

Written by Jajish Thomas.
Last updated on 2nd June, 2024.

 

Related Tutorials
Introduction to Windows Server 2025
Minimum hardware requirements for Windows Server 2025
New features of Windows Server 2025
How to download Windows Server 2025 Preview iso file
How to install Windows Server 2025
Differences between Server Core and GUI (Desktop Experience)
Default GUI tools in Server Core
How to run PowerShell as administrator
How to run PowerShell as administrator in Server Core
How to find the PowerShell version in Server Core and Desktop experience
How to add Network icon to desktop in Windows Server 2025
How to add Computer (This PC) icon to desktop in Windows Server 2025
How to rename a computer using Windows Explorer
How to rename computer using "Rename-Computer" PowerShell Cmdlet
How to configure IPv4 Address in Windows Server 2025
How to configure IPv4 address in Windows Server 2025 using PowerShell Cmdlets
How to configure IPv6 Address in Windows Server 2025
How to configure IPv6 Address in Windows Server 2025 using PowerShell
What is MMC (Microsoft Management Console) and what are MMC snapin files
Add a snapin to MMC console
What are Roles and Features and difference between Roles and Features in Windows Server
Roles in Windows Server
Features in Windows Server
How to add Roles and Features in Windows Server
How to Remove Roles and Features in Windows Server
How to add Roles and Features using PowerShell
How to remove Roles and Features using PowerShell
Different types of computer hardware devices
What is a Driver Software
What is Device Manager and how to open Device Manager
What is Plug and Play (PnP)
How to scan for hardware changes using Device Manager and pnputil.exe
How to disable a device using Device Manager
How to disable a device using PowerShell Disable-PnpDevice Cmdlet
How to enable a device using PowerShell Enable-PnpDevice Cmdlet
How to update drivers using Device Manager
What is Driver Signing in Windows Operating Systems
What is Roll back of a driver and how to Roll Back a driver
How to uninstall a device using Device Manager
What are File attributes in Windows Operating Systems
attrib command in Windows
How to hide files and folders using Windows File Explorer
How to hide files and folders using attrib.exe command
How to view hidden files using Windows File Explorer
What are file name extensions
What are known file extensions and how to view known file extensions
How to associate a file name extension with an app
Hide or Show known file name extensions in Windows Server 2025
Hide or Show protected operating system files in Windows Server 2025
What are multi–user Operating Systems (OS) and multi–task Operating Systems (OS)
What are local user accounts and local groups in Windows Server
Different types of user accounts in Windows Server
How to create a local user in Windows Server
How to create a local user in Windows Server using New-LocalUser PowerShell cmdlet
How to force a local user to change password on next login
How to enable or disable a local user account
How to allow or prevent a local user to change password
What are Security Principals and SIDs
How to find SIDs of local user accounts