How to check version of powershell

By FoxLearn 7/30/2024 3:27:35 AM   114
To check the version of PowerShell you're using, you can follow these steps.

1. Using PowerShell Command

Open your PowerShell, then Type the following command and press Enter.

$PSVersionTable.PSVersion

how to check version of powershell

This command will display the version number of PowerShell installed on your system.

2. Using Command Line (cmd)

Open your CMD, then Type the following command and press Enter.

powershell -Command "$PSVersionTable.PSVersion"

how to check version of powershell

This will launch PowerShell from within Command Prompt and display the version information.

3. Using the PowerShell Executable Path

Open your PowerShell, then Type the following command and press Enter.

(Get-Command powershell).FileVersionInfo | Select-Object ProductVersion

how to check version of powershell

This command retrieves the file version information for the PowerShell executable and displays the product version.

The output will show the version number in a format like Major.Minor.Build.Revision

  • Major: Major version of PowerShell.
  • Minor: Minor version, which may include updates or enhancements.
  • Build: The build number, often indicating a specific build or release.
  • Revision: The revision number, which may be used for very specific updates or patches.